[cairo] Problem ./configure-ing concerning fontconfig/freetype

Martin Nyolt a31bd12e at freenet.de
Thu Jul 24 12:37:11 PDT 2008


Hi all,

I want to cross-compile cairo 1.6.4, but the configure-script can't 
compile the fontconfig testing code.

It says it's missing the libfreetype.so.6 and libxml2.so.2, but these 
files are already in $PREFIX/lib, like $PREFIX/lib/libfontconfig.so.
I also tried several environment vars like LIBS, LDFLAGS etc., but not 
any of them worked.
freetype, fontconfig and libxml compiled without any errors.

Is there anything else I can do so ld finds those two libs?


$ ./configure --host=arm-linux --prefix=/home/mn133/dist --disable-win32 
--disable-ps --disable-pdf

config.log:

configure:27825: checking for cairo's FreeType font backend
configure:27842: checking for FONTCONFIG
configure:27850: $PKG_CONFIG --exists --print-errors "$ft_REQUIRES"
configure:27853: $? = 0
configure:27868: $PKG_CONFIG --exists --print-errors "$ft_REQUIRES"
configure:27871: $? = 0
configure:27909: result: yes
configure:27920: checking for FcFini
configure:27976: arm-linux-gcc -o conftest -g -O2 
-I/home/mn133/dist/include     conftest.c  -lm -L/home/mn133/dist/lib 
-lfontconfig   >&5
/opt/somepath/arm-xscale-linux-gnu/gcc-4.0.4-glibc-2.3.6-kernel-2.6.14/lib/gcc/arm-xscale-linux-gnu/4.0.4/../../../../arm-xscale-linux-gnu/bin/ld: 
warning: libfreetype.so.6, needed by 
/home/mn133/dist/lib/libfontconfig.so, not found (try using -rpath or 
-rpath-link)
/opt/somepath/arm-xscale-linux-gnu/gcc-4.0.4-glibc-2.3.6-kernel-2.6.14/lib/gcc/arm-xscale-linux-gnu/4.0.4/../../../../arm-xscale-linux-gnu/bin/ld: 
warning: libxml2.so.2, needed by /home/mn133/dist/lib/libfontconfig.so, 
not found (try using -rpath or -rpath-link)
/home/mn133/dist/lib/libfontconfig.so: undefined reference to 
`FT_Get_PS_Font_Info'
/home/mn133/dist/lib/libfontconfig.so: undefined reference to 
`xmlCreatePushParserCtxt'
/home/mn133/dist/lib/libfontconfig.so: undefined reference to 
`FT_Init_FreeType'
/home/mn133/dist/lib/libfontconfig.so: undefined reference to 
`FT_Get_Sfnt_Name'
... and dozens of other missing symbols ...


More information about the cairo mailing list