moritz-wundke / Boost-for-Android

Android port of Boost C++ Libraries
995 stars 479 forks source link

"Undefined or not supported Android NDK version: 23.2" on GitHub Actions #241

Open johnwason opened 2 years ago

johnwason commented 2 years ago

GitHub actions has update the Android NDK version to 23.2. With the following command:

./build-android.sh $ANDROID_NDK_HOME --arch=x86_64 --with-libraries=date_time,filesystem,system,regex,chrono,atomic,thread,random,program_options --boost=1.74.0

I am getting the error:

Building boost version: 1.74.0
Detected Android NDK version 23.2
Undefined or not supported Android NDK version: 23.2
leoqchen commented 2 years ago

I meet the same issue. A simple workaround is temporarily modify the build-android.sh

modify it from

   "23.0"|"23.1")
    TOOLCHAIN=${TOOLCHAIN:-llvm}
    CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/clang++
    TOOLSET=clang
    CONFIG_VARIANT=ndk23
    ;;

to

   "23.0"|"23.1"|"23.2")
    TOOLCHAIN=${TOOLCHAIN:-llvm}
    CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/clang++
    TOOLSET=clang
    CONFIG_VARIANT=ndk23
    ;;
moritz-wundke commented 1 year ago

@leoqchen you could create a PR if you like, it seams it's just adding "23.2"