Leon Ljunggren
2008-Aug-22 10:19 UTC
[Fontconfig] Cross Compiling Fontconfig 2.6.0 for Arm
Hi, I''m having trouble cross compiling fontconfig 2.6.0 for my arm platform. The configurations script seems to run ok but when I try make it complains of being unable to find libexpat.so.1 and libfreetype.so.6 and gives a lot of undefined reference errors (see below for more complete error list). I''m using this for configure: leon at leondeb:~/xs/fontconfig-2.6.0/build$ ../configure --host=armv5b-softfloat-linux --prefix=/home/leon/xs/fontconfig-2.6.0/stage --with-arch=arm --with-freetype-config=/home/leon/xs/freetype-2.3.5/stage/bin/freetype-config "CFLAGS=-O2 -pipe -isystem /home/leon/xs/expat-2.0.1/stage/include/ -I/home/leon/xs/freetype-2.3.5/stage/include/ -L/home/leon/xs/expat-2.0.1/stage/lib/ -L/home/leon/xs/freetype-2.3.5/stage/lib/" I''ve successfully cross compiled expat and freetype and the libs needed can be found in the paths I''ve given. Any pointers to what I''m doing wrong would be greatly appreciated, I''ve tried search on the subject and all I''ve found is a post made to this list that went unanswered. Thanks in advance /Leon Ljunggren Making all in fc-cache make[2]: Entering directory `/home/leon/xs/fontconfig-2.6.0/build/fc-cache'' if armv5b-softfloat-linux-gcc -DHAVE_CONFIG_H -I. -I../../fc-cache -I.. -I../.. -I../../src -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -pipe -isystem /home/leon/xs/expat-2.0.1/stage/include/ -I/home/leon/xs/freetype-2.3.5/stage/include/ -L/home/leon/xs/expat-2.0.1/stage/lib/ -L/home/leon/xs/freetype-2.3.5/stage/lib/ -MT fc-cache.o -MD -MP -MF ".deps/fc-cache.Tpo" -c -o fc-cache.o ../../fc-cache/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/sh ../libtool --tag=CC --mode=link armv5b-softfloat-linux-gcc -O2 -pipe -isystem /home/leon/xs/expat-2.0.1/stage/include/ -I/home/leon/xs/freetype-2.3.5/stage/include/ -L/home/leon/xs/expat-2.0.1/stage/lib/ -L/home/leon/xs/freetype-2.3.5/stage/lib/ -o fc-cache fc-cache.o ../src/libfontconfig.la armv5b-softfloat-linux-gcc -O2 -pipe -isystem /home/leon/xs/expat-2.0.1/stage/include/ -I/home/leon/xs/freetype-2.3.5/stage/include/ -o .libs/fc-cache fc-cache.o -L/home/leon/xs/expat-2.0.1/stage/lib/ -L/home/leon/xs/freetype-2.3.5/stage/lib/ ../src/.libs/libfontconfig.so -Wl,--rpath -Wl,/home/leon/xs/fontconfig-2.6.0/stage/lib /opt/crosstool/gcc-3.4.5-glibc-2.3.6/armv5b-softfloat-linux/lib/gcc/armv5b-softfloat-linux/3.4.5/../../../../armv5b-softfloat-linux/bin/ld: warning: libfreetype.so.6, needed by ../src/.libs/libfontconfig.so, not found (try using -rpath or -rpath-link) /opt/crosstool/gcc-3.4.5-glibc-2.3.6/armv5b-softfloat-linux/lib/gcc/armv5b-softfloat-linux/3.4.5/../../../../armv5b-softfloat-linux/bin/ld: warning: libexpat.so.1, needed by ../src/.libs/libfontconfig.so, not found (try using -rpath or -rpath-link) ../src/.libs/libfontconfig.so: undefined reference to `FT_Load_Sfnt_Table'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Select_Charmap'' ../src/.libs/libfontconfig.so: undefined reference to `XML_ParserCreate'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Load_Glyph'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_Sfnt_Table'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_PS_Font_Info'' ../src/.libs/libfontconfig.so: undefined reference to `XML_GetErrorCode'' ../src/.libs/libfontconfig.so: undefined reference to `XML_SetUserData'' ../src/.libs/libfontconfig.so: undefined reference to `XML_SetDoctypeDeclHandler'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Done_FreeType'' ../src/.libs/libfontconfig.so: undefined reference to `XML_ParseBuffer'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_X11_Font_Format'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_First_Char'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Init_FreeType'' ../src/.libs/libfontconfig.so: undefined reference to `XML_GetCurrentLineNumber''../src/.libs/libfontconfig.so: undefined reference to `FT_Select_Size'' ../src/.libs/libfontconfig.so: undefined reference to `XML_ErrorString'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_Sfnt_Name'' ../src/.libs/libfontconfig.so: undefined reference to `FT_New_Face'' ../src/.libs/libfontconfig.so: undefined reference to `XML_ParserFree'' ../src/.libs/libfontconfig.so: undefined reference to `XML_SetElementHandler'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_Char_Index'' ../src/.libs/libfontconfig.so: undefined reference to `XML_GetBuffer'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_Glyph_Name'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Done_Face'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_BDF_Property'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_Next_Char'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Has_PS_Glyph_Names'' ../src/.libs/libfontconfig.so: undefined reference to `XML_SetCharacterDataHandler'' ../src/.libs/libfontconfig.so: undefined reference to `FT_Get_Sfnt_Name_Count'' collect2: ld returned 1 exit status make[2]: *** [fc-cache] Error 1 make[2]: Leaving directory `/home/leon/xs/fontconfig-2.6.0/build/fc-cache'' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/leon/xs/fontconfig-2.6.0/build'' make: *** [all] Error 2