note 9047 deleted from ref.image by victor

From: Date: Mon, 09 Dec 2002 18:32:05 +0000
Subject: note 9047 deleted from ref.image by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40575@lists.php.net to get a copy of this message
Concerning the compilation of PHP 3.0.16 with GD 1.8.3 on Linux Mandrake 7: It can become rather nasty to try and get things running with GD and JPEG support. We had to tweak the following things: When calling configure for PHP, add the line --with-gd=yes instead of just --with-gd or --with-gd=/path/to/gd. This causes configure to find the gdImageCreateFromJpeg function. Unfortunately, now the gdImageColorResolve function isn't found. So we changed the configure.in file around line 800 to look like this: withval=$old_withval LIBS="-ljpeg $LIBS" AC_CHECK_LIB(gd,gdImageCreateFromJpeg,[AC_DEFINE(HAVE_GD_JPG)]) LIBS=$old_LIBS if test "$ac_cv_lib_gd_gdImageCreateFromJpeg" = "yes"; then AC_ADD_LIBRARY(jpeg) fi old_LIBS=$LIBS LIBS="$LIBS -lpng -lz" AC_CHECK_LIB(gd,gdImageCreateFromGif,[AC_DEFINE(HAVE_GD_GIF)]) AC_CHECK_LIB(gd,gdImageLzw, [AC_DEFINE(HAVE_GD_LZW)]) AC_CHECK_LIB(gd,gdImageColorResolve, [AC_DEFINE(HAVE_GD_COLORRESOLVE)]) AC_CHECK_LIB(gd,gdImageString16,[ ], [AC_DEFINE(HAVE_GD_ANCIENT)]) LIBS=$old_LIBS dnl Say hi to the NetBSD package system! This causes everything to be found. The first part concerning gdImageCreateFromJpeg is just in case --with-gd=yes doesn't work. Now, configure needs to be regenerated with the new configure.in. Do this by typing autoconf That's it. Hope it helps someone out there.

« previous php.notes (#40575) next »