PHP Dev & GD & TTF
| From: | Matt Allen | Date: | Sat, 27 Nov 1999 03:02:24 +0000 |
| Subject: | PHP Dev & GD & TTF | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-6961@lists.php.net to get a copy of this message | ||
Hi Guys,
I compiled php4b3 with gd and ttf support and when i hit this page:
<?
Header( "Content-type: image/gif");
if(!isset($s)) $s=20;
$size = imagettfbbox($s,0, "/home/matt/bilsons/images/arial.ttf",$text);
$dx = abs($size[2]-$size[0]);
$dy = abs($size[5]-$size[3]);
$xpad=9;
$ypad=9;
$im = imagecreate($dx+$xpad,$dy+$ypad);
$blue = ImageColorAllocate($im, 0x2c,0x6D,0xAF);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
ImageRectangle($im,0,0,$dx+$xpad-1,$dy+$ypad-1,$black);
ImageRectangle($im,0,0,$dx+$xpad,$dy+$ypad,$white);
ImageTTFText($im, $s, 0, (int)($xpad/2)+1, $dy+(int)($ypad/2), $black,
"/home/matt/bilsons/images/arial.ttf", $text);
ImageTTFText($im, $s, 0, (int)($xpad/2), $dy+(int)($ypad/2)-1, $white,
"/home/matt/bilsons/images/arial.ttf", $text);
ImageGif($im);
ImageDestroy($im);
?>
the apache error logs report this:
[Sat Nov 27 13:57:46 1999] [notice] Apache/1.3.9 (Unix) PHP/4.0b3
configured -- resuming normal operations
/www/bin/httpd: error in loading shared libraries: /www/bin/httpd: undefined
symbol: TT_Init_FreeType
/www/bin/httpd: error in loading shared libraries: /www/bin/httpd: undefined
symbol: TT_Init_FreeType
/www/bin/httpd: error in loading shared libraries: /www/bin/httpd: undefined
symbol: TT_Init_FreeType
/www/bin/httpd: error in loading shared libraries: /www/bin/httpd: undefined
symbol: TT_Init_FreeType
/www/bin/httpd: error in loading shared libraries: /www/bin/httpd: undefined
symbol: TT_Init_FreeType
/www/bin/httpd: error in loading shared libraries: /www/bin/httpd: undefined
symbol: TT_Init_FreeType
/www/bin/httpd: error in loading shared libraries: /www/bin/httpd: undefined
symbol: TT_Init_FreeType
/www/bin/httpd: error in loading shared libraries: /www/bin/httpd: undefined
symbol: TT_Init_FreeType
/www/bin/httpd: error in loading shared libraries: /www/bin/httpd: undefined
symbol: TT_Init_FreeType
/www/bin/httpd: error in loading shared libraries: /www/bin/httpd: undefined
symbol: TT_Init_FreeType
/www/bin/httpd: error in loading shared libraries: /www/bin/httpd: undefined
symbol: TT_Init_FreeType
I also got downloaded CVS as of today and it said exactly the same thing.
Any Ideas ?
Matt Allen
Technical Director
www.yourweb.com.au
matt@yourweb.com.au
0413 777 771