Ticket #1950 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

Failure in configure-android when specifying --use-ndk-cflags with Android NDK r11 or later

Reported by: ming Owned by: bennylp
Priority: normal Milestone: release-2.6
Component: common Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

Starting from r11, Android NDK has removed the sample folder and changed the toolchain version, hence the configure-android with "--use-ndk-cflags" will fail with this error:

samples/hello-jni: No such file or directory.  Stop.
configure-android error: failed to run ndk-build, check ANDROID_NDK_ROOT env var

Change History

comment:1 Changed 10 months ago by ming

  • Status changed from new to closed
  • Resolution set to fixed

In 5409:

Fixed #1950: Failure in configure-android when specifying --use-ndk-cflags with Android NDK r11 or later

  • Create our own dummy (empty) Android sample app
  • Unspecify the toolchain version and use default instead

comment:2 Changed 10 months ago by riza

In 5413:

Re #1950: Check for ndk-build on configure-android.

Note: See TracTickets for help on using tickets.