internals:windows:libs:freetype

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
internals:windows:libs:freetype [2008/05/24 10:52] pajoyeinternals:windows:libs:freetype [2013/02/21 14:02] – [Available prebuilt libraries] ab
Line 1: Line 1:
 ====== Freetype PHP Windows, How to compile ====== ====== Freetype PHP Windows, How to compile ======
 +
 +
 +Project homepage: [[http:://freetype.org]]
  
 ===== Available prebuilt libraries ===== ===== Available prebuilt libraries =====
  
-All prebuilt libraries are available in the php-libs [[http://pecl2.php.net/downloads/php-windows-builds/php-libs/|repositories]]+All prebuilt libraries are available in the php-libs [[http://windows.php.net/downloads/php-sdk/deps/|repositories]] 
 + 
 +For PHP suitable sources and up-to-date information see [[https://github.com/winlibs/freetype]]
  
 The filename format is: The filename format is:
Line 10: Line 15:
  
 where x.y.z defines the version, vcversion which Visual C++ has been used. 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 ===== ===== Building Freetype =====
  
-===== Requirements =====+==== 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