Re: [PHP] PHP + GD 2.0.1
Has anyone got PHP successfully compiled and using GD 2.0.1? If so what was your configure line please and any other changes you had to make in order to get PHP to compile. Thanks. Build gd-2.0.1 with these two lines in your GD2 Makefile: CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE Same as mine. LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm Same as mine. Don't install the lib anywhere, just leave them in the gd-2.0.1 directory. [root@b gd-2.0.1] ~ make test gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm gcc: libgd.a: No such file or directory make: *** [gdtest] Error 1 [root@b gd-2.0.1] ~ It's obviously a simple error but I have no idea about C. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP + GD 2.0.1
Has anyone got PHP successfully compiled and using GD 2.0.1? If so what was your configure line please and any other changes you had to make in order to get PHP to compile. Thanks. Build gd-2.0.1 with these two lines in your GD2 Makefile: CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE Same as mine. LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm Same as mine. Don't install the lib anywhere, just leave them in the gd-2.0.1 directory. [root@b gd-2.0.1] ~ make test gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm gcc: libgd.a: No such file or directory make: *** [gdtest] Error 1 [root@b gd-2.0.1] ~ It's obviously a simple error but I have no idea about C. You left out your PHP configure line -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP + GD 2.0.1
Build gd-2.0.1 with these two lines in your GD2 Makefile: CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE Same as mine. LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm Same as mine. Don't install the lib anywhere, just leave them in the gd-2.0.1 directory. [root@b gd-2.0.1] ~ make test gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm gcc: libgd.a: No such file or directory make: *** [gdtest] Error 1 [root@b gd-2.0.1] ~ It's obviously a simple error but I have no idea about C. You left out your PHP configure line I was trying to make gd-2.0.1, are you saying don't make GD at all, just go straight to configuring php? In that case here's my php configure line: ./configure --with-apache=../apache_1.3.20 --enable-trans-sid --with-jpeg-dir=/usr/local --with-gd=/tmp/www/gd-2.0.1 --with-tiff-dir=../tiffv3.5.6-beta --with-png-dir=../libpng-1.0.12 --with-zlib-dir=../zlib-1.1.3 --with-pdflib --with-pgsql --enable-static-pdflib --enable-ftp --enable-gd-native-tt --enable-gd-imgstrttf --with-freetype-dir=/usr/local/include/freetype2 checking for freetype(2)... yes checking whether to include include FreeType 1.x support... no checking whether to include T1lib support... no configure: error: Unable to find libgd.(a|so) anywhere under /usr/local/include/freetype2 [root@b php-4.0.6] ~ Thankyou. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP + GD 2.0.1
[root@b gd-2.0.1] ~ make test gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm gcc: libgd.a: No such file or directory make: *** [gdtest] Error 1 [root@b gd-2.0.1] ~ It's obviously a simple error but I have no idea about C. You left out your PHP configure line I was trying to make gd-2.0.1, are you saying don't make GD at all, just go straight to configuring php? Ah, no, type: make libgd.a in your gd dir. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP + GD 2.0.1
It's obviously a simple error but I have no idea about C. You left out your PHP configure line I was trying to make gd-2.0.1, are you saying don't make GD at all, just go straight to configuring php? Ah, no, type: make libgd.a in your gd dir. Ok, making libgd.a worked and php configure worked. Make php failed: Making all in gd make[2]: Entering directory `/tmp/www/php-4.0.6/ext/gd' make[3]: Entering directory `/tmp/www/php-4.0.6/ext/gd' gcc -I. -I/tmp/www/php-4.0.6/ext/gd -I/tmp/www/php-4.0.6/main -I/tmp/www/php-4.0.6 -I/tmp/www/apache_1.3.20/src/include -I/tmp/www/apache_1.3.20/src/os/unix -I/tmp/www/php-4.0.6/Zend -I/usr/local/include -I/usr/local/include/freetype2/freetype -I/tmp/www/gd-2.0.1/ -I/tmp/www/php-4.0.6/ext/mysql/libmysql -I/tmp/www/php-4.0.6/ext/xml/expat/xmltok -I/tmp/www/php-4.0.6/ext/xml/expat/xmlparse -I/tmp/www/php-4.0.6/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c gd.c touch gd.lo gd.c: In function `php_minit_gd': gd.c:296: `gdPie' undeclared (first use in this function) gd.c:296: (Each undeclared identifier is reported only once gd.c:296: for each function it appears in.) gd.c:297: `gdChord' undeclared (first use in this function) gd.c:298: `gdNoFill' undeclared (first use in this function) gd.c:299: `gdEdged' undeclared (first use in this function) gd.c: In function `php_if_imagecreatetruecolor': gd.c:577: warning: assignment makes pointer from integer without a cast make[3]: *** [gd.lo] Error 1 make[3]: Leaving directory `/tmp/www/php-4.0.6/ext/gd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/www/php-4.0.6/ext/gd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/www/php-4.0.6/ext' make: *** [all-recursive] Error 1 [root@b php-4.0.6] ~ Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP + GD 2.0.1
Make php failed: Make sure you don't have gd-1.x header files in /usr/local/include -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]