| 366 | === Error configure-android with "--use-ndk-cflags" using android-ndk-r11b === #errndkr11b |
| 367 | |
| 368 | Android-ndk-r11b has removed the sample folder and changed the toolchain version, hence the configure-android with "--use-ndk-cflags" will fail with this error: |
| 369 | {{{ |
| 370 | configure-android error: failed to run ndk-build, check ANDROID_NDK_ROOT env var |
| 371 | }}} |
| 372 | As a workaround, you can copy the sample folder from older ndk and modify the configure-android script to use toolchain version 4.9: |
| 373 | {{{ |
| 374 | NDK_OUT=`${ANDROID_NDK_ROOT}/ndk-build -n -C ${ANDROID_NDK_ROOT}/samples/hello-jni NDK_TOOLCHAIN_VERSION=4.9 APP_PLATFORM=${APP_PLATFORM} APP_ABI=${TARGET_ABI}` |
| 375 | }}} |
| 376 | |