[cairo] fontconfig compile error (was: Interesting Linux distribution problem)

Travis Griggs tgriggs at cincom.com
Mon Sep 28 14:08:50 PDT 2009


On Sep 28, 2009, at 12:07 PM, Mike Shaver wrote:

> On Mon, Sep 28, 2009 at 10:27 AM, Travis Griggs <tgriggs at cincom.com>  
> wrote:
>> The question really boils down to "how would you build/compile/ 
>> package/
>> distribute Cairo so that your Linux app can use it on as wide a
>> variety of Linux installs as possible?"
>
> Ship your own.  Doing otherwise exposes you to a mess of
> version-matrix support issues that really don't pay for themselves
> when it comes to the download savings.

OK. Figured it was going to come to that. Behdad said the same thing  
in IRC.

Following that advice, I'm trying to compile fontconfig (managed to  
get FreeType compiled, found one issue with it). I think some of the  
same developers hang out here, so I apologize for asking somewhat off  
topic. I can ask on a different list if someone points me at it.  
Anyway, I'm trying to compile fontconfig in my own local directory  
($HOME/BuildCairo), set with --prefix at ./configure time. I also used  
the --sysconfdir=/etc, If I didn't, it wanted to believe that the  
FONTCONFIG_PATH was down in my BuildCairo directory. But I still get a  
compile error of some sort. Not even sure exactly what's going wrong.  
I see lots of warning, but am missing the actual error. I've copied  
the output below my sig. Any help/hints greatly appreciated.

The -DFC_CACHEDIR value seems like a Bad Thing, but maybe I just don't  
understand it well enough...

--
Travis Griggs
Objologist
Light travels faster than sound. This is why some people appear bright  
until you hear them speak...




