[vlc-devel] [PATCH 2/2] Fetch android system headers from cyanogen on github and device libraries for linking

Martin Storsjö martin at martin.st
Thu Sep 29 11:05:24 CEST 2011

 install.sh |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/install.sh b/install.sh
index 4690bd7..d66677f 100644
--- a/install.sh
+++ b/install.sh
@@ -7,6 +7,25 @@ if [ -z "$ANDROID_NDK" -o -z "$ANDROID_SDK" ]; then
    exit 1;
+echo "Fetching Android system headers"
+# Using CyanogenMod headers instead of AOSP, since CyanogenMod
+# has commit 1563f4aca88d354c502dba056d173cefc7c2ea7f,
+# "Stagefright: Memcpy optimization on output port." (available
+# upstream at https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base.git;a=commit;h=052368f194c9fc180b9b0335b60114a2f1fb88d8),
+# which adds some vtable entries needed on newer qualcomm devices.
+$GIT clone --depth=1 git://github.com/CyanogenMod/android_frameworks_base.git android-headers/frameworks/base
+$GIT clone --depth=1 git://github.com/CyanogenMod/android_system_core.git android-headers/system/core
+export ANDROID_SYS_HEADERS=${PWD}/android-headers
+echo "Fetching Android libraries for linking"
+# Libraries from any froyo/gingerbread device/emulator should work
+# fine, since the symbols used should be available on most of them.
+wget http://download.cyanogenmod.com/get/update-cm-7.0.3-N1-signed.zip
+unzip update-cm-7.0.3-N1-signed.zip system/lib/*
+mv system/lib android-libs
+rmdir system
+export ANDROID_LIBS=${PWD}/android-libs
 echo "Cloning and updating VLC"
 $GIT clone git://git.videolan.org/vlc.git

More information about the vlc-devel mailing list