You need NDKr9 or later

I tried to build android-vlc and ijkPlayer using Git, and after following the steps and generating the required sdk and ndk export data for each, it leads me to the same error message via Git - Bash which is:

You need NDKr9 or later

      

I have NDKr9b and NDKr10d and I got this error message with both of them and looking at the android-vlc sdk source code I found that it just checks the /RELEASE.TXT file in the specified ndk path:

# try to detect NDK version
REL=$(grep -o '^r[0-9]*.*' $ANDROID_NDK/RELEASE.TXT 2>/dev/null|cut -b2-)
case "$REL" in
    9*|10*)
        GCCVER=4.8
        CXXSTL="/"${GCCVER}
    ;;
    7|8|*)
        echo "You need the NDKv9 or later"
        exit 1
    ;;
esac

      

and while checking it myself for NDK10 I found that it only contains one line:

r10d (64-bit)

and in NDK9 it is:

R9b

which should make the code run smoothly in both cases, so what am I missing here?

ps I came across this question which gives the same problem, but the answer doesn't work for me.

+3


source to share





All Articles