tslib :交叉编译测试脚本
我正在尝试将 tslib 嵌入到 ARM 系统上;我交叉编译了该库,除非用于测试脚本,否则似乎没问题。事实上,它们在我的arm平台上根本不起作用,因为它们试图将库与编译平台的路径链接起来。
这是我的示例:我从 /home/jdl/tslib 编译;手臂系统上的错误:
/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
你知道出了什么问题吗?
谢谢
I am trying to embed tslib on an ARM system ; I cross-compiled the library, and it seemed to be okay unless for the test scripts. Indeed, they don't work at all on my arm platform because they tryed to link libraries with the path from the compiling platform.
Here is my example : I compiled from /home/jdl/tslib ; the bug on the arm system :
/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
Second line is my toolchain ; don't understand why the script is looking for the toolchain as it is supposed to be compiled ?
I saw that there is some relative link during compilation :
/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
Do you have an idea for what goes wrong ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
抱歉浪费时间,我在发帖后就找到了答案>< tests 目录中有一个 .libs 目录,其中包含测试软件的良好版本。 ;)
Sorry for the waste of time, I found my answer just after posting >< There is a .libs dir into the tests dir that contains the good versions of test softs. ;)