Hi All.
Does anybody know how to run support for PNG files in PHP4. I thing I have tried almost everything and it still does not work.
- I have installed libpng-1.2.0 in /usr/local/libpng (libpng.a and so are in /usr/local/lib and in /usr/local/libpng).
- I have installed zlib in /usr/local/zlib (as above libz.a and so are in /usr/local/lib and /usr/local/zlib).
- I have installed gd-1.8.4 in /usr/local/gd and libgd.a is in /usr/local/lib and in /usr/local/gd .
- All include files for all libs are in its install directories and in /usr/local/include .
- I have also proved that after compilation all gd projects example files like gdtopng or pngtogd works perfectly. And they definetly use function 'gdImageCreateFromPng'
Now I have configured php with following options (not everything is here but this options are inetresting for PNG):
--with-apxs --with-gd=/usr/local/gd --with-png-dir=/usr/local/libpng --with-zlib=/usr/local/zlib
--enable-trans-sid
I have compiled it and only JPEG support works. No PNG support in my libphp4.so.
Also what I have realized, is that during config sript I have got following messages:
checking whether to include GD support... yes
checking whether to enable truetype string function in gd... no
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for the location of libpng... yes
checking for png_info_init in -lpng... (cached) yes
(SO IT CAN FING GD, LIBJPEG and LIBPNG !!)
But later:
checking for gdImageString16 in -lgd... (cached) yes
checking for gdImagePaletteCopy in -lgd... (cached) yes
checking for gdImageCreateFromPng in -lgd... (cached) no
checking for gdImageCreateFromGif in -lgd... (cached) no
checking for gdImageWBMP in -lgd... (cached) yes
checking for gdImageCreateFromJpeg in -lgd... (cached) yes
Strange is that this function (gdImageCreateFromPng) is in libgd.a! I have checked it! So why PHP configure can not find it?? Does anybody has any sugestion how to configure it propelly.
With best regards
Marcin Gryszczuk