|
|
LibGD compile problems
|
|
|
|
Fresh-Faced Recruit
Join Date: Jul 2006
Status:
Offline
|
|
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-
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Apr 2001
Status:
Offline
|
|
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.
I'd be willing to bet that it's trying to install documentation in a place that doesn't exist on a Mac. If that's the case, create the directory path for which it's looking.
gdft.c:1366:35: error: fontconfig/fontconfig.h: No such file or directory
There's your problem. Find out why it can't find that file. Perhaps it doesn't exist, or you've neglected to include the directory with -I.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Jul 2006
Status:
Offline
|
|
Should have spotted that.
Still, I can't see anything wrong- Freetype compiled properly & is working in Darwine, and fontconfig.h is definitely there. This is the section of code which attempts to find & load fontconfig.h-
Code:
#ifdef HAVE_LIBFONTCONFIG
/* Code to find font path, with special mapping for Postscript font names.
*
* Dag Lem <[email protected]>
*/
#include <fontconfig/fontconfig.h>
/* #define NO_POSTSCRIPT_ALIAS 1 */
#ifndef NO_POSTSCRIPT_ALIAS
typedef struct _PostscriptAlias {
char* name;
char* family;
char* style;
} PostscriptAlias;
/* This table maps standard Postscript font names to URW Type 1 fonts.
The mapping is converted from Ghostscript (Fontmap.GS)
for use with fontconfig. */
static PostscriptAlias postscript_alias[] = {
<Load of font aliases I've left out>
};
#endif
Any idea why its failing to find it, even though the config acknowledges its presence? The LibGD compile OSX compile instructions don't have anything special in them- Just create a couple of symlinks which I've done and compile the stuff.
Definitely no mention of including directories either- How do I do this?
Cheers
-Leezer-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|