PHP 4.4.0/GD/freetype compilation problems

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I've been running php/apache/etc locally on my powerbook for a long
time, but am having problems activating freetype with a new version of

I'm using:
php 4.4.0
freetype 2.1.10 (compiled from source)
gd 2.0.28 (came with php)

PHP configures just fine with this config line:
./configure --with-zlib-dir=/usr/include --with-libjpeg=/sw
--with-libtiff=/sw --with-libpng=/sw --with-freetype-dir=/usr/X11R6/
--with-gd --enable-gd-native-ttf --with-png-dir=/sw --with-mysql=/sw
--with-xml --with-jpeg-dir=/sw --with-apxs

It can find FreeType, and the gd ttf function integrator.

The problem comes when I run 'make' for php:
In file included from /sw-comp/php-4.4.0/ext/gd/libgd/gdft.c:65:
/usr/local/include/freetype2/freetype/ftglyph.h:40:2: #error
"freetype.h of FreeType 1 has been loaded!"

/usr/local/include/freetype2/freetype/ftglyph.h:41:2: #error "Please
fix the directory search order for header files"

/usr/local/include/freetype2/freetype/ftglyph.h:42:2: #error "so that
freetype.h of FreeType 2 is found first."

Anyone seen this before?

- Andrew

awaegel's Profile:
View this thread: - The Answer to Mac Support -

Re: PHP 4.4.0/GD/freetype compilation problems

think you need --with-gd2

Site Timeline