阅读背景:

想要编译本机Android二进制文件我可以在手机终端上运行

来源:互联网 

I've been trying for a couple days to compile a native ARM Android binary that will execute on my phone using a terminal application. I want to generate the same type of binary as the standard Posix binaries installed on the phone like ls, mkdir etc. I've downloaded the Android NDK under Mac OS X and have been able to compile simple ELF binaries without errors. However, when I transfer them to the phone, they always segfault. That is, they segfault when compiled with -static in GCC. If I don't use -static, they complain about not being linked, etc. Put simply, they don't work.I've been trying for a couple days to compile a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: