Hi,<br><br>I have compiled my own libxml2 for armv6 architecture. I saw that it is possibile to compile fontconfig with a costum version of libxml2.<br>Now I am using this option:<br><br>export IOS_PLATFORMDIR="/Developer/Platforms/iPhoneOS.platform"<br>
export IOS_SYSROOT="$IOS_PLATFORMDIR/Developer/SDKs/iPhoneOS5.0.sdk"<br>export IOS_GCC="$IOS_PLATFORMDIR/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2"<br>export IOS_CFLAGS="-march=armv6 -mcpu=arm1176jzf-s -mfpu=vfp"<br>
<br>./configure --host arm-apple-darwin10 <b>--enable-libxml2</b> \<br> CC="$IOS_GCC" LD="$IOS_GCC" \<br> CFLAGS="-mfloat-abi=softfp -isysroot $IOS_SYSROOT -O3 $IOS_CFLAGS" \<br> LDFLAGS="-mfloat-abi=softfp -isysroot $IOS_SYSROOT $IOS_CFLAGS -L/Users/meox/PODOFO/libxml2 -L/Users/meox/PODOFO/freetype2 -L/Users/meox/PODOFO/zlib -L/Users/meox/PODOFO/libiconv -L/Users/meox/PODOFO/bzip2" \<br>
CPPFLAGS="-I/Users/meox/PODOFO/libxml2/include -I/Users/meox/PODOFO/freetype2/include -I /Users/meox/PODOFO/zlib/include" \<br> <b>LIBXML2_LIBS="/Users/meox/PODOFO/libxml2/libxml2.a"</b><br><br>
<br>But I get this error:<br><br>*** Warning: Linking the shared library <a href="http://libfontconfig.la">libfontconfig.la</a> against the<br>*** static library /Users/meox/PODOFO/libxml2/libxml2.a is not portable!<br>/usr/bin/ranlib: archive member: .libs/libfontconfig.a(libxml2.a) fat file for cputype (16777223) cpusubtype (3) is not an object file (bad magic number)<br>
ar: internal ranlib command failed<br>make[3]: *** [<a href="http://libfontconfig.la">libfontconfig.la</a>] Error 1<br>make[2]: *** [all] Error 2<br>make[1]: *** [all-recursive] Error 1<br>make: *** [all] Error 2<br><br><br>
-- <br>GL<br><a href="http://www.meocci.it">http://www.meocci.it</a><br>