[Fontconfig] Cross compile fontconfig error

mpsuzuki at hiroshima-u.ac.jp mpsuzuki at hiroshima-u.ac.jp
Wed Mar 10 01:58:08 PST 2010

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.


More information about the Fontconfig mailing list