internals:windows:libs:freetype
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
Next revision
internals:windows:libs:freetype [2008/05/24 17:47] pajoye
Line 1: Line 1:
 +====== Freetype PHP Windows, How to compile ======
  
 +
 +Project homepage: [[http:://freetype.org]]
 +
 +===== Available prebuilt libraries =====
 +
 +All prebuilt libraries are available in the php-libs [[http://pecl2.php.net/downloads/php-windows-builds/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.
 +
 +==== Naming ====
 +
 +The libraries are named as follow:
 +
 +freetype{buildtype}{_debug}.lib
 +
 +{buildtype} can be either MT, ST or empty. MT stands for Multithreaded, ST for Singlethreaded and empty is the default mode (non MT). As in all other libraries, we add the "_debug" postfix for the debug builds.
 +
 +===== Building Freetype =====
 +
 +==== Requirements ====
 +  * Freetype sources [[http://pecl2.php.net/downloads/php-windows-builds/php-libs/src|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):
 +<code bash>
 +cd c:\build_php_deps\libpng1229\projects\
 +nmake /f libpng.mak CFG= "Release MT"
 +</code>
 +
 +Compile for not threaded PHP builds (no TS mode):
 +<code bash>
 +cd c:\build_php_deps\libpng1229\projects\
 +nmake /f libpng.mak CFG= "Release ST"
 +</code>
 +
 +=== 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".
internals/windows/libs/freetype.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1