Cross compiling static C hello world for Android using arm-linux-gnueabi-gcc

前端 未结 6 728
盖世英雄少女心
盖世英雄少女心 2020-12-02 06:45

I want to build a static hello world from C using arm-linux-gnueabi-gcc as opposed to using the NDK standalone toolchain or Codesourcery for that matter.

In Ubuntu..

6条回答
  •  被撕碎了的回忆
    2020-12-02 07:21

    Your code actually works for me.

    I compiled it on Ubuntu and push it to /data/local/tmp

    And then chmod 777 hi

    Finally it works well.

提交回复
热议问题