

#Android ndk stl support for android#
So, rather than trying to refine the toolchain myself, I thought that using the default file provided by Android NDK r15c included with CodeWorks for Android 1R7 would do the trick for me. I’m getting no error, but it’s as if the variables aren’t taken into account. Set(ANDROID_CPP_FEATURES “rtti exceptions”)Ībsolutely no effect (yes, I clean up CMake cache between each CMake run). Now, I’m trying to customize the toolchain, Android API, STL library or RTTI/exceptions support by defining the following variables in CMakeLists.txt: – Build files have been written to: C:/Users/ema/Documents/Visual Studio 2017/Projects/CMakeAndroidTest/build

– Check for working CXX compiler: C:/NVPACK/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++.exe – works – Check for working CXX compiler: C:/NVPACK/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++.exe – Check for working C compiler: C:/NVPACK/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc.exe – works

– Check for working C compiler: C:/NVPACK/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc.exe – The CXX compiler identification is GNU 4.9.0 – The C compiler identification is GNU 4.9.0 If I run CMake from the command-line using the above build environment, I’m getting VS projects/solution files tailored for gcc 4.9, targeting Android 9 API, using gnustl_static STL, without support for RTTI nor exceptions:Ĭ:\Users\ema\Documents\Visual Studio 2017\Projects\CMakeAndroidTest\build>cmake … -G “Visual Studio 15 2017” -DCMAKE_SYSTEM_NAME=Android I’m running latest CodeWorks for Android 1R7.Īdd_executable(cmake-android-test main.cpp) IDE is Visual Studio 2017 Community, version 15.7.3.
