在Ubuntu14.04下载好了VLC的源码后,VLC的Eclipse工程存放在"vlc-android"目录
Package in Eclipse [optional]
In Eclipse, create a new Android Project from existing source by 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).
在Windows的Eclipse下导入vlc-android工程
root@dzt-VirtualBox:/home/dzt/android_vlc/android# ls
android-headers-gingerbread compile.sh find_modules.sh NEWS
android-headers-hc configure.sh gcc rename_package.sh
android-headers-ics COPYING gen-env.sh vlc
android-libs dump-libs.sh java-libs vlc-android
assets env.sh Makefile
根据官网的提示
Package in Eclipse [optional]
In Eclipse, create a new Android Project from existing source by 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).
在Windows的Eclipse下导入vlc-android工程
还要导入java-libs目录下的几个工程
root@dzt-VirtualBox:/home/dzt/android_vlc/android/java-libs# ls -l
总用量 12
drwxrwxrwx 5 root root 4096 7月 21 15:59 appcompat
drwxrwxrwx 5 root root 4096 7月 21 15:59 SlidingMenu
drwxrwxrwx 5 root root 4096 7月 21 15:59 WheelView
官网推荐我们使用JDK6
vlc-android工程导入Eclipse后的目录结构如下
由于project.properties文件关联了三个工程
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
target=android-19
android.library.reference.3=../SlidingMenu
android.library.reference.1=../appcompat
android.library.reference.2=../WheelView
所以也要把appcompat 、SlidingMenu 、WheelView这三个工程导入,我的工程都存放在同一目录下