-
Notifications
You must be signed in to change notification settings - Fork 8
Android toolchains
Kai Pastor edited this page Feb 8, 2019
·
2 revisions
Cf. https://developer.android.com/ndk/
Cf. https://github.com/android-ndk/ndk/wiki/Changelog-r19
- It is no longer necessary (i.e. possible) to create standalone toolchains. There are prefix variants of the compiler, e.g.
armv7a-linux-androideabi26-clang++
. - ndk-depends has been removed.
- The GCC wrapper scripts which redirected to Clang have been removed.
- This NDK has only clang and LLVM libc++.
- The NDK provides "unified" headers.
- For building third-party libraries, standalone toolchains can be created by a supplied script.
- Rebuilding LLVM libc++ is supported only when rebuilding the whole NDK, which requires downloading app. 23 GB of source code repositories.
However, it seems to be possible to isolate the relevant parts of the sources and the build process. - The NDK provides a CMake toolchain file.
Qt and Qt Creator are known to build well with NDK r10e.
- This NDK features gcc 4.9 which only partially supports C++14.
- Even some C++11 features are missing from the headers.
- For building third-party libraries, standalone toolchains can be created by a supplied script.
- GCC libstdc++ (aka gnustl) can be rebuilt using a supplied script if one provides the corresponding sources.