taka-no-me / android-cmake

CMake toolchain file and other scripts for the Android NDK
1.22k stars 437 forks source link

NDK r10b isn't supported #25

Closed apavlenko closed 9 years ago

apavlenko commented 9 years ago

Probably the toolchain script confuses finding 'android-L' platform.

dinhvh commented 9 years ago

I've been hit by this issue as well.

Here's the result of the command line:

$ export ANDROID_NDK=$HOME/Android/android-ndk-r10c
$ cmake -DCMAKE_TOOLCHAIN_FILE=$ANDTOOLCHAIN .. 2>&1 | more
CMake Error at build-android/android.toolchain.cmake:829 (list):
  list index: 17 out of range (-17, 16)
Call Stack (most recent call first):
  build2/CMakeFiles/2.8.11.2/CMakeSystem.cmake:1 (include)
  CMakeLists.txt:2 (project)
taka-no-me commented 9 years ago

Support for NDK r10+ is pushed to master. Building for "android-L" platform is possible if ANDROID_NATIVE_API_LEVEL it is explicitly set to "android-L"