编译过程,参考wiki
http://wiki.videolan.org/AndroidCompile
一 下载代码
git clone git://git.videolan.org/vlc-ports/android.git
二 下载NDK
android-ndk-r7b
三 下载SDK
我安装了eclipse的,里面有SDK,所以不用下载了
四 检测工具链
sudo apt-get install ant autoconf automake autopoint libtool gawk gcc g++ pkg-config cmake patch subversion
五 编译
1 环境变量设置
export ANDROID_SDK=/home/hdhuang/Android/eclipse/sdk
export ANDROID_NDK=/home/hdhuang/Android/android-ndk-r7b
#export NO_NDK_V7=1
export PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools
export NO_NEON=1
2 设置设备SDK
configure.sh: 'ANDROID_API=android-14' Application.mk: 'APP_PLATFORM := android-14'我先在android-9平台编译,所以就不修改了!3 编译sh compile.sh六 编译过程分析1 compile.shA 获取Vlc代码git clone git://git.videolan.org/vlc.git vlcB checkout android 代码git checkout -B android ${TESTED_HASH}C 获取补丁git am ../patches/*.patch2 编译外部库Building the contribsA 运行配置文件cd contrib/android ../bootstrap .....生成配置文件: contrib/android/config.mak创建文件夹:mkdir -p ../../contrib/tarballs创建链接:ln -sf ../../contrib/src/main.mak Makefile所以后面make运行的文件是 main.makB make fetchmake fetch fetch required source tarballs下载:PKGS_FOUND := include $(SRC)/*/rules.makC makeRun "make" to start compilation.3 编译VLCA ../bootstrap生成../../configure.shB 运行../../configure.sh$VLC_SOURCEDIR/configureC 编译echo "Building" make4 编译# 2/ VLC android UI and specific code
版权声明:本文为hdh4638原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。