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"