From: Jim H. <jh...@iu...> - 2004-02-26 20:06:39
|
I'm currently trying to cross compile libxml++-0.27.0 to work on my iPaq PDA running the Familiar Linux distribution (for a project at school). I've gone ahead and changed all of the CC, CCX, lines to point to the specific versions of gcc and g++ for the arm architecture, but I keep getting errors when the build process tries to link. Example output: make Making all in parsers make[1]: Entering directory `/home/jhodapp/Projects/libxml++-0.27.0/libxml++/parsers' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/jhodapp/Projects/libxml++-0.27.0/libxml++/parsers' Making all in exceptions make[1]: Entering directory `/home/jhodapp/Projects/libxml++-0.27.0/libxml++/exceptions' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/jhodapp/Projects/libxml++-0.27.0/libxml++/exceptions' Making all in nodes make[1]: Entering directory `/home/jhodapp/Projects/libxml++-0.27.0/libxml++/nodes' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/jhodapp/Projects/libxml++-0.27.0/libxml++/nodes' Making all in io make[1]: Entering directory `/home/jhodapp/Projects/libxml++-0.27.0/libxml++/io'make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/jhodapp/Projects/libxml++-0.27.0/libxml++/io' make[1]: Entering directory `/home/jhodapp/Projects/libxml++-0.27.0/libxml++' /bin/sh ../libtool --mode=link /usr/local/arm/3.3.2/arm-linux/bin/g++ -g -O2 -o libxml++-0.1.la -rpath /usr/local/lib -version-info 13:0:0 attribute.lo dtd.lo document.lo noncopyable.lo keepblanks.lo -L/usr/lib -lxml2 -lz -lpthread -lm parsers/libparsers.la exceptions/libexceptions.la nodes/libnodes.la io/libio.la rm -fr .libs/libxml++-0.1.la .libs/libxml++-0.1.* .libs/libxml++-0.1.* gcc -shared attribute.lo dtd.lo document.lo noncopyable.lo keepblanks.lo -Wl,--whole-archive parsers/.libs/libparsers.al exceptions/.libs/libexceptions.al nodes/.libs/libnodes.al -Wl,--no-whole-archive -Wl,--rpath -Wl,/home/jhodapp/Projects/libxml++-0.27.0/libxml++/io/.libs -Wl,--rpath -Wl,/usr/local/lib -L/usr/lib /usr/lib/libxml2.so -lz -lpthread -lm io/.libs/libio.so -Wl,-soname -Wl,libxml++-0.1.so.13 -o .libs/libxml++-0.1.so.13.0.0 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: attribute.lo: Relocations in generic ELF (EM: 40) attribute.lo: could not read symbols: File in wrong format collect2: ld returned 1 exit status make[1]: *** [libxml++-0.1.la] Error 1 make[1]: Leaving directory `/home/jhodapp/Projects/libxml++-0.27.0/libxml++' make: *** [all-recursive] Error 1 I can't seem to get past this stage. Anyone have any thoughts on this? This app is an absolute must for my project so any thoughts would be greatly appreciated. Thanks, Jim Hodapp -- Full-time student of Electrical Engineering Purdue School of Engineering @ Indiana University Purdue University Indianapolis |
From: Christophe de V. <cde...@al...> - 2004-02-27 08:58:59
|
Hi, I'm not (yet) a specialist of cross-compile, but it seems that the link=20 is done using your system ld instead of the arm one. You may need to=20 install the binutils for your target platform. A look at configure=20 output may help understanding what's wrong. Anyway I don't think it's a libxml++ problem. Also, you should use libxml++ 1.0.2, not 0.27. Cheers, Christophe Jim Hodapp a =E9crit : >I'm currently trying to cross compile libxml++-0.27.0 to work on my >iPaq PDA running the Familiar Linux distribution (for a project at >school). I've gone ahead and changed all of the CC, CCX, lines to point >to the specific versions of gcc and g++ for the arm architecture, but I >keep getting errors when the build process tries to link. Example >output: >=20 >make >Making all in parsers >make[1]: Entering directory >`/home/jhodapp/Projects/libxml++-0.27.0/libxml++/parsers' >make[1]: Nothing to be done for `all'. >make[1]: Leaving directory >`/home/jhodapp/Projects/libxml++-0.27.0/libxml++/parsers' >Making all in exceptions >make[1]: Entering directory >`/home/jhodapp/Projects/libxml++-0.27.0/libxml++/exceptions' >make[1]: Nothing to be done for `all'. >make[1]: Leaving directory >`/home/jhodapp/Projects/libxml++-0.27.0/libxml++/exceptions' >Making all in nodes >make[1]: Entering directory >`/home/jhodapp/Projects/libxml++-0.27.0/libxml++/nodes' >make[1]: Nothing to be done for `all'. >make[1]: Leaving directory >`/home/jhodapp/Projects/libxml++-0.27.0/libxml++/nodes' >Making all in io >make[1]: Entering directory >`/home/jhodapp/Projects/libxml++-0.27.0/libxml++/io'make[1]: Nothing to >be done for `all'. >make[1]: Leaving directory >`/home/jhodapp/Projects/libxml++-0.27.0/libxml++/io' >make[1]: Entering directory >`/home/jhodapp/Projects/libxml++-0.27.0/libxml++' >/bin/sh ../libtool --mode=3Dlink /usr/local/arm/3.3.2/arm-linux/bin/g++=20 >-g -O2 -o libxml++-0.1.la -rpath /usr/local/lib -version-info 13:0:0 >attribute.lo dtd.lo document.lo noncopyable.lo keepblanks.lo =20 >-L/usr/lib -lxml2 -lz -lpthread -lm parsers/libparsers.la >exceptions/libexceptions.la nodes/libnodes.la io/libio.la >rm -fr .libs/libxml++-0.1.la .libs/libxml++-0.1.* .libs/libxml++-0.1.* >gcc -shared attribute.lo dtd.lo document.lo noncopyable.lo >keepblanks.lo -Wl,--whole-archive parsers/.libs/libparsers.al >exceptions/.libs/libexceptions.al nodes/.libs/libnodes.al >-Wl,--no-whole-archive -Wl,--rpath >-Wl,/home/jhodapp/Projects/libxml++-0.27.0/libxml++/io/.libs -Wl,--rpath >-Wl,/usr/local/lib -L/usr/lib /usr/lib/libxml2.so -lz -lpthread -lm >io/.libs/libio.so -Wl,-soname -Wl,libxml++-0.1.so.13 -o >.libs/libxml++-0.1.so.13.0.0 > >/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/b= in/ld: attribute.lo: Relocations in generic ELF (EM: 40) >attribute.lo: could not read symbols: File in wrong format >collect2: ld returned 1 exit status >make[1]: *** [libxml++-0.1.la] Error 1 >make[1]: Leaving directory >`/home/jhodapp/Projects/libxml++-0.27.0/libxml++' >make: *** [all-recursive] Error 1 >=20 >I can't seem to get past this stage. Anyone have any thoughts on this?=20 >This app is an absolute must for my project so any thoughts would be >greatly appreciated. >=20 >Thanks, >=20 >Jim Hodapp > =20 > |