ID:               40131
 User updated by:  webmaster at guestwho dot com
 Reported By:      webmaster at guestwho dot com
-Status:           Open
+Status:           Closed
 Bug Type:         GD related
 Operating System: FreeBSD 6.1-RELEASE
 PHP Version:      5.2.0
 New Comment:

Nevermind, turns out all I needed to do was a "make clean" before
"make". I guess I needed to remove the old GD objects/libs before it
would build new ones with FreeType.


Previous Comments:
------------------------------------------------------------------------

[2007-01-15 02:19:02] webmaster at guestwho dot com

Description:
------------
I am trying to build PHP with FreeType2 support using the following
configure line:

./configure  --with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql \
             --with-zlib --with-pdo-mysql=/usr/local/mysql
--enable-mbstring \
             --with-curl=/usr/local --enable-debug
--with-openssl=/usr/local/ssl \
             --with-gd --with-custom-odbc=/usr/local
--with-pdo-odbc=unixODBC,/usr/local \
             --enable-ftp --enable-zip --enable-pcntl
--with-freetype-dir=/usr/local \
             --enable-gd-native-ttf


The freetype headers are in:  /usr/local/include/freetype2/freetype/
and according to the configure script they are found.

Output from configure:

checking for GD support... yes
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... /usr/local
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes

The output from the compiler includes " -I/usr/local/include/freetype2"
so it's obviously trying to include the libraries.

Now my problem is that phpinfo() does not list FreeType under the GD
section, and TTF related functions such as imagettfbbox() are
undefined.

I don't understand why configure and the compile output both reference
freetype but it never gets built.





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40131&edit=1

Reply via email to