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 [2013/01/29 11:28] – [Requirements] ab
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 [[https://github.com/winlibs/|Src repositories]]
 +  * Common tools to compile PHP
 +
 +==== Configurations ====
 +
 +Edit the file "Jamfile" in the root of the Freetype source directory. Change the line 57 from:
 +<code bash>
 +# Name of final library, without extension.
 +#
 +FT2_LIB ?= $(LIBPREFIX)freetype ;
 +
 +</code>
 +to
 +
 +<code bash>
 +
 +# Name of final library, without extension.
 +#
 +FT2_LIB ?= $(LIBPREFIX)freetype_a ;
 +
 +</code>
 +
 +
 +Tell Jam to use Visual C++:
 +
 +<code bash>
 +cd  C:\php-sdk\2k5\x86\libs_buildlibs\freetype-2.3.7
 +set JAM_TOOLSET=VISUALC
 +</code>
 +
 +
 +==== Compilation ====
 +
 +Open a Platform SDK development console (vc6), or the Visual Studio command line (vc7/8/9) and run:
 +
 +<code bash>
 +jam
 +</code>
 +
 +The objs directory will contain the static library.
 +
 +The include directory contains all headers that have to be distributed/installed.
internals/windows/libs/freetype.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1