This is an old revision of the document!
Freetype PHP Windows, How to compile
Available prebuilt libraries
All prebuilt libraries are available in the php-libs repositories
The filename format is:
freetype-x.y.z-vcversion.zip
where x.y.z defines the version, vcversion which Visual C++ has been used.
Only the static libraries are built for now. We may add DLLs later but PHP is linked statically against Freetype.
Building Freetype
Requirements
- Freetype sources Src repositories
- Common tools to compile PHP
Configurations
VC6 uses Makefile while later versions can use the projects files included in our src archive.
Configurations for VC6 (Makefile)
- “Release”
- “Release MT”
- “Release ST”
- “Debug”
- “Debug ST”
- “Debug MT”
Configurations for 2k3, 2k5 and 2k8
- “Debug”
- “Release”
- “Debug Multithreaded”
- “Debug Singlethreaded”
- “Release Multithreaded”
- “Release Multithreaded”
Multithreaded builds are used with the default PHP builds. Singlethreaded are used for the non TS builds.
Compilation
VC6
Compile for default PHP builds (TS mode):
cd c:\build_php_deps\libpng1229\projects\ nmake /f libpng.mak CFG= "Release MT"
Compile for not threaded PHP builds (no TS mode):
cd c:\build_php_deps\libpng1229\projects\ nmake /f libpng.mak CFG= "Release ST"
2k3, 2k5 and 2k8
Select the desired configuration via the Configuration Manager. The default PHP builds use ““Release Multithreaded” in the Win32 target. Non threaded PHP builds use “Release Singlethreaded”.