The GD library in PHP5 requires FreeType, JPEG, LibPNG (Need Zlib).
Start preparation: to http://sourceforge.net/projects/freety.net/projects/libpng ,ftp: //192.48.96.9/graphics/jpeg/ Download the related package and extract.
First look at the compilation of FreeType: Enter f: /freetype-2.1.9/builds/win32/visualc with VC to open FreeType.dsp compile Win32 Release. Get freeetype219.lib (here is a 219 version), which is renamed for FreeType2.lib. Copy to the Win32Build / Lib directory. Copy the freeType.h, FREETYPE directory, ft2build.h in the include directory to the Win32Build / Include directory override.
Follow this second to look at the compilation of libpng: Enter f: /libpng 1.2.6/projects/visualc6 to open libpng.dsp in VC to compile Win32 Release DLL and LIB. Copy the resulting libpng.dll to the Win32Build / lib / DLL, copy the resulting libPng.lib to the Win32BUILD / LIB override. Copy the PNG.h in its directory to the Win32Build / Include directory override.
Let's take a look at JPEG's compilation, open the install.doc file in the JPEG directory, this inscription:
To use jconfig.vc to jconfig.h, makelib.ds to jpeg.mak, and makeapps.ds to apps.mak (Note That the renaming is critical!) 2. Click on the .mak files to construct project workspaces. (If you are using DevStudio more recent than 4.2, you'll probably get a message saying that the makefiles are being updated.) 3. Build the library project, then the applications project.4. Move the application .exe files From `app` / release to an appropriate location on your path.5. To perform the self-test, Execute the command line nmake / f makefile.vc test This will get libjpeg.lib, copy it to Win32Build / LIB override . Copy the jconfig.h, jerror.h, jmorecfg.h, jpeglib.h of its directory to Win32Build / Include override.
Then recompile the PHP5, the PNG, JPEG, Freetype2 in your GD library is the latest.