|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-08-31 06:21 UTC] florent at chantret dot com
I've tried on two systems to build PHP with GD and Freetype 2. It doesn't work. PHP always report in the configuration phase that Freetype 2 support is not enabled in GD. But it is enabled cause I can launch the gdtestft !!! PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 02:00:01 2025 UTC |
In fact, I use the ports from FreeBSD. The Makefile.inc looks like this : LIB_DEPENDS+= gd.2:${PORTSDIR}/graphics/gd LIB_DEPENDS+= freetype.7:${PORTSDIR}/print/freetype2 LIB_DEPENDS+= png.4:${PORTSDIR}/graphics/png LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg CONFIGURE_ARGS+=--with-gd=${PREFIX} \ --with-freetype-dir=${PREFIX} \ --with-jpeg-dir=${PREFIX} \ --with-png-dir=${PREFIX} CONFIGURE_ARGS+=--with-zlib During the configuration phase, I can see the following message : "Checking whether to include freetype text support in GD... no" (or something like this :o) ) and few lines bellow : "Checking for Freetype(2)... found" phpinfo() give me the following : GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with freetype JPG Support enabled PNG Support enabled WBMP Support enabled And of course the ImageTTFText doesn't work telling me that libgd is compiled without the support for freetype. Not true cause I can launch the exe example gdtestft. So I've tried to add the following in the Makefile.inc but I still have the "Checking whether to include freetype text support in GD... no" : --enable-freetype-4bit-antialias-hack or --enable-gd-native-ttf The problem is on a FreeBSD 4.3, with PHP 4.0.6, GD 1.8.4 and Freetype 2.0.4 but I've noticed the same problem on other configuration like a Mandrake 7.2, running PHP 4.0.5. HHHHEEEELLLLPPPPPPP :o)In fact, I use the ports from FreeBSD. The Makefile.inc looks like this : LIB_DEPENDS+= gd.2:${PORTSDIR}/graphics/gd LIB_DEPENDS+= freetype.7:${PORTSDIR}/print/freetype2 LIB_DEPENDS+= png.4:${PORTSDIR}/graphics/png LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg CONFIGURE_ARGS+=--with-gd=${PREFIX} \ --with-freetype-dir=${PREFIX} \ --with-jpeg-dir=${PREFIX} \ --with-png-dir=${PREFIX} CONFIGURE_ARGS+=--with-zlib During the configuration phase, I can see the following message : "Checking whether to include freetype text support in GD... no" (or something like this :o) ) and few lines bellow : "Checking for Freetype(2)... found" phpinfo() give me the following : GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with freetype JPG Support enabled PNG Support enabled WBMP Support enabled And of course the ImageTTFText doesn't work telling me that libgd is compiled without the support for freetype. Not true cause I can launch the exe example gdtestft. So I've tried to add the following in the Makefile.inc but I still have the "Checking whether to include freetype text support in GD... no" : --enable-freetype-4bit-antialias-hack or --enable-gd-native-ttf The problem is on a FreeBSD 4.3, with PHP 4.0.6, GD 1.8.4 and Freetype 2.0.4 but I've noticed the same problem on other configuration like a Mandrake 7.2, running PHP 4.0.5. HHHHEEEELLLLPPPPPPP :o)