|
想編個在 android console可以單獨執行的測試程式 hello
发表于 2016-5-11 14:42:29
浏览:16372
|
回复:12
打印
只看该作者
[复制链接]
楼主
本帖最后由 woody.lee 于 2016-5-13 13:54 编辑
根據網路上查的資料下去編
arm-eabi-gcc -g -o hello hello.c \
-Wl,-rpath-link=/home/user123/Project/ROCKCHIP/RK3288/output/android/target/product/rk3288_box/obj/lib,-dynamic-linker=/home/user123/Project/ROCKCHIP/RK3288/output/android/target/product/rk3288_box/system/bin/linker -I/home/user123/Project/ROCKCHIP/RK3288/android/prebuilts/ndk/9/platforms/android-4/arch-arm/usr/include/ \
-L/home/user123/Project/ROCKCHIP/RK3288/output/android/target/product/rk3288_box/obj/lib -nostdlib \
/home/user123/Project/ROCKCHIP/RK3288/output/android/target/product/rk3288_box/obj/lib/crtbegin_dynamic.o -lc
編出來了 用 file 看一下
hello: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), not stripped
用usb 拷貝到 rk3288上去跑,
執行後顯示
sh: ./hello: No such file or directory
請教大神, 應該怎麼弄呀??
|
|