VLC-android source code compilation process record

Source: Internet
Author: User
Ubuntu 12.04 Virtual Machine Official documents: http://wiki.videolan.org/AndroidCompile#Get_VLC_Source
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.shFor an ARMv6 device without FPU, you need a build without FPU:$ export NO_FPU=1For an ARMv5 device or the Android emulator, you need an ARMv5 build:$ export NO_ARMV6=1If you plan to use a release build, run 'compile.sh release'VLC source not found, cloningCloning 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 cannot be downloaded, You can manually download libmp eg2-0.5.1.tar.gz and put it in the android/VLC/contrib/Android 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"
During compilation, I did not directly compile to generate the APK In ubuntu. After the required library is generated, I am OK. The rest of the work is completed in windows.Windows + eclipse

After compiling libvlcjni. So and other libraries, You can import three projects in eclipse to generate an APK package for installation.

The actionbarsherlock and slidingmenu projects are located in the VLC-android \ Java-libs directory. Check islibrary attribute for actionbarsherlock and slidingmenu items.

Add actionbarsherlock and slidingmenu as libraries in the VLC Project

PS: The VLC project must contain the four dependent packages.

Run the following command on the 4.0.3 simulator. The screen is relatively slow due to the simulator.

The above is the compilation process of VLC-android code. Thank you !!!

Link: http://www.cnblogs.com/dwayne/archive/2012/12/21/vlc_android.html

 

Related Article

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.