通过Cygwin在Windows上为x86 Android构建Android NDK工具链

Android SDK包含
Android NDK,后者又包含一个基于GCC的定制工具链,适用于ARM处理器上的Android;问题是如何构建NDK工具链以在Windows上运行以定​​位x86 Android?

该工具链已经设置为构建在针对ARM的Windows(cygwin)上;
还有用于定位x86的pre-built (unofficial) NDKs,但这些包含用于x86 Linux的预构建工具,而不是Windows.

NDK包含一个build-toolchain.sh脚本来重建其工具链;问题是,为了建立一个针对Android x86的工具链,需要做些什么?

最佳答案 截至NDK r6,谷歌自己提供x86支持.

Adds support for the x86 ABI, which allows you to generate machine code that runs on compatible x86-based Android devices. Major features for x86 include x86-specific toolchains, system headers, libraries and debugging support. For all of the details regarding x86 support, see docs/CPU-X86.html in the NDK package.

NDK Release Notes

点赞