I have been trying to get FreeType working with PHP but have had no
luck. In Apache's error log i'm getting:

PHP Warning:  libgd was not built with TrueType font support

Here's the lines that are probably pertinent from my web server
compilation script. Any suggestions on how to fix this would be greatly
appreciated.

FreeType 2.05
-------------

make setup CFG="--prefix=/usr/local"
make
make install

GD 1.8.4
--------

Changed lines in Makefile to:

CFLAGS=-O -DHAVE_LIBPNG -DHAVE_LIBJPEG  -DHAVE_LIBFREETYPE
LIBS=-lgd -lpng -lz -lm  -lfreetype
INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 \
     -I/usr/X11R6/include/X11 -I/usr/local/include \
     -I/usr/local/src/jpeg-6b -I/usr/local/include/freetype2

# /usr/local/src/jpeg-6b is the source location for jpeg-6b.
# /usr/include/freetype2 doesn't exist, but the script i use
# for the installation doesn't remove it and since it doesn't
# exist, no harm should be done. Same with the X11 directories.

make
make install

PHP 4.0.6
---------

./configure --with-apache=../apache_1.3.22 --with-openssl \
     --with-imap=/usr/local/src/imap-2000c \
     --with-pgsql=/usr/local/pgsql --with-mysql=/usr/local/mysql \
     --with-dbase --with-ms-sql --with-sybase=/usr/local/freetds \
     --with-config-file-path=/etc/httpd --enable-track-vars \
     --disable-debug --enable-pic --enable-inline-optimization \
     --enable-ftp --with-xml \
     --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local \
     --with-freetype-dir=/usr/local/freetype-2.0.5 --with-zlib \
     --enable-gd-native-tt --with-freetype
make
make install

Apache 1.3.22
-------------

SSL_BASE="SYSTEM" ./configure --prefix=/usr/local/apache \
     --with-layout=RedHat --enable-module=most --enable-module=ssl \
     --activate-module=src/modules/perl/libperl.a \
     --activate-module=src/modules/php4/libphp4.a
make
make certificate TYPE=dummy
make install

------------------------------------------------------------------------
Dan Ramaley
Digital Media Library Specialist
(515) 271-1934
Cowles Library 140, Drake University


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to