【发布时间】:2014-06-11 11:17:58
【问题描述】:
我有一个用 C 编写的 hello world 程序,我正在使用它来编译它
arm-linux-androideabi-gcc hello.c -o hello
并通过使用 adb 将其推送到 android 设备来运行它
adb push hello /system
adb shell chmod 777 /system/hello
之后我尝试在 adb shell 中运行 hello 二进制文件,但它显示
./hello
/system/bin/sh: ./hello: No such file or directory
谁能帮帮我?
Hello World 程序
#include <stdio.h>
int main()
{
printf("HELLO WORLD\n");
return 0;
}
【问题讨论】:
-
你好像不在正确的目录
-
你的设备植根了吗
-
@Manül:我在正确的路径中也尝试过使用绝对路径