- 浏览: 173118 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
dupeng41255:
问一下,。com的接口 是不是需要注册啊?我调用的时候返回说需 ...
java实现whois域名查询 -
feiyu86:
比喻的非常贴切。。
synchronized方法和代码块的使用 -
罡风笑:
贴结果:CBH 蜀汉 绝顶 刀客
开心一下 你古代的身份。超级好玩~
来自:http://wiki.videolan.org/AndroidCompile
This page is an introduction to the compilation of VLC for Android on Linux.
Contents[hide ] |
Eclipse, SDK and NDK installation
Requirements
- You MUST be on Linux, and a recent one.
- You MUST have installed: apache-ant (or ant ), autoconf , automake , autopoint , libtool , gawk (or nawk ), gcc , g++ , pkg-config , cmake , patch , subversion , and very up-to-date versions of those tools.
- You MUST install: git .
Android SDK
- Create a working directory android .
- Go to Android SDK page and download the latest SDK for linux.
- Decompress into android folder.
- Run tools/android (from the command line you can also run: "tools/android update sdk -u -t platform,platform-tool,extra")
- In the tool, install "SDK Platform Android 4.0, API 14" , and follow the instructions.
You can have more details , if needed.
Android NDK
- Check that the SDK installation is correct.
- Go to Android NDK page and download the latest NDK for linux.
- Decompress into android folder, next to your android-sdk-linux folder.
Eclipse
As used by your distribution, install Eclipse with your package manager:
apt-get install eclipse (debian) yum install eclipse (Fedora) pacman -S eclipse (Arch) emerge -av eclipse-sdk (Gentoo) ...
And run it, at least once, and then quit eclipse.
Note: On Debian-based distributions it is better to download Eclipse indigo builds from the official website: http://www.eclipse.org/downloads/ , otherwise it can lead to an error when importing the ADT plugin (see following).
ADT
The ADT plugin is required to compile on Android.
- Go to ADT page .
- Start Eclipse, then select Help > Install New Software....
- Add the "ADT Plugin" repository with https://dl-ssl.google.com/android/eclipse/ as URL
- Validate and select the checkbox next to Developer Tools and click Next, Next, Finish.
- Restart Eclipse.
- Go to Menu > Window > Preferences... and then Android from the left pane.
- Point the SDK Location in to your downloaded SDK directory.
- Ok, and quit Eclipse.
See extra information here .
Environment setup
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, any other device uses armeabi
.
export ANDROID_ABI=armeabi-v7a
or
export ANDROID_ABI=armeabi
If you plan to use an armeabi-v7a device that does not support NEON, you need a build without NEON
export NO_NEON=1
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
Examples
- For a normal (2012 consumer phone or tablet), like Cortex-A8 or Cortex-A9
export ANDROID_ABI=armeabi-v7a
- For a Tegra2 device
export ANDROID_ABI=armeabi-v7a export NO_NEON=1
- For an ARMv6 device
export ANDROID_ABI=armeabi
- For an ARMv6 device without FPU
export ANDROID_ABI=armeabi export NO_FPU=1
- For an ARMv5 device or the emulator
export ANDROID_ABI=armeabi export NO_ARMV6=1
Those exports must be set at all times, notably for the contribs and the configure.
Building
Get VLC Source
Clone the source from the VLC git!
In your android folder, run:
git clone git://git.videolan.org/vlc-ports/android.git
Compile
Read compile.sh first, as it contains some very useful and important information. Then run it:
sh compile.sh
Note: At this point, you will get an autogenerated debug apk in the bin/ folder, signed with a debug key.
In order to build a non-debug package:
sh compile.sh release
Note: At this point, you will get an unsigned release apk in the bin/ folder, which you will have to sign and zipalign .
Package in Eclipse [optional]
- In Eclipse, create a new Android Project from existing source by importing from the vlc-android path.
- Export unsigned/signed apk.
Note: Building against JDK6 is recommended for optimal compatibility (Set Java Compiler Compliance to 1.6).
Run
Run it and enjoy!
Debugging
Here are some helpful links if you wish to debug VLC on Android:
Troubleshooting
Outdated Awk
If you receive the error message while building:
Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !
The prebuilt version of Awk that comes with the Android NDK is outdated. Defining HOST_AWK in your environment does nothing as the system still tries to just the one that comes with the Android NDK. To get around this issue, simply rename or delete the Awk binary that comes with the Android NDK. For example to move it:
mv $ANDROID_NDK/prebuilt/linux-x86/bin/awk $ANDROID_NDK/prebuilt/linux-x86/bin/awk.old
Can't find Ant
If you're new to Ant, please be aware that some Linux distributions don't install it in the usual spot as with other programs. Try checking to see if the directory /usr/share/java/apache-ant/bin exists and add it to your path.
Outdated autotools-dev
If you get the following error message you may have have an outdated version of autotools-dev:
Invalid configuration `arm-linux-androideabi': system `androideabi' not recognized
You may first want to check if your distribution has any available updates for this package. Alternatively, you can manually update your config.guess and config.sub files from here: [1] . These files are typically located in /usr/share/misc on Debian based distributions.
发表评论
文章已被作者锁定,不允许评论。
-
Android 属性动画(Property Animation) 完全解析 (下)
2016-02-22 14:49 1033版权声明:本文为博主原创文章,未经博主允许不得转载。 ... -
Android 属性动画(Property Animation) 完全解析 (上)
2016-02-22 14:47 699版权声明:本文为博主原创文章,未经博主允许不得转载。 ... -
Windows系统中Maven的安装与配置以及m2eclipse插件的安装
2014-04-30 16:06 1165近期公司的一个项目需要用maven搭建,所以把maven的环 ... -
Gallery自动循环滚动,手动滚动的平滑切换及存在问题
2012-11-06 10:51 3506来自:http://blog.csdn.net/lenghun ... -
Gallery自动循环滚动,手动滚动的平滑切换及存在问题
2012-11-06 10:34 7来自:http://blog.csdn.net/lenghun ... -
Android模拟器对应电脑键盘快捷键
2012-01-10 00:01 1369Home键(小房子键) 在键盘上映射的是home键。 ... -
Android的gallery实现无限循环和降低选择频率
2011-07-20 17:55 1465gallery是一个很好用的控 ... -
Android编译问题:Only 64-bit build environments are supported beyond froyo/2.2
2011-03-07 19:01 1108在使用: $ repo init -u git://An ... -
任务管理器正在运行的程序(2)
2010-12-23 14:36 1686RunningTaskInfo AndroidManifes ... -
任务管理器正在运行的程序(1)
2010-12-23 14:26 1499RunningTaskInfo 范例说明 ... -
android 监听文件和目录的创建删除移动等事件
2010-11-11 15:14 1739android.os下的FileObserver类是一个 ... -
animation知识学习
2010-10-22 14:07 2010LinearInterpolator 变化率是个常数,即 f ... -
Android 页面切换动画效果
2010-10-18 12:54 4135在Android 2.0之后有了ove ... -
android自适应屏幕方向和大小
2010-09-27 16:51 1726一:不同的layoutAndroid手机屏幕大小不一,有 ... -
Android图片处理的的一些方法
2010-08-02 18:54 63101.图片加载方法,方便用户加载图片 /**** 加载本地图片 ... -
OMA-SyncML-DataSyncProtocol-V1_1_2-20030612-A
2010-07-02 12:12 639手机联系人等信息同步中使用 -
Android取得屏幕分辨率
2010-05-31 10:32 920WindowManager windowManager = g ... -
Content Providers
2010-03-04 23:21 1171来源:http://developer.andro ... -
Android基础 : Android Content Provider[转]
2010-03-02 23:09 1063Android应用程序可以使用文件或SqlLite数据库来存储 ... -
Android 联系人开发- 保存联系人
2010-03-02 22:46 4723最近在开发android平台的联系人部分,有点总结和大家分享一 ...
相关推荐
VLC for Android 是 VLC 媒体播放器到 Android™ 平台的完整端口。它可以播放任何视频和音频文件,网络流和 DVD ISO,例如 VLC 的经典版本。VLC 具有完整的音乐播放器,媒体数据库,均衡器和过滤器以及许多其他功能...
VLC for Android 1.0.0更新内容: Android版VLC应用正式升级至1.0.0版本; 新版修复了ARMv8处理器,Android 5.0上的崩溃问题并在细节处进行了调整; 新版全新的界面已经在黑色和白色主题中使用; 整合了DVD iso和...
This page is an introduction to the compilation of VLC for Android on Linux
vlc for android beta 0-0-8 。armv7 neon 版本的vlc for android
vlc for android android 4.2.2 eclipse 可以编译通过的源码
自己编译的VLC for Android,官方最新的源代码,在Android5.0上测试通过
网上找的 比较新的资源 整理了一下 可直接导入eclipse运行 供大家学习交流
最新vlc for android 源码
此项目是经过编译后的VLC,带有jni和obj部分,请下载完成后,继续下载ActionBarSherlock.zip和SlidingMenu.zip这2个项目,导入后才可以使用。
VLC-Android APK支持AVS和DRA解码,VLC-Android-3.0.11-ARMv7_avs+dra.apk,VLC-Android-3.0.11-ARMv8_avs+dra.apk。手机装ARMv7就行,X86构架的CPU不支持。
Package Name: org.videolan.vlc [Play Store] File Size: 16.1 MB QR Code: View MD5 File Hash: e0eecd466595d43c254c8a692b0aa436 Last Fetched: 2017-04-15 00:07:44 Version: 2.0.6 (12000624) 从Google Play...
ubuntu下编译VLC for Android后生成的源代码,可以直接导入进eclipse运行
vlc for android 在liunx下编译后,eclipse导入可运行。
编译的libvlc,支持摄像头的rtsp流 下载后作为Module引用.在gradle里面的defaultConfig加上ndk {abiFilters 'armeabi-v7a'} 不然其他平台会出问题
本人自己下载官方VLC 最新源代码V1.6.5版本,自己进行编译的工程,可以进行播放常见视频格式的播放,如RTSP、HTTP、RTMP 流媒体和常见的视频文件播放。
编译VLC for Android过程中所需要的所有的额外包。使用方法:解压后直接放在vlc/contrib/tarballs的目录下
VLC Player for Unity插件,用脚本控制RTSP视频流的播放。nity项目开发过程中, 视频播放这块是避免不了的重要组成部分,网上也有很多资料做了详细的介绍,但基本都是基于Unity的MovieTexture对象,即要求视频源必须...
VLC for Android编译需要的包,部分会被墙掉无法下载,这里一一给大家上传。
VLC for Android, Android TV and ChromeOS
7月15 日从官方拉出 最新的 vlc-android 源码编译而成,libvlc 为最新3.3 版本。支持armv7a/armv8/x86.平台。可用于开发android 播放器。