From: http://orzlab.blogspot.com/2007/05/cross-compilelibtool.html
/bin/sh libtool --mode=link target-gcc -c -O2 -o libbar.so ... -lfoo
target-gcc -c -O2 -o libbar.so ... /usr/lib/libfoo.so
/usr/lib/libfoo.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
In cross-compilation, the link should point to target installation path, not local host path.
Solution:
1. Edit libfoo.la.
2. Modify libdir='/usr/lib' to target lib installation path. Such as "/export/arm_toolchain/usr/lib".
0 意見:
張貼留言