Bug #17130 Updated: PHP won't find the freetype 1.3 headers on RH7.2

From: Date: Tue, 18 Jun 2002 08:37:42 +0000
Subject: Bug #17130 Updated: PHP won't find the freetype 1.3 headers on RH7.2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11057@lists.php.net to get a copy of this message
 ID:               17130
 Updated by:       derick@php.net
 Reported By:      morissette@dmsolutions.ca
-Status:           Open
+Status:           Feedback
 Bug Type:         GD related
 Operating System: Linux RH 7.2
 PHP Version:      4.2.0
 New Comment:

Can you please try the latest cvs snapshot from snaps.php.net and
report back if it works for you now?


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

[2002-05-09 17:40:45] morissette@dmsolutions.ca

I am trying to compile PHP with GD and TTF support with a custom
version of the GD-1.8.4 library compiled with Freetype 1.3 on a RH 7.2
system which came with both freetype 1.3 and freetype 2.0 rpms
preinstalled by default. I removed the gd-devel rpm which came
preinstalled on the system in order to use my own custom GD which is
installed under /usr/local/lib.

I configure PHP with  '--with-ttf=/usr --with-gd=/usr/local
--enable-gd-native-ttf' and PHP configure detects the right GD, but it
doesn't detect freetype 1.3.

Looking in ext/config.m4, I find that the script looks for freetype1
headers in
  /usr/include/freetype.h
  /usr/include/freetype/freetype.h
  /usr/local/include/freetype.h
  /usr/local/include/freetype/freetype.h
  $TTF_DIR/include/freetype.h
  $TTF_DIR/include/freetype/freetype.h

But RH7.2 comes with the freetype1 headers installed in 
  /usr/include/freetype1/freetype/freetype.h

A workaround is to create a logical link from /usr/include/freetype ->
/usr/include/freetype1/freetype ... and that works... with that logical
link my PHP builds with TTF support...

... but I think a better fix would be to modify ext/gd/config.m4 to
look for freetype1 headers under
$TTF_DIR/include/freetype1/freetype/freetype.h as well.

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


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



Thread (5 messages)

« previous php.bugs (#11057) next »