rjlohman Posted May 31, 2007 Share Posted May 31, 2007 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 More sharing options...
rjlohman Posted June 11, 2007 Author Share Posted June 11, 2007 Problem solved. Couldn't find any solution to the problem, so I removed the gd and freetype packages, then compiled from source and installed. Then, compiling PHP without using PHP's internal gd support fixed the issue. Link to comment https://forums.phpfreaks.com/topic/53788-help-enabling-gd-with-freetype-support/#findComment-272671 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.