[X-Unix] Re: Install gd-2.0.33 on tiger PPC 10.4.8

Peter Dyballa Peter_Dyballa at Web.DE
Mon Oct 30 04:38:06 PST 2006


Am 30.10.2006 um 05:48 schrieb x-unix- 
request at listserver.themacintoshguy.com:

> gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include/freetype2
> -I/usr/local/include -g -O2 -MT gdft.lo -MD -MP -MF .deps/gdft.Tpo -c
> gdft.c  -fno-common -DPIC -o .libs/gdft.lo
> gdft.c:1366:35: error: fontconfig/fontconfig.h: No such file or  
> directory
> [...]
> gcc -fPIC -I. -I/usr/include/freetype2 -I/usr/local/include/freetype2
> -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include -g
> -DHAVE_LIBPNG -DHAVE_LIBZ -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
> -DHAVE_LIBXPM -DHAVE_LIBX11   -c -o gdft.o gdft.c
> In file included from gdft.c:113:
> /usr/local/include/freetype2/freetype/freetype.h:20:2: error: #error
> "`ft2build.h' hasn't been included yet!"

Try to run './configure --help' to see some project specific options!

What you need to do is to add search paths for fontconfig header  
files (-I/usr/local/fontconfig – although it's really not obvious  
from the first error, have you just forgotten to install  
libfontconfig?) and you need *two* components for freetype: /usr/ 
local/include/freetype2 *and* /usr/local/include, because in /usr/ 
local/include you'll find ft2build.h.

So, if you think invoking './configure --help' isn't worth every time  
you should at least pass to configure a reasonable set of CPPFLAGS.

BTW, -I/usr/include/X11 and -I/usr/X11R6/include/X11 are both  
nonsense. X11 header files are included as X11/<some relative path or  
file name>.

--
Greetings

   Pete

   Basic, n.:
A programming language.  Related to certain social diseases in
that those who have it will not admit it in polite company.




More information about the X-Unix mailing list