I am sorry, and hate to keep bugging, but I am confused. If in order to have ImageFTText() work I need HAVE_GD_STRINGFTEX in the php_config.h. and gdImageStringFTEx is not part of the patch, where is gdImageStringFTEx...
I just searched all the gd header files (grep -i StringFTEX gd*.h) then I re-downloaded gd-2.0.1, unpacked it, and did a search in the tree for that definition. (grep -i StringFTEX *)...Basically there is no definition of the function that the php configure script is looking for in the entire gd source? I am not a very good programmer, but I am pretty sure that the gdImageStringFTEx() function should be somewhere in the gd source tree. I also found a news thread between you and Wez, that I think says the patch is needed??? From: Wez Furlong ([EMAIL PROTECTED]) Subject: Re: [PHP-DEV] Where/what is gdImageStringFTEx() ? Newsgroups: php.dev It's part of my patch, due to be included in GD 2.0.2. Date: 2001-11-21 00:10:56 PST Before masses of people ask me for the patch, please hassle boutell.com to release 2.0.2 first; they've had it for a very long time now! If you really really need it, drop me a mail. --Wez. On 17/11/01, "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote: > I see a check for this function in ext/gd/config.m4, but I see no sign of > it in any version of GD I can find. Someone clue me in please. > > -Rasmus Thanks Ernie "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It does only fix the anti-aliasing problem. ImageFtText() works fine. > > On Fri, 22 Feb 2002, Ernie Dipko wrote: > > > Do I need Wes's patch for gdImageStringFTEX to work??? I was mistaken, I > > thought the patch only fixed the anti-aliasing problem? > > > > > > "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Perhaps you have another libgd on your system that the -lgd in that test > > > program is picking up? > > > > > > On Fri, 22 Feb 2002, Ernie Dipko wrote: > > > > > > > Thanks Rasmus... > > > > > > > > You have pointed me in the right direction....upon further inspection of > > my > > > > config.status I see that gdImageStringFTEX=no, and looking in the > > config.log > > > > I found... > > > > > > > > > > > > > > > > configure:21579: checking for gdImageStringFTEx in -lgd > > > > configure:21598: gcc -o > > > > > > onftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib -R/u > > > > > > sr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -L/usr/local/lib/gcc-lib/sp > > > > arc-sun-solaris2.8/2.95.2 -R/usr/local/lib -L/usr/local/lib > > > > > > onftest.c -lgd -lgd -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lz -lcrypt -lr > > > > esolv > > > > -lresolv -lresolv -lm -ldl -lsocket -lsocket -lgcc -lcrypt 1>&5 > > > > /var/tmp/cczf3W7n.o: In function `main': > > > > /export/home/APACHE_SOURCE/php-4.1.1/configure:21594: undefined > > reference to > > > > `gdImageStringFTEx' > > > > collect2: ld returned 1 exit status > > > > configure: failed program was: > > > > #line 21587 "configure" > > > > #include "confdefs.h" > > > > /* Override any gcc2 internal prototype to avoid an error. */ > > > > /* We use char because int might match the return type of a gcc2 > > > > builtin and then its argument prototype would still apply. */ > > > > char gdImageStringFTEx(); > > > > > > > > > > > > > > > > int main() { > > > > gdImageStringFTEx() > > > > ; return 0; } > > > > > > > > > > > > > > > > So I think I have to step back to the gd install and see what > > > > happened....but honestly, I don't know what to try..in the gd makefile I > > > > have: > > > > > > > > CFLAGS=-g -DHAVE_LIBPNG -DHAVELIBJPG -DHAVE_LIBFREETYPE > > > > > > > > LIBS=-lgd -lpng -lz -ljpeg -lfreetype -lm > > > > > > > > > > > > > > > > > > > > > > > > > > INCLUDEDIRS=-I. -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/i > > > > nclude/X11 -I/usr/X11R6/include/X11 > > > > > > > > LIBDIRS=-L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/lib > > > > > > > > > > > > > > > > Did I miss something...Is my INCLUDEDIRS correct for the freetype 2.. > > > > (freetype-config --cflags > > > > returns -I/usr/local/include -I/usr/local/include/freetype2).. > > > > > > > > > > > > > > > > I appreciate all your help.. > > > > > > > > Ernie > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message > > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > > > > > > Are you trying to draw TTF fonts on a truecolor image? If so, > > GD-2.0.1 > > > > > has a bug which turns of anti-aliasing of the fonts in that case. > > > > > GD-2.0.2 will have the fix. For now, try it with a non-truecolor > > image > > > > > and I bet the font will look just fine. > > > > > > > > > > You can also ask Wes Furlong nicely for the patch which fixes this bug > > in > > > > > GD 2. > > > > > > > > > > In order for ImageFTText() to work you have to make sure that > > > > > HAVE_LIBGD20, HAVE_LIBFREETYPE and HAVE_GD_STRINGFTEX are all defined > > in > > > > > your php_config.h > > > > > > > > > > In order to get that use configure flags like these: > > > > > > > > > > --with-gd=/home/rasmus/gd-2.0.1 > > > > > --with-jpeg-dir=/usr > > > > > --with-freetype-dir=/usr > > > > > --enable-gd-native-ttf > > > > > --enable-gd-imgstrttf > > > > > --with-png-dir=/usr > > > > > > > > > > Also, never put "lib" in a configure flag. If Freetype is somewhere > > under > > > > > /usr/local, then use --with-freetype-dir=/usr/local > > > > > Don't put /usr/local/lib or the header files will not be found since > > they > > > > > are likely not somewhere under /usr/local/lib > > > > > > > > > > -Rasmus > > > > > > > > > > On Thu, 21 Feb 2002, Ernie Dipko wrote: > > > > > > > > > > > Can't figure out where I am going wrong... > > > > > > > > > > > > I cant seem to use the imagefttext function in PHP..it returns a > > warning > > > > > > saying "No FreeType 2 support in this PHP build". > > > > > > The configure, make, and make install of all programs complete > > without > > > > error > > > > > > and ImageTTFText() works (but the fonts do not look all that good), > > I > > > > just > > > > > > cant seam to use ImageFTText(). > > > > > > > > > > > > I am using: > > > > > > Solaris 8 > > > > > > Gd-2.0.1 > > > > > > Freetype-2.0.8 > > > > > > Php-4.1.1 > > > > > > Apache_1.3.22 > > > > > > > > > > > > Here is my php configure command.(from config.nice) > > > > > > #! /bin/sh > > > > > > # > > > > > > # Created by configure > > > > > > > > > > > > './configure' \ > > > > > > '--with-xml' \ > > > > > > '--with-mysql=/usr/local/mysql' \ > > > > > > '--with-apache=../apache_1.3.22' \ > > > > > > '--enable-track-vars' \ > > > > > > '--enable-sockets' \ > > > > > > '--enable-bcmath' \ > > > > > > '--with-gd' \ > > > > > > '--enable-gd-native-ttf' \ > > > > > > '--with-ttf=no' \ > > > > > > '--with-freetype-dir=/usr/local/lib' \ > > > > > > '--with-jpeg-dir=/usr/local/lib' \ > > > > > > '--with-png-dir=/usr/local/lib' \ > > > > > > '--with-zlib-dir=/usr/local/lib' \ > > > > > > '--with-xpm-dir=/usr/local/lib' \ > > > > > > "$@" > > > > > > > > > > > > I have looked at many news posts, search engines, web pages, etc. > > and > > > > have > > > > > > seen a lot of problems mentioning the freetype is not compiled into > > > > gd...but > > > > > > that is not the problem I am having.... I did do some of the > > > > suggestions > > > > > > from these sources, just to try them, but the problem remains. > > > > > > > > > > > > I Have tried changing --with-freetype-dir=/usr/local/lib to > > > > /usr/local/, > > > > > > Also tried -enable-gd-native-tt for a bug fix, I think form > > php-4.0.6... > > > > > > > > > > > > I don't wat to beg, but....PLEASE HELP!!! > > > > > > Ernie Dipko > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php