Bug #13796 Updated: Configure sets both HAVE_GD_STRINGTTF and HAVE_GD_STRINGFT

From: Date: Wed, 24 Oct 2001 09:47:24 +0000
Subject: Bug #13796 Updated: Configure sets both HAVE_GD_STRINGTTF and HAVE_GD_STRINGFT
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-68928@lists.php.net to get a copy of this message
ID: 13796
Updated by: sniper
Reported By: johan@ekenberg.se
Old Status: Open
Status: Feedback
Bug Type: GD related
Operating System: Linux
PHP Version: 4.0CVS-2001-10-23
New Comment:

Sorry, I didn't notice that you're using invalid configure
option value here. --with-freetype-dir expects the
install prefix dir for freetype2.

# ./configure --help |grep freetype
--with-freetype-dir=DIR   GD: Set the path to freetype2 install prefix.

Also, is your GD library compiled with freetype 2?

--Jani




Previous Comments:
------------------------------------------------------------------------

[2001-10-24 04:20:01] johan@ekenberg.se

No, still the same problem:

$ grep HAVE_GD_STRING main/php_config.h
#define HAVE_GD_STRINGFT 1
/* #undef HAVE_GD_STRINGFTEX */
#define HAVE_GD_STRINGTTF 1

Gives the same error when compiled and tried with imagettf*().

------------------------------------------------------------------------

[2001-10-24 00:46:11] sniper@php.net

Could you check if this works in latest CVS now?

--Jani


------------------------------------------------------------------------

[2001-10-23 04:10:40] johan@ekenberg.se

Configuring with freetype 2 and NOT freetype 1.* installed:

./configure \
--with-gd \
--with-freetype-dir=/usr/local/include/freetype2

results in both HAVE_GD_STRINGTTF and HAVE_GD_STRINGFT being defined in main/php_config.h

This produces this error when trying to use the imagettf*() functions in GD:

"libgd was not built with TrueType font support"

Removing HAVE_GD_STRINGTTF from main/php_config.h before compiling fixes this issue. But of course
it should be permanently fixed in autoconf.

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=13796&edit=1



Thread (9 messages)

« previous php.dev (#68928) next »