Creating Android NDK Toolchain for x86 Android on Windows via Cygwin

The Android SDK includes the Android NDK, which in turn contains a customizable GCC toolchain for Android on ARM processors; The question is, how do I build the NDK toolchain for running on Windows for the target x86 Android?

The tool chain is already configured to create Windows-based (cygwin) ARM targeting; There are also existing pre-built (unofficial) NDKs for x86 targeting, but they contain ready-made tools for x86 Linux, not Windows.

NDK contains a build-toolchain.sh script to restore its tool chain; the question is what exactly needs to be done to build this in order to create a whole chain of tools for Android x86?

+4
source share
1 answer

As with NDK r6, the Google x86 server supports itself.

Adds support for x86 ABI, which allows you to generate machine code that runs on compatible x86-based devices. Key features for x86 include x86-specific toolchains, system headers, libraries, and debugging support. For more information about x86 support, see Docs / CPU-X86.html in the NDK.

NDK Release Notes

+2
source

Source: https://habr.com/ru/post/1308865/


All Articles