我正在尝试将tslib嵌入到一个ARM系统上;我交叉编译了这个库,除非是测试脚本,否则看起来没问题。实际上,它们在我的arm平台上根本不起作用,因为它们试图将库与编译平台上的路径链接起来。
以下是我的示例:我从/home/jdl/tslib编译;arm系统上的bug:
/home/ts_calibrate: cd: line 1: can't cd to /home/jdl/tslib-1.0/tests
/home/ts_calibrate: eval: line 1: /usr/local/lib/star81xx-lsdk/tools/usr/bin/arm-linux-uclibc-gcc: not found第二行是我的工具链;不明白为什么脚本要查找工具链,因为它应该被编译?
我看到在编译过程中有一些相对的链接:
/bin/sh ../libtool --tag=CC --mode=link /usr/local/lib/star81xx-lsdk/tools/usr/bin/arm-linux-uclibc-gcc -DGCC_HASCLASSVISIBILITY --sysroot=/usr/local/lib/star81xx-lsdk/tools --sysroot=/usr/local/lib/star81xx-lsdk/tools -o ts_harvest ts_harvest.o fbutils.o testutils.o font_8x8.o font_8x16.o ../src/libts.la -ldl
libtool: link: /usr/local/lib/star81xx-lsdk/tools/usr/bin/arm-linux-uclibc-gcc -DGCC_HASCLASSVISIBILITY --sysroot=/usr/local/lib/star81xx-lsdk/tools --sysroot=/usr/local/lib/star81xx-lsdk/tools -o .libs/ts_harvest ts_harvest.o fbutils.o testutils.o font_8x8.o font_8x16.o ../src/.libs/libts.so -ldl你知道哪里出了问题吗?
谢谢
发布于 2011-12-07 21:40:03
很抱歉浪费你的时间,我在发布><后找到了我的答案。测试目录中有一个.libs目录,里面包含了测试软件的好版本。;)
https://stackoverflow.com/questions/8416184
复制相似问题