RE: [PHP] configuring with gd for TTF

From: Date: Tue, 03 Jul 2001 08:00:25 +0000
Subject: RE: [PHP] configuring with gd for TTF
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55949@lists.php.net to get a copy of this message
If you still can't get it working, post the contents of your config.log file, that can help diagnose it. I figured out a problem with gd 2.0.x not linking properly with PHP 4.0.6 by analyzing the config.log file... -----Original Message----- From: Ray Hilton [mailto:me@rayh.co.uk] Sent: Tuesday, July 03, 2001 3:56 AM To: 'Brian White'; 'Ray Hilton'; 'PHP Mailing List' Subject: RE: [PHP] configuring with gd for TTF Ok, well here goes... I have removed the --enable-gd-native-ttf and --with-freetype-dir (or whatever it was) copied your settings, more or less... Phpinfo() can be found at http://www.rayh.co.uk/downloads/info.php Wish me luck :) -----Original Message----- From: Brian White [mailto:bwhite@steptwo.com.au] Sent: 03 July 2001 09:40 To: Ray Hilton; 'PHP Mailing List' Subject: RE: [PHP] configuring with gd for TTF Ok. Well, given mine works, I thought I would tell you what I have! My phpinfo says exactly the same: GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with TTF library JPG Support enabled PNG Support enabled WBMP Support enabled My configure options were: ./configure --with-gd=/usr/local/src/gd-1.8.4/ --enable-gd-imgstrttf --with-ttf=/usr/local/freetype/ --enable-calendar --disable-short-tags --with-mysql=/usr/local/mysql/ --with-jpeg-dir=/usr/local/src/jpeg-6b/ --with-apxs=/usr/local/apache/bin/apxs gd-1.8.4 is actually compiled ( theoretically ) with freetype2.x support, though that shouldn't be making any difference, I would have thought. Freetype is 1.3. Also, whenever I configured and then compiled I always deleted config.cache and ran "make clean" first. Hope this helps. Brian At 09:36 3/07/2001 +0200, Ray Hilton wrote: >Nope, not a sausage, I tried it with and without gd's ttf, specifiying >to compile in freetype 1.x, or freetype 2, and numerous other >combinations... Its doing my nut in!! > >I think the lib thing your talking about is just a matter of sticking >the path in /etc/ld.so.conf and then running ldconfig... > >I just recompiled php, and according to php info: > >GD Support enabled >GD Version 1.6.2 or higher >FreeType Support enabled >FreeType Linkage with freetype >T1Lib Support enabled >JPG Support enabled >WBMP Support enabled > >Which is exactly the same as it was 10 compiles ago... And yet I still >get: > >Warning: libgd was not built with TrueType font support in >/home/ray/webroot/rayh/htdocs/gfx/image.php on line 48 > >Every single time... > >Ray Hilton >- >me@rayh.co.uk >http://rayh.co.uk > >-----Original Message----- >From: Brian White [mailto:bwhite@steptwo.com.au] >Sent: 03 July 2001 09:08 >To: Ray Hilton; 'PHP Mailing List' >Subject: Re: [PHP] configuring with gd for TTF > > >I completely gave up trying to compile freetype 2.x into GD. However I >was able to successfully compile freetype 1.3 directly into PHP which >seems to work fine. > >IE: > forget trying to use: > --enable-gd-native-ttf > > instead: > --with-ttf=/usr/local/freetype/ > > which assumes you have freetype 1.3 installed to >/usr/local/freetype > > >BTW - I have my own question. To restart apache at the moment I have >to set and export: > > LD_LIBRARY_PATH=/usr/local/freetype/lib/ > >Anyone know what I need to do to get this recognised by Apache >internally. ( I am running Debian Linux "Potato" ) > >Regs > >Brian White > > >At 08:50 3/07/2001 +0200, Ray Hilton wrote: > >I'm having all sorts of headaches trying to get TTF support in gd to > >work. I have compiled from scratch gd 1.8 with ttf support by way of > >freetype 2, this compiles fine. Then I compile php using the > >configure > > >statement below and all I get when I try and call a TTF function is: > > > >Warning: libgd was not built with TrueType font support in > >/home/ray/webroot/rayh/htdocs/gfx/image.php on line 48 > > > >Etc etc... Can anyone point me in the right direction? Am I right > >in thinking that you can either use gd's native ttf support or > >compile freetype into php seperatley? > > > >./configure --with-xml --with-dom --with-mysql=/usr/local/mysql > >--with-apxs=/usr/local/apache/bin/apxs --with-sablot > >--with-openssl=/usr/local/ssl --with-zlib --with-ttf=no --with-gd > >--enable-shared-pdflib --with-imap --with-t1lib=/usr/local/lib/ > >--with-jpeg-dir=/usr/lib/ --with-freetype-dir=/usr/local/lib/ > >--enable-gd-native-tt > > > > > >Cheers, > >Ray Hilton > >- > >me@rayh.co.uk > >http://rayh.co.uk > > > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > >For additional commands, e-mail: php-general-help@lists.php.net To > >contact the list administrators, e-mail: php-list-admin@lists.php.net > >------------------------- >Brian White >Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy >Phone: +612-93197901 >Web: http://www.steptwo.com.au/ >Email: bwhite@steptwo.com.au > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net To >contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net To >contact the list administrators, e-mail: php-list-admin@lists.php.net ------------------------- Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: bwhite@steptwo.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#55949) next »