[Android] compile-libvlc: force NDK14
Thomas Guillem
git at videolan.org
Mon Nov 13 15:04:05 CET 2017
vlc-android | branch: 2.5.x | Thomas Guillem <thomas at gllm.fr> | Fri Nov 10 13:10:41 2017 +0100| [2b16e8f258c504a07bd6613ab7ce034be572b3a9] | committer: Geoffrey Métais
compile-libvlc: force NDK14
cf. comment
(cherry picked from commit 0315a5b9e0c591b7d162a6153c75d978a91ec60d)
> https://code.videolan.org/videolan/vlc-android/commit/2b16e8f258c504a07bd6613ab7ce034be572b3a9
---
compile-libvlc.sh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index 32a6f5009..cb63f9d2d 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -281,14 +281,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