VLC Video Player Development-VLC for Android Compilation

Source: Internet
Author: User

VLC player is an excellent open source player that can play MPEG-1, MPEG-2, MPEG-4, DivX, DVD/VCD, digital satellite channels, digital earth TV channel (Digital terrestial television channels) play online videos through IPv4 and IPv6 networks on many job platforms. This software development project was initiated by French students. Participants came from all over the world and designed multi-platform support for playing network streaming and local multimedia files.

Next, we will use VLC to create a video player. In this chapter, we will compile the android VLC. For details about the download and compilation methods, refer to the following article.


After installing and updating the system, follow the official instructions to install git, APACHE-ant (or ant), Autoconf, automake, autopoint, libtool, gawk (or nawk), GCC, g ++, PKG-config, cmake, patch, and subversion. Then, set the environment and download the source code. All the installation instructions are provided. Then compile:

Wayne @ Wayne-Virtual-machine :~ /Vlc_android/Android $ sh compile. Sh
For an armv6 device without FPU, you need a build without FPU:
$ Export no_fpu = 1
For an armv5 device or the android emulator, you need an armv5 build:
$ Export no_armv6 = 1

If you plan to use a release build, run 'compile. Sh release'
VLC source not found, cloning
Cloning into 'vlc '...
Remote: counting objects: 392605, done.
Remote: compressing objects: 100% (77171/77171), done.


Error:

Make: *** [http://www.cnblogs.com/contrib/tarballs/libmp eg2-0.5.1.tar.gz] error 4

Because the videolanapp package is unauthorized, You can manually download libmp eg2-0.5.1.tar.gz, which is stored in the android/VLC/contrib/tarbils directory.
Error:

Build failed

/Home/Wayne/Android-SDK-Linux/tools/ANT/build. xml: 539: unable to resolve project target 'android-17'


Total time: 2 seconds

Make: *** [VLC-android/bin/VLC-debug.apk] Error 1


Change "17" to "15" because only 15 of SDK APIs are installed.


Modify project. Properties

Modify VLC-android/androidmanifest. xml

Change Android: targetsdkversion = "17" to Android: targetsdkversion = "15"

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.