Vlc--android Summary (1)----compilation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.