|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-05-09 17:40 UTC] morissette at dmsolutions dot 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 03:00:02 2025 UTC |
I tried with php4-200206181200 from snaps.php.net and the problem is still present. The following change to ext/gd/config.m4 fixes it (after re-running autoconf of course): --- ext/gd/config.m4.original Tue Jun 18 18:11:32 2002 +++ ext/gd/config.m4 Tue Jun 18 18:12:39 2002 @@ -129,6 +129,10 @@ TTF_DIR=$i TTF_INC_DIR=$i/include/freetype fi + if test -f "$i/include/freetype1/freetype/freetype.h"; then + TTF_DIR=$i + TTF_INC_DIR=$i/include/freetype1/freetype + fi done fi if test -n "$TTF_DIR" ; then