libtool

来自百合仙子's Wiki
跳转到导航 跳转到搜索

问题与解决办法

交叉编译时,libtool 使用了错误的库文件:

/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 

可临时地修改对应的 .la 文件(如 libfoo.la ,将其中的 libdir= 行指向需要的库文件。[1]

参考资料