[ros-users] Cross-compilation and library locations

Daniel Maier maierd at informatik.uni-freiburg.de
Wed Apr 14 14:59:20 UTC 2010


sorry for the spam :/

just wanted to add that I can apr if I set --sysroot (to the
"root" path of the cross-compilation tools such that usr/include and
usr/lib are subdirectories). I appended it to LDFLAGS

However apr-util refuses to built because it cannot find libexpat.la
which is supposed to be built as well.
If I manually navigate to apr-util/xml/expat and run configure (similar
to the other calls,i.e. setting CC, CXX) and call make
it fails with this error message:
/bin/bash ../libtool --mode=link  /home/aishome/maierd/nao/ctc-academics-1.6.0/cross/geode/bin/i586-linux-gcc -version-info 1:0:1 -march=geode -L/home/aishome/maierd/nao/ctc-academics-1.6.0/staging/geode-linux/usr//lib --sysroot=/home/aishome/maierd/nao/ctc-academics-1.6.0/staging/geode-linux/usr//.. -o libexpat.la -rpath /home/aishome/maierd/nao/ros_nao_build/ros/../ros-deps/lib -L/home/aishome/maierd/nao/ctc-academics-1.6.0/staging/geode-linux/usr//lib --sysroot=/home/aishome/maierd/nao/ctc-academics-1.6.0/staging/geode-linux/usr//.. xmlparse.lo xmltok.lo xmlrole.lo
/home/aishome/maierd/nao/ctc-academics-1.6.0/cross/geode/bin/i586-linux-gcc -shared  .libs/xmlparse.o .libs/xmltok.o .libs/xmlrole.o  -L/home/aishome/maierd/nao/ctc-academics-1.6.0/staging/geode-linux/usr//lib  -march=geode -Wl,-soname -Wl,libexpat.so.0 -o .libs/libexpat.so.0.1.0
/home/aishome/maierd/nao/ctc-academics-1.6.0/cross/geode/bin/../lib/gcc/i586-linux/4.3.3/../../../../i586-linux/bin/ld: crti.o: No such file: No such file or directory

This is similar to my previous problem which I solved by appending
sysroot to LDFLAGS.




More information about the ros-users mailing list