且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 arm-linux-gnueabi-gcc 为 Android 交叉编译静态 C hello world

更新时间:2022-05-23 06:22:35

如果我在 Debian 机器(在我的情况下为 VM)上执行此操作,一切似乎都很好.我不确定在 ubuntu 上做类似的事情有什么问题.可能就像 Leo 建议的那样,但我无法确认.不过这应该对你有用.

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/