Re: GD 2.0.1 and FreeType 2

From: Date: Fri, 13 Apr 2001 18:45:06 +0000
Subject: Re: GD 2.0.1 and FreeType 2
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-51550@lists.php.net to get a copy of this message
When compiling Apache I get: modules/php4/libphp4.a(gd.o): In function `php_imagettftext_common': /usr/src/apache/php4-200104131045/ext/gd/gd.c:2667: undefined reference to `gdttf' Brian Moon Phorum Dev Team - Making better forums with PHP http://phorum.org/ ------------------------------------------------------------------------- ----- Original Message ----- From: "Wez Furlong" <wez@thebrainroom.com> To: "Brian Moon" <brian@phorum.org> Sent: Friday, April 13, 2001 5:42 AM Subject: Re: [PHP-DEV] GD 2.0.1 and FreeType 2 > Hi Brian, > > > A) has anyone tried PHP and gd 2.0.1? > Yes - me. > > > B) If I compile gd with FreeType 2 support, do I have to compile FreeType > > into PHP? > PHP needs to be linked to any and all libraries that are used by those libraries that you use, if you get my meaning! > If gd has a dependency on freetype, then anything that uses that gd library will need to be linked to freetype as well. > > I've attached a patch that takes care of this and enables the true color and alpha channel code, plus a handful of line style and image brush/tile options that have so far been missing from PHP. > > ./configure --with-ttf=no --with-freetype-dir --with-png-dir --with-jpeg-dir --with-gd > > The --with-ttf=no is there to prevent linking against the libttf if it is installed. > > Please let me know how you get on with this! > > --Wez. > >

« previous php.dev (#51550) next »