[Fontconfig] Cross compile fontconfig error

ON JJ jjon1985 at hotmail.com
Wed Mar 10 00:11:56 PST 2010


HI
I am trying to cross compile fontconfig
This is my configure 

sudo ./configure --prefix=/opt/crosstool/ --host=arm-linux --with-freetype-config=/opt/crosstool/bin/freetype-config --with-confdir=/etc/fonts --enable-libxml2 --with-arch=arm LIBXML2_CFLAGS="-I/opt/crosstool/include/libxml2" LIBXML2_LIBS="-L/opt/crosstool/lib/"

Configure is ok. When i make it, i get this error

make[3]: Leaving directory `/home/jjon/Desktop/fontconfig-2.4.2/src'
make[2]: Leaving directory `/home/jjon/Desktop/fontconfig-2.4.2/src'
Making all in fc-cache
make[2]: Entering directory `/home/jjon/Desktop/fontconfig-2.4.2/fc-cache'
if arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/opt/crosstool/include/freetype2 -I/opt/crosstool/include -Wall -Wpointer-arith -Wstrict-prototypes     -Wmissing-prototypes -Wmissing-declarations     -Wnested-externs -fno-strict-aliasing    -g -O2 -MT fc-cache.o -MD -MP -MF ".deps/fc-cache.Tpo" -c -o fc-cache.o fc-cache.c; \
    then mv -f ".deps/fc-cache.Tpo" ".deps/fc-cache.Po"; else rm -f ".deps/fc-cache.Tpo"; exit 1; fi
/bin/bash ../libtool --tag=CC --mode=link arm-linux-gcc  -g -O2   -o fc-cache  fc-cache.o -L/opt/crosstool/lib -lfreetype -L/opt/crosstool/lib/  ../src/libfontconfig.la 
mkdir .libs
arm-linux-gcc -g -O2 -o .libs/fc-cache fc-cache.o  -L/opt/crosstool/lib /opt/crosstool/lib/libfreetype.so -L/opt/crosstool/lib/ ../src/.libs/libfontconfig.so -Wl,--rpath -Wl,/opt/crosstool/lib -Wl,--rpath -Wl,/opt/crosstool//lib
../src/.libs/libfontconfig.so: undefined reference to `xmlCreatePushParserCtxt'
../src/.libs/libfontconfig.so: undefined reference to `xmlSAX2GetLineNumber'
../src/.libs/libfontconfig.so: undefined reference to `xmlParseChunk'
../src/.libs/libfontconfig.so: undefined reference to `xmlCtxtGetLastError'
../src/.libs/libfontconfig.so: undefined reference to `xmlFreeParserCtxt'
collect2: ld returned 1 exit status
make[2]: *** [fc-cache] Error 1
make[2]: Leaving directory `/home/jjon/Desktop/fontconfig-2.4.2/fc-cache'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jjon/Desktop/fontconfig-2.4.2'
make: *** [all] Error 

I had made libxml2 in /opt/crosstool/ , is my setting error?

attach my Makefile

Please tell me how to solve this problem

Thank you
 		 	   		  
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20100310/fc5b9dc9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 32717 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20100310/fc5b9dc9/attachment-0001.obj>


More information about the Fontconfig mailing list