Jump to content

Help Enabling GD with FreeType Support


rjlohman

Recommended Posts

All:

    I have been trying in vain to get GD with FreeType support installed. Ultimately, GD installs, but there's no FreeType support.

    I'm basing this on the results of gd_info() and phpinfo(), which produce the following:

 

From gd_info():

 

array(11)

{ ["GD Version"]=>  string(27) "bundled (2.0.34 compatible)"

["FreeType Support"]=>  bool(false)

["T1Lib Support"]=>  bool(false)

["GIF Read Support"]=>  bool(true)

["GIF Create Support"]=>  bool(true)

["JPG Support"]=>  bool(true)

["PNG Support"]=>  bool(true)

["WBMP Support"]=>  bool(true)

["XPM Support"]=>  bool(false)

["XBM Support"]=>  bool(true)

["JIS-mapped Japanese Font Support"]=>  bool(false) }

 

From phpinfo():

 

gd

GD Support - enabled

GD Version - bundled (2.0.34 compatible)

GIF Read Support - enabled

GIF Create Support - enabled

JPG Support - enabled

PNG Support - enabled

WBMP Support - enabled

XBM Support - enabled

 

My configure command looks like:

 

root@intel:/usr/src/php-5.2.2# ./configure --with-apxs2=/usr/bin/apxs --with-config-file-path=/etc/apache2 --with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-libxml-dir=/usr/lib --with-mysql --with-zlib --with-curl --with-freetype-dir=/usr/lib --with-mysql-sock --with-mysqli --with-pear --enable-bcmath --enable-ftp --enable-soap --enable-mbstring --with-imap=../imap-2006h

 

Note that I've tried this with and without the --enable-gd-native-ttf and --with-ttf directives. I have elected to use PHP's internal gd out of convenience. I'm getting no errors during configure or make. My php.ini's error_reporting is set to E_ALL & ~E_NOTICE.

 

I also checked to insure I had FreeType installed. Follwoing are the results:

 

root@intel:/etc/apache2# freetype-config --cflags

-I/usr/include/freetype2

 

Likewise, doing a locate on "freetype" displays a set of library files in /usr/lib, in addition to a number of other freetype files in X11R6.

 

Any Help is greatyly appreciated!

 

RJL

Link to comment
https://forums.phpfreaks.com/topic/53788-help-enabling-gd-with-freetype-support/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.