GD / FreeType2
| From: | Dale Frohman | Date: | Wed, 21 Feb 2001 16:45:06 +0000 |
| Subject: | GD / FreeType2 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-40996@lists.php.net to get a copy of this message | ||
I am trying to get GD and FreeType 2 to work with php so i can do dynamic
images from ttf fonts. I am running the following:
FreeBSD 4.1
Php version 4.0.4pl1
FreeType Version 2 from http://freetype.sourceforge.net
gd 1.8.4 from http://www.boutell.com/gd/
i installed libpng per gd's requirements.
i compiled freetype2 first and got no errors.
I had to edit the Makefile in the gd directory to include the following
path:
-I/usr/local/include/freetype2/freetype
then i get the following errors:
gdttf.c:66: syntax error before `TT_Engine'
gdttf.c:72: syntax error before `TT_Matrix'
gdttf.c:81: syntax error before `TT_Engine'
gdttf.c:87: syntax error before `TT_Glyph'
gdttf.c: In function `fontFetch':
gdttf.c:326: syntax error before `err'
gdttf.c:339: structure has no member named `engine'
the list goes on........
So i edited the Makefile again and removed:
-DHAVE_LIBTTF and -lttf
and it compiles fine.
I recompiled php with:
'./configure' '--with-mysql=/usr/local/mysql' '--with-xml'
'--with-apache=../apache_1.3.17' '--enable-track-vars'
'--with-gd=/usr/local/include/gd' '--with-zlib=/usr/local/lib'
'--with-ttf=/usr/local/include/freetype2/freetype'
and it compiled fine so did apache, but when i try to execute a php script
with imagettfbbox() i get:
Call to unsupported or undefined function imagettfbbox()
Any help at all will be greatly appreciated.
Thanks
Dale