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>
mpsuzuki at hiroshima-u.ac.jp
2010-Mar-10 09:58 UTC
[Fontconfig] Cross compile fontconfig error
On Wed, 10 Mar 2010 08:11:56 +0000 ON JJ <jjon1985 at hotmail.com> wrote:>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/">I had made libxml2 in /opt/crosstool/ , is my setting error?I think so (your setting error). Specification of the library directory by LIBXML2_LIBS is NOT sufficient. It should specify library directory, flag to link libxml2 (-lxml2) and dependent libraries that libxml2 requires. Please check the output of "xml2-config --libs" (in your case, /opt/crosstool/bin/xml2-config?) # If you set PKG_CONFIG_PATH appropriately, pkg-config will # search libxml2 automatically and set LIBXML2_{CFLAGS,LIBS} # appropriately, I hope. Regards, mpsuzuki