After Ubuntu14.04 downloaded VLC's source code, VLC's eclipse project is stored in the "vlc-android" directory
[Email protected]:/home/dzt/android_vlc/android# lsandroid-headers-gingerbread compile.sh find_modules.sh NEWSANDROID-HEADERS-HC configure.sh gcc rename_package.shandroid-headers-ics COPYING gen-env.sh vlcandroid-libs dump-libs.sh java-libs vlc-androidassets env.sh Makefile
According to the official website tips
Package in Eclipse [optional]
In Eclipse, create a new Android Project from existing source to importing from the vlc-android path.
Import the three projects from the Java-libs folder.
Export unsigned/signed apk.
Note:building against JDK6 is recommended for optimal compatibility (Set Java Compiler Compliance to 1.6).
Import the Vlc-android project under Eclipse of Windows
Also import several projects under the Java-libs directory
[Email protected]:/home/dzt/android_vlc/android/java-libs# ls-l Total usage 12drwxrwxrwx 5 root root 4096 July 15:59 Appcomp atdrwxrwxrwx 5 root root 4096 July 15:59 slidingmenudrwxrwxrwx 5 root root 4096 July 15:59 Wheelview
Our website recommends using JDK6
The directory structure after the Vlc-android project was imported into Eclipse is as follows
Because the Project.Properties file is associated with three projects
# This file was automatically generated by Android tools.# does not modify this file--YOUR changes would be erased!## this F Ile must is checked in Version Control systems.## to customize properties used by the Ant build system use,# "Ant.properti Es ", and override values to adapt the script to your# Project structure.# project Target.target=android-19android.library. reference.3=. /slidingmenuandroid.library.reference.1=. /appcompatandroid.library.reference.2=. /wheelview
So also to AppCompat, Slidingmenu, Wheelview these three projects to import, my projects are stored in the same directory
This is only a case of Wheelview.
1.
2.
3.
Wheelview Project after the import
Right-click on VLC Project
At this time again to the VCL project clean
The corresponding APK will generate a
After running the
Related VLC source download: http://download.csdn.net/detail/deng0zhaotai/7661753
This project compiled APK is only suitable for running the arm series of processors, other MIPS, X86 need to generate a different library.
Encountered a problem during installation, record
01-01 04:04:44.050 V/VLC/LIBVLC (1724): Initializing libvlc01-01 04:04:44.050 e/vlc/libvlc/util (1724): Warning:unable t o Read libvlcjni.so; Cannot check device abi!01-01 04:04:44.050 e/vlc/libvlc/util (1724): Warning:cannot guarantee Correct ABI for this build (May crash)!01-01 04:04:44.050 W/DALVIKVM (1724): JNI Warning:jni method called with exception pending01-01 04:04:44.050 W/DALVIKVM (1724): in LORG/VIDEOLAN/LIBVLC/LIBVLC;. Nativeinit: () V (getmethodid) 01-01 04:04:44.050 W/DALVIKVM (1724): Pending exception is:01-01 04:04:44.050 I/DALVIKVM ( 1724): java.lang.nullpointerexception:01-01 04:04:44.050 I/DALVIKVM (1724): at Org.videolan.libvlc.LibVLC.getDeblocking (libvlc.java:301) 01-01 04:04:44.050 I/DALVIKVM (1724): at Org.videolan.libvlc.LibVLC.nativeInit (Native Method) 01-01 04:04:44.050 I/DALVIKVM (1724): at Org.videolan.libvlc.LibVLC.init (libvlc.java:384) 01-01 04:04:44.050 I/DALVIKVM (1724): at Org.videolan.vlc.util.VLCInstance.getLibVlcInstance (VLCINSTANCE.Java:47) 01-01 04:04:44.050 I/DALVIKVM (1724): at Org.videolan.vlc.gui.MainActivity.onCreate (mainactivity.java:171) 01-01 04:04:44.050 I/DALVIKVM (1724): at Android.app.Activity.performCreate (activity.java:4465) 01-01 04:04:44.050 i/ DALVIKVM (1724): at Android.app.Instrumentation.callActivityOnCreate (instrumentation.java:1049) 01-01 04:04:44.050 I /DALVIKVM (1724): at Android.app.ActivityThread.performLaunchActivity (activitythread.java:1920) 01-01 04:04:44.050 I /DALVIKVM (1724): at Android.app.ActivityThread.handleLaunchActivity (activitythread.java:1981) 01-01 04:04:44.050 i/ DALVIKVM (1724): at android.app.activitythread.access$600 (activitythread.java:123) 01-01 04:04:44.050 I/DALVIKVM ( 1724): At Android.app.activitythread$h.handlemessage (activitythread.java:1147) 01-01 04:04:44.050 I/DALVIKVM (1724): At Android.os.Handler.dispatchMessage (handler.java:99) 01-01 04:04:44.050 I/DALVIKVM (1724): at Android.os.Looper.loop (looper.java:137) 01-01 04:04:44.050 I/DALVIKVM (1724): at anDroid.app.ActivityThread.main (activitythread.java:4424) 01-01 04:04:44.050 I/DALVIKVM (1724): at Java.lang.reflect.Method.invokeNative (Native Method) 01-01 04:04:44.050 I/DALVIKVM (1724): at Java.lang.reflect.Method.invoke (method.java:511) 01-01 04:04:44.050 I/DALVIKVM (1724): at Com.android.internal.os.zygoteinit$methodandargscaller.run (zygoteinit.java:784) 01-01 04:04:44.050 I/DALVIKVM ( 1724): At Com.android.internal.os.ZygoteInit.main (zygoteinit.java:551) 01-01 04:04:44.050 I/DALVIKVM (1724): at Dalvik . System. Nativestart.main (Native Method) 01-01 04:04:44.050 I/DALVIKVM (1724): "Main" prio=5 tid=1 native01-01 04:04:44.050 I/ DALVIKVM (1724): | group= "main" scount=0 dscount=0 obj=0x40c41460 self=0x6d8e001-01 04:04:44.050 I/DALVIKVM (1724): | systid=1724 nice=0 sched=0/0 Cgrp=[no-cpu-subsys] handle=107422208401-01 04:04:44.050 I/DALVIKVM (1724): | schedstat= (0 0 0) utm=7 stm=11 core=001-01 04:04:44.050 I/DALVIKVM (1724): At Org.videolan.libvlc.LibVLC.nativeInit (Na tive MetHOD) 01-01 04:04:44.050 I/DALVIKVM (1724): at Org.videolan.libvlc.LibVLC.init (libvlc.java:384) 01-01 04:04:44.050 i/ DALVIKVM (1724): at Org.videolan.vlc.util.VLCInstance.getLibVlcInstance (vlcinstance.java:47) 01-01 04:04:44.050 i/ DALVIKVM (1724): at Org.videolan.vlc.gui.MainActivity.onCreate (mainactivity.java:171) 01-01 04:04:44.050 I/DALVIKVM ( 1724): At Android.app.Activity.performCreate (activity.java:4465) 01-01 04:04:44.050 I/DALVIKVM (1724): at Android.app. Instrumentation.callactivityoncreate (instrumentation.java:1049) 01-01 04:04:44.050 I/DALVIKVM (1724): at Android.app.ActivityThread.performLaunchActivity (activitythread.java:1920) 01-01 04:04:44.050 I/DALVIKVM (1724): at Android.app.ActivityThread.handleLaunchActivity (activitythread.java:1981) 01-01 04:04:44.050 I/DALVIKVM (1724): at android.app.activitythread.access$600 (activitythread.java:123) 01-01 04:04:44.050 I/DALVIKVM (1724): at Android.app.activitythread$h.handlemessage (activitythread.java:1147) 01-01 04:04:44.050 I/DALVIKVM (1724): at Android.os.Handler.dispatchMessage (handler.java:99) 01-01 04:04:44.050 I/DALVIKVM (1724): At and Roid.os.Looper.loop (looper.java:137) 01-01 04:04:44.050 I/DALVIKVM (1724): At Android.app.ActivityThread.main ( activitythread.java:4424) 01-01 04:04:44.050 I/DALVIKVM (1724): At Java.lang.reflect.Method.invokeNative (Native Method) 01-01 04:04:44.050 I/DALVIKVM (1724): at Java.lang.reflect.Method.invoke (method.java:511) 01-01 04:04:44.050 i/ DALVIKVM (1724): at Com.android.internal.os.zygoteinit$methodandargscaller.run (zygoteinit.java:784) 01-01 04:04:44.050 I/DALVIKVM (1724): at Com.android.internal.os.ZygoteInit.main (zygoteinit.java:551) 01-01 04:04:44.050 i/ DALVIKVM (1724): At Dalvik.system.NativeStart.main (Native Method) 01-01 04:04:44.050 I/DALVIKVM (1724): 01-01 04:04:44.0 E/DALVIKVM (1724): VM aborting01-01 04:04:44.050 f/libc (1724): Fatal signal One (SIGSEGV) at 0xdeadd00d (code=1) 01- 04:04:44.050 I/DALVIKVM (1724): wrote stack traces to '/DATA/ANR/traces.txt '
I'm using the command on the terminal.
sh-4.2# CP mnt/card/vlc.apk/system/app/
Reported the above error, and later viewed:/data/data/org.videolan.vlc/lib directory, found to be empty, and then use the following command to install it
sh-4.2# pm Install-r/mnt/card/vlc.apk/system/app/ pkg:/mnt/card/vlc.apk ver:/system/app/success
Import vlc-android and compile under eclipse