I have compiled my own libxml2 for armv6 architecture. I saw that it is possibile to compile fontconfig with a costum version of libxml2.
Now I am using this option:
export IOS_PLATFORMDIR="/Developer/Platforms/iPhoneOS.platform"
export IOS_SYSROOT="$IOS_PLATFORMDIR/Developer/SDKs/iPhoneOS5.0.sdk"
export IOS_GCC="$IOS_PLATFORMDIR/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2"
export IOS_CFLAGS="-march=armv6 -mcpu=arm1176jzf-s -mfpu=vfp"
./configure --host arm-apple-darwin10 --enable-libxml2 \
CC="$IOS_GCC" LD="$IOS_GCC" \
CFLAGS="-mfloat-abi=softfp -isysroot $IOS_SYSROOT -O3 $IOS_CFLAGS" \
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" \
CPPFLAGS="-I/Users/meox/PODOFO/libxml2/include -I/Users/meox/PODOFO/freetype2/include -I /Users/meox/PODOFO/zlib/include" \
LIBXML2_LIBS="/Users/meox/PODOFO/libxml2/libxml2.a"
But I get this error:
*** Warning: Linking the shared library libfontconfig.la against the
*** static library /Users/meox/PODOFO/libxml2/libxml2.a is not portable!
/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)
ar: internal ranlib command failed
make[3]: *** [libfontconfig.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
--
GL
http://www.meocci.it
_______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/fontconfig