php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40131 FreeType2 is found but never built.
Submitted: 2007-01-15 02:19 UTC Modified: 2007-01-15 03:08 UTC
From: webmaster at guestwho dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 5.2.0 OS: FreeBSD 6.1-RELEASE
Private report: No CVE-ID: None
 [2007-01-15 02:19 UTC] 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.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-15 03:05 UTC] webmaster at guestwho dot com
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.
 [2007-01-15 03:08 UTC] pajoye@php.net
Btw, you do not need "--enable-gd-native-ttf".

set to bogus (not a bug)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 14:01:29 2024 UTC