Jump to content

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...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.