../doltcompile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -I/usr/ 
include/freetype2   -Wall -Wpointer-arith -Wstrict-prototypes  - 
Wmissing-prototypes -Wmissing-declarati
ons     -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR='"/pps/ 
tgriggs/BuildCairo/var/cache/fontconfig"' -DFONTCONFIG_PATH='"/etc/ 
fonts"'    -g -O2 -MT fcfreetype.l
o -MD -MP -MF .deps/fcfreetype.Tpo -c -o fcfreetype.lo fcfreetype.c
fcfreetype.c:70:2: warning: #warning "No FT_Get_BDF_Property: Please  
install freetype 2.1.4 or later"
fcfreetype.c:74:2: warning: #warning "No FT_Get_PS_Font_Info: Please  
install freetype 2.1.1 or later"
fcfreetype.c:1777:2: warning: #warning "No FT_Get_Next_Char: Please  
install freetype version 2.1.0 or newer"
fcfreetype.c:127: `TT_MS_ID_UCS_4' undeclared here (not in a function)
fcfreetype.c:127: initializer element is not constant
fcfreetype.c:127: (near initialization for  
`fcFtEncoding[9].encoding_id')
fcfreetype.c:461: `TT_MS_LANGID_TIBETAN_CHINA' undeclared here (not in  
a function)
fcfreetype.c:461: initializer element is not constant
fcfreetype.c:461: (near initialization for  
`fcFtLanguage[288].language_id')
fcfreetype.c:462: `TT_MS_LANGID_DZONGHKA_BHUTAN' undeclared here (not  
in a function)
fcfreetype.c:462: initializer element is not constant
fcfreetype.c:462: (near initialization for  
`fcFtLanguage[289].language_id')
fcfreetype.c:509: `TT_MS_LANGID_SPANISH_UNITED_STATES' undeclared here  
(not in a function)
fcfreetype.c:509: initializer element is not constant
fcfreetype.c:509: (near initialization for  
`fcFtLanguage[317].language_id')
fcfreetype.c:512: `TT_MS_LANGID_SPANISH_LATIN_AMERICA' undeclared here  
(not in a function)
fcfreetype.c:512: initializer element is not constant
fcfreetype.c:512: (near initialization for  
`fcFtLanguage[318].language_id')
fcfreetype.c:513: `TT_MS_LANGID_FRENCH_NORTH_AFRICA' undeclared here  
(not in a function)
fcfreetype.c:513: initializer element is not constant
fcfreetype.c:513: (near initialization for  
`fcFtLanguage[319].language_id')
fcfreetype.c:515: `TT_MS_LANGID_FRENCH_MOROCCO' undeclared here (not  
in a function)
fcfreetype.c:515: initializer element is not constant
fcfreetype.c:515: (near initialization for  
`fcFtLanguage[320].language_id')
fcfreetype.c:516: `TT_MS_LANGID_FRENCH_HAITI' undeclared here (not in  
a function)
fcfreetype.c:516: initializer element is not constant
fcfreetype.c:516: (near initialization for  
`fcFtLanguage[321].language_id')
fcfreetype.c:517: `TT_MS_LANGID_BENGALI_BANGLADESH' undeclared here  
(not in a function)
fcfreetype.c:517: initializer element is not constant
fcfreetype.c:517: (near initialization for  
`fcFtLanguage[322].language_id')
fcfreetype.c:518: `TT_MS_LANGID_PUNJABI_ARABIC_PAKISTAN' undeclared  
here (not in a function)
fcfreetype.c:518: initializer element is not constant
fcfreetype.c:518: (near initialization for  
`fcFtLanguage[323].language_id')
fcfreetype.c:519: `TT_MS_LANGID_MONGOLIAN_MONGOLIA_MONGOLIAN'  
undeclared here (not in a function)
fcfreetype.c:519: initializer element is not constant
fcfreetype.c:519: (near initialization for  
`fcFtLanguage[324].language_id')
fcfreetype.c:525: `TT_MS_LANGID_HAUSA_NIGERIA' undeclared here (not in  
a function)
fcfreetype.c:525: initializer element is not constant
fcfreetype.c:525: (near initialization for  
`fcFtLanguage[325].language_id')
fcfreetype.c:526: `TT_MS_LANGID_YORUBA_NIGERIA' undeclared here (not  
in a function)
fcfreetype.c:526: initializer element is not constant
fcfreetype.c:526: (near initialization for  
`fcFtLanguage[326].language_id')
fcfreetype.c:528: `TT_MS_LANGID_IGBO_NIGERIA' undeclared here (not in  
a function)
fcfreetype.c:528: initializer element is not constant
fcfreetype.c:528: (near initialization for  
`fcFtLanguage[327].language_id')
fcfreetype.c:529: `TT_MS_LANGID_KANURI_NIGERIA' undeclared here (not  
in a function)
fcfreetype.c:529: initializer element is not constant
fcfreetype.c:529: (near initialization for  
`fcFtLanguage[328].language_id')
fcfreetype.c:530: `TT_MS_LANGID_GUARANI_PARAGUAY' undeclared here (not  
in a function)
fcfreetype.c:530: initializer element is not constant
fcfreetype.c:530: (near initialization for  
`fcFtLanguage[329].language_id')
fcfreetype.c:531: `TT_MS_LANGID_HAWAIIAN_UNITED_STATES' undeclared  
here (not in a function)
fcfreetype.c:531: initializer element is not constant
fcfreetype.c:531: (near initialization for  
`fcFtLanguage[330].language_id')
fcfreetype.c:532: `TT_MS_LANGID_LATIN' undeclared here (not in a  
function)
fcfreetype.c:532: initializer element is not constant
fcfreetype.c:532: (near initialization for  
`fcFtLanguage[331].language_id')
fcfreetype.c:533: `TT_MS_LANGID_SOMALI_SOMALIA' undeclared here (not  
in a function)
fcfreetype.c:533: initializer element is not constant
fcfreetype.c:533: (near initialization for  
`fcFtLanguage[332].language_id')
fcfreetype.c:540: `TT_MS_LANGID_PAPIAMENTU_NETHERLANDS_ANTILLES'  
undeclared here (not in a function)
fcfreetype.c:540: initializer element is not constant
fcfreetype.c:540: (near initialization for  
`fcFtLanguage[333].language_id')
fcfreetype.c: In function `FcFreeTypeCharSetAndSpacingForSize':
fcfreetype.c:2638: warning: implicit declaration of function  
`FT_Get_First_Char'
fcfreetype.c: In function `FcFontCapabilities':
fcfreetype.c:2962: warning: implicit declaration of function  
`FT_Load_Sfnt_Table'
fcfreetype.c:2958: warning: unused variable `memory'
fcfreetype.c: At top level:
fcfreetype.c:946: warning: `FcStringIsConst' defined but not used
fcfreetype.c:2293: warning: `FcHashGlyphName' defined but not used
make[3]: *** [fcfreetype.lo] Error 1
make[3]: Leaving directory `/pps/tgriggs/BuildCairo/fontconfig-2.7.3/ 
src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/pps/tgriggs/BuildCairo/fontconfig-2.7.3/ 
src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/pps/tgriggs/BuildCairo/fontconfig-2.7.3'
make: *** [all] Error 2




More information about the cairo mailing list