在Eclipse下导入vlc-android并编译

本文介绍了如何在Eclipse环境下导入并编译vlc-android项目。首先需要导入java-libs目录下的工程,并确保使用JDK6。接着展示VLC工程在Eclipse的目录结构,以及如何配置和编译 WheelView 工程。完成编译后,通过右键Clean项目生成APK,并展示了运行效果。注意,该APK仅适用于ARM架构,对于MIPS和X86需要分别构建相应库。
摘要由CSDN通过智能技术生成
在Ubuntu14.04下载好了VLC的源码后,VLC的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这三个工程导入,我的工程都存放在同一目录下

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值