358 | | === Error configure-android with "--use-ndk-cflags" using android-ndk-r11b === #errndkr11b |
359 | | |
360 | | 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: |
361 | | {{{ |
362 | | configure-android error: failed to run ndk-build, check ANDROID_NDK_ROOT env var |
363 | | }}} |
364 | | As a workaround, you can copy the sample folder from older ndk and modify the configure-android script to use toolchain version 4.9: |
365 | | {{{ |
366 | | 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}` |
367 | | }}} |
368 | | |