xiaolonghun1 发表于 2015-8-5 15:34:41

a20 cubie android 打印HelloWorld交叉编译报错

本帖最后由 xiaolonghun1 于 2015-8-5 15:39 编辑

用交叉编译工具编译了一个android 应用,出现了
/system/bin/sh Not such file or directory !
在ubuntu 下面,通过readelf命令,显示如下缺少/lib/ld-linux.so.3]这个动态库的信息,我查找了

我查看了,他lib里面有这个动态库的。

xiaolonghun1 发表于 2015-8-5 15:59:20

加-static就可以了

jiangdou 发表于 2015-8-5 19:08:15

arm-linux-gxxxx-gcc   -o test hello.c    -static

adb push test/data

cd /data& chmod 777 test

./test
页: [1]
查看完整版本: a20 cubie android 打印HelloWorld交叉编译报错