【问题标题】:tslib : cross-compiling test scriptstslib : 交叉编译测试脚本
【发布时间】:2011-12-07 13:36:57
【问题描述】:

我正在尝试将 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

你知道哪里出了问题吗?

谢谢

【问题讨论】:

    标签: arm cross-compiling


    【解决方案1】:

    抱歉浪费时间,我在发布后找到了答案>tests 目录中有一个 .libs 目录,其中包含测试的好版本软体。 ;)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多