Here are the *rough* steps involved, note this is from memory so I may well miss a few critical steps....
Assuming you have already been through the 'setting up your environment' as outlined in the build notes....
You will need the sources for the following.. zlib, libjpeg, libpng and freetype (note download v2.1.9 of freetype as v2.1.10 does not include autohint.c)
If you are using winzip to extract the tar.gz files make sure that smart CR\LF option is checked.
You need to build *Release* versions of each of the above (zlib will be included in the libpng build so you don't need to build that seperately).
For libjpeg, you need to rename jconfig.vc to jconfig.h there is no .dsw file for libjpeg so you need to run nmake. It will also most likely complain about libjpeg.lib being missing so create a blank file and sabe it as libjpeg.lib in the source directory. Then run....
Code: Select all
nmake /f makefile.vc nodebug=1 all
This should overwrite your blank libjpeg.lib with an actual libjpeg.lib
For libpng, open the workspace file (projects/visualc6/libpng.dsw) you need to set it to build a release version (Build->Set Active Configuration) then choose (Build->Rebuild All).
For Freetype is pretty much the same thing (remember to change the config file to enable hinting). You need to rename the freetype lib (it should be called freetype219.lib) to freetype2.lib
You can either then add each directory where the .lib files have been created to your library settings within Visual Studio or (and probably safer) copy each of the .lib file over to win32build/lib/
You will also need to add the paths of the individual source packages include directories to the include directory list in Visual Studio.
for GD, open the gd.dsw file which is contained within the source distribution of your PHP version (php-x.x.x/etx/gd/gd.dsw). You need to edit the libgd/gdft.c file. Find the line .....
And add a line above it which should be...
Next, from the menu choose Project->Settings then choose the link tab, in the field labeld 'Ignore libraries' type 'libc.lib' (without the quotes)
Now, locate your php4ts.lib from within your *binary distribution* of PHP and put it in win32build/lib
Set the active configuration to release and choose Build->Rebuild All
You should now have a php_gd2.dll which you can use.
Alternatively, if you can tell me which version of PHP you are using I could probably VNC into my build box in the office and attempt to build you one.