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里面有这个动态库的。
加-static就可以了 arm-linux-gxxxx-gcc -o test hello.c -static
adb push test/data
cd /data& chmod 777 test
./test
页:
[1]