How to compile ANDROID-VLC open source player under Linux

Source: Internet
Author: User
Tags linux

These two days need to do audio and video playback related things, so the current Android to find the decoder library. Android's own decoder library is not fully supported, so many Third-party players are ffmpeg, most of them are used as decoding libraries. I also got a video player in 11 years, and it was based on FFmpeg. At that time on the internet about the Android Video decoder library is not much information, only to find a person on git transplant ffmpeg, get it down compiled, interested to see the article at the time: Android video player Faplayer compiled.

The main character today is the famous VLC, the person who has done the video player, should have heard its name, basically all platform has its figure. Android also released its beta version this year. This compilation is not very smooth, mainly because I saw some people on the internet before compiling the compilation process. Then choose one to compile it. Finally in a place to toss for a long time. The reason: The article was last year, and now the VLC project has been updated, and the compilation method is simplified. Of course, most of the compilation process is consistent. Finally looked for a half-day, found the VLC official website compiling instructions,

In the end, it's officially recompiled once. The description of the VLC here is not said, interested can go to the official website to understand.

Official compilation instructions: click here

1, the following is my compilation of the Environment:

Host system: WINDOW7 64-bit flagship edition

Virtual machine: Vmware Workstation 7.1.2

Linux version: Ubuntu 10.10

androidsdk:adt-bundle-linux-x86-20130522

Jdk:jdk-7u25-linux-i586.tar

Ndk:android-ndk-r8e-linux-x86.tar

Version Description: SDK, JDK, NDK I am currently using the latest version, are the official website download. Linux is the older version, because this system I used for more than two years, has not been upgraded to 12.04. This finally led me to compile with some of the low version of some software, resulting in a compile outage. So if you haven't installed the Linux system, it is recommended that you install the 12.04 stable version directly. ANDROIDSDK is Google's integration package, which contains Eclipse and ADT as well as 4.2 SDK. We recommend that you download this integration package if you do not have a good environment configured. Before configuring the JDK, SDK, NDK, install some of the Third-party packages needed for LVC compilation.

2, please ensure that your machine has installed the following software (preferably install the latest version of the software)

Apt-get Install GCC

Apt-get Install g++

Apt-get BUILD-DEP VLC

Apt-get Install git

Apt-get Install wget

Apt-get Install autoconf

Apt-get Install Libtool

Apt-get Install Subversion

Apt-get Install CMake

Apt-get Install Ant

This is the software that must be installed, and it is best to install the latest version of the software, I compile the time, because Ant used the older version, resulting in the generation of APK failed, ant must be more than 1.8 version of the line.

3, JDK installation configuration

Download JDK from Oracle website: click here

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.