Write this or mainly for their own recent work to do some summary, I hope you can understand VLC to summarize down.
1) Prepare the Environment for compilation
Download NDK and SDK, set environment variables
Export ANDROID_SDK=/PATH/TO/ANDROID-SDK
Set $ANDROID _ndk to your ANDROID NDK directory
Export ANDROID_NDK=/PATH/TO/ANDROID-NDK
Add some useful binaries to your $PATH
Export path= $PATH: $ANDROID _sdk/platform-tools: $ANDROID _sdk/tools
You need to export the ABI for your device. armeabi-v7ais for devices with ARMv7 or above (regardless of NEON), any other ARM device uses armeabi , X86/intel devices use .
Export android_abi=armeabi-v7a
Or
Export Android_abi=armeabi
2) Download the source code
VLC download process, some modules can not be downloaded in the country. I was directly under the VPN.
git clone git://git.videolan.org/vlc-ports/android.git
3) Toggle Tag
Switch to tag, make sure the code is available, my side is cut to 0.9.9.
CD Android
git checkout "0.9.9"
4) Compiling
Read compile.sh First, as it contains some very useful and important information. Then run it:
SH compile.sh
Note: At this point, you'll get a autogenerated debug apk in the Bin/folder, signed with a debug key.
In order to build a Non-debug package:
SH compile.sh Release
Here, the approximate download and compilation process is finished.
The compilation of VLC is relatively simple. The main complication is in the configuration environment, the main problem is that many modules need to be downloaded via VPN, including the Android SDK and NDK, and some of the compilation modules in VLC.
The follow-up will add to the internal analysis of VLC.
Vlc--android Summary (1)----compilation