VLC compile for Android

一、开发环境

Ubuntu14.04 + NDK r10d + Eclipse

1. 要求:你必须使用Linux或OSX系统,必须安装这些软件包:apache-ant(or ant), autoconf, automake, autopoint, cmake, gawk(or nawk), gcc, g++,

libtool, m4, patch, pkg-config, protobuf, ragel, subversion, unzip。

2. 环境变量设置

Set $ANDROID_SDK to point to your Android SDK directory

export ANDROID_SDK=/path/to/android-sdk

Set $ANDROID_NDK to point to your Android NDK directory

export ANDROID_NDK=/path/to/android-ndk

Add some useful binaries to your $PATH

export PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools

Devices

You need to export the ABI for your device. armeabi-v7a is for devices with ARMv7 or above (regardless of NEON), any other ARM device uses armeabi, x86/Intel devices use x86.

export ANDROID_ABI=armeabi-v7a

or

export ANDROID_ABI=armeabi

For a build that will run on x86 Android devices (e.g. certain Intel Android smartphones):

export ANDROID_ABI=x86

For a build that will run on MIPS devices (i.e. Ainol Novo tablets):

export ANDROID_ABI=mips

The following flags (NEON, FPU, ARMV6) are relevant only for the armeabi ABI:

If you plan to use an armeabi device that does not support FPU, you need a build without FPU

export NO_FPU=1

If you plan to use an ARMv5 armeabi device (read: Android Emulator), you need a build without ARMv6

export NO_ARMV6=1


二、编译

1. 获取VLC源码

git clone git://git.videolan.org/vlc-ports/android.git

2. 编译

sh compile.sh

三、Eclipse中导入VLC工程

1. 导入VLC工程


2. 导入appcompat和WheelView


3. 指定VLC使用的库


4. 需要Android SDK21版本,否则需要修改里面的代码。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值