我想在Android上运行一个"hello world"程序.
它是用C语言编写的,我尝试了不同的交叉编译器.
arm-elf-gcc:当我用adb在手机上输入"./hello"时,我得到了"分段错误".但是,arm-elf-gdb正常运行hello程序,没有分段错误.
arm-linux-gcc:当我在手机上键入"./hello"时,我收到"非法指令"
关于如何在手机上运行程序的任何想法?
本教程似乎很好地解释了如何为Android构建和调试本机C应用程序:http: //betelco.blogspot.com/2010/01/buildingdebugging-android-native-c.html
| 归档时间: |
|
| 查看次数: |
5563 次 |
| 最近记录: |