[Android] compile-libvlc: force NDK14
Thomas Guillem
git at videolan.org
Fri Nov 10 13:14:13 CET 2017
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Nov 10 13:10:41 2017 +0100| [0315a5b9e0c591b7d162a6153c75d978a91ec60d] | committer: Thomas Guillem
compile-libvlc: force NDK14
cf. comment
> https://code.videolan.org/videolan/vlc-android/commit/0315a5b9e0c591b7d162a6153c75d978a91ec60d
---
compile-libvlc.sh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index 344bc3cb9..6a268a4d1 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -282,14 +282,17 @@ VLC_CONTRIB="$VLC_SRC_DIR/contrib/$TARGET_TUPLE"
# try to detect NDK version
REL=$(grep -o '^Pkg.Revision.*[0-9]*.*' $ANDROID_NDK/source.properties |cut -d " " -f 3 | cut -d "." -f 1)
-if [ "$REL" -ge 14 ]; then
+# NDK 15 and after drops support for old android platforms (bellow
+# ANDROID_API=14) but these platforms are still supported by VLC 3.0.
+# TODO: Switch to NDK 15 when we drop support for old android plaftorms (for VLC 4.0)
+if [ "$REL" -eq 14 ]; then
if [ "${HAVE_64}" = 1 ];then
ANDROID_API=21
else
ANDROID_API=9
fi
else
- echo "You need the NDKv14 or later"
+ echo "NDK v14 needed, cf. https://developer.android.com/ndk/downloads/older_releases.html#ndk-14-downloads"
exit 1
fi
More information about the Android
mailing list