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

前端 未结 6 729
盖世英雄少女心
盖世英雄少女心 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

    If I do this on a Debian machine (VM in my case), all seems well. I am not sure what when wrong with doing similar on ubuntu. It could be as Leo suggested, but I cannot confirm. This should work for you though.

    http://www.cnx-software.com/2012/01/16/installing-emdebian-arm-cross-toolchain-in-debian/

    Someone added this link, but it is not using the toolchain I mentioned in the description. Leaving it in case anyone is interested.

    http://tariqzubairy.wordpress.com/2012/03/09/arm-binaries-static-library-for-android/

提交回复
热议问题