VLC compile for Android
来源:互联网 发布:汉武大帝知乎 编辑:程序博客网 时间:2024/05/22 15:44
一、开发环境
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版本,否则需要修改里面的代码。
- vlc for android compile
- VLC compile for Android
- android vlc compile error fix
- android vlc compile error fix
- Compile Busybox for Android
- Compile Bash for Android
- chromium compile for android
- compile ffmpeg for android
- libx264 compile for android
- compile xbmc for android
- Compile ffmpeg for Android
- vlc-for-android编译
- vlc for android
- vlc for android demo
- vlc-for-android
- vlc-for-android
- vlc-for-android
- vlc-for-android
- sgu323 Aviamachinations
- sitemesh的使用
- 跟着实例学习java多线程1-为什么使用?
- git tag — 标签相关操作
- 作为一个iOS开发者,想知道作为一个Android开发者是一种怎样的体验
- VLC compile for Android
- ps 软件 各版本的下载地址
- 表格化顺序插入记忆单词方法
- 简单计算机wiform学习第一天 面向对象计算器
- Cocos2d 3.x 代码示例2(个人理解TMX)
- 学习设计模式:简单工厂、模板方法、单例(下)
- 如何增强自己的脑力
- 编写函数fun,其功能是:求出1,1+2,1+2+3各项的值, 并放在一维数组a中传回主函数。
- [ASP.NET-VIII] ASP.NET 使用CSS[行内式(style) 嵌入式(class)] + table布局前端控件I