note 9047 added to Image functions

From: Date: Fri, 13 Oct 2000 05:10:34 +0000
Subject: note 9047 added to Image functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-6433@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. http://www.php.net/manual/it/ref.image.php

« previous php.notes (#6433) next »