Hiya,
I'm having real problems here trying to get LibGD to compile as a static library
The first problem is that LibJPEG refuses to install- It compiles perfectly happily, but gives Error 71 when attempting to install the documentation files, and nothing works after that.
JPEG support isn't totally necessary for what I'm trying to do with LibGD ATM, so I've left that out, and am running without it. I can see no obvious errors in the config process (I can post this if it's going to be helpful) Anyway, the compile runs for a bit, and then bombs out with this nice little list of errors:
gdft.c:1366:35: error: fontconfig/fontconfig.h: No such file or directory
gdft.c:1429: error: parse error before '*' token
gdft.c:1429: error: parse error before '*' token
gdft.c: In function 'find_font':
gdft.c:1431: error: 'FcResult' undeclared (first use in this function)
gdft.c:1431: error: (Each undeclared identifier is reported only once
gdft.c:1431: error: for each function it appears in.)
gdft.c:1431: error: parse error before 'result'
gdft.c:1433: error: 'pattern' undeclared (first use in this function)
gdft.c:1433: error: 'FcMatchPattern' undeclared (first use in this function)
gdft.c:1434: error: 'FcMatchFont' undeclared (first use in this function)
gdft.c:1437: error: 'result' undeclared (first use in this function)
gdft.c:1437: warning: return makes pointer from integer without a cast
gdft.c: At top level:
gdft.c:1442: error: parse error before '*' token
gdft.c: In function 'find_postscript_font':
gdft.c:1444: error: 'FcPattern' undeclared (first use in this function)
gdft.c:1444: error: 'font' undeclared (first use in this function)
gdft.c:1447: error: 'fontpattern' undeclared (first use in this function)
gdft.c:1449: error: 'fontname' undeclared (first use in this function)
gdft.c:1450: error: 'FcChar8' undeclared (first use in this function)
gdft.c:1450: error: 'family' undeclared (first use in this function)
gdft.c:1452: error: 'pattern' undeclared (first use in this function)
gdft.c:1454: error: 'FC_FAMILY' undeclared (first use in this function)
gdft.c:1454: error: 'FcTypeString' undeclared (first use in this function)
gdft.c:1455: error: 'FC_STYLE' undeclared (first use in this function)
gdft.c:1460: error: 'FcResultMatch' undeclared (first use in this function)
gdft.c: In function 'font_pattern':
gdft.c:1479: error: 'FcPattern' undeclared (first use in this function)
gdft.c:1479: error: 'font' undeclared (first use in this function)
gdft.c:1480: error: 'FcChar8' undeclared (first use in this function)
gdft.c:1480: error: 'file' undeclared (first use in this function)
gdft.c:1481: error: 'pattern' undeclared (first use in this function)
gdft.c:1494: error: parse error before 'FcChar8'
gdft.c:1501: error: 'FC_FILE' undeclared (first use in this function)
gdft.c:1501: error: 'FcResultMatch' undeclared (first use in this function)
make[2]: *** [gdft.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
To me it looks as if its breaking somewhere in the freetype libraries, but I'm no expert.
The machine in question is a Macbook Pro 2ghz running 10.4.7
Cheers
-Leezer-