tslib :交叉编译测试脚本

发布于 2024-12-20 06:25:10 字数 1094 浏览 2 评论 0原文

我正在尝试将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

赠佳期 2024-12-27 06:25:10

抱歉浪费时间,我在发帖后就找到了答案>< 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. ;)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文