VLC 编译安装 [for android, linux, windows]
2014-12-17 14:11
381 查看
仅作记录用:
VLC for android 编译安装:
参考:http://blog.chinaunix.net/uid-26611383-id-3678766.html
clone from git://git.videolan.org/vlc-ports/android.git
./complile.sh 时:
1. 下载protobuf 失败,改成百度单独下载,然后放到自建的http 服务器上,http://115.231.94.67/video/hls/protobuf-2.6.0.tar.bz2
改写
./vlc/extras/tools/packages.mak 和 ./vlc/contrib/src/protobuf/rules.mak 两处:
> # protobuf
> PROTOBUF_VERSION := 2.6.0
> #PROTOBUF_URL := https://protobuf.googlecode.com/svn/rc/protobuf-$(PROTOBUF_VERSION).tar.bz2
> PROTOBUF_URL := http://115.231.94.67/video/hls/protobuf-$(PROTOBUF_VERSION).tar.bz2
2. 下载openjpeg-1.5.0.tar.gz 失败,同样单独下载,放到http里,改写:
./vlc/contrib/src/protobuf/rules.mak
VLC 在Ubuntu 64位虚拟机上编译流程 for linux
参考:https://wiki.videolan.org/UnixCompile/#Configuration
终于一次顺利跑通,真是哭了。。整了一个礼拜了!
VLC 在Ubuntu 64位虚拟机上编译64位windows 版本流程
参考:https://wiki.videolan.org/Win32Compile/#Obtaining_the_toolchain
参考:http://blog.csdn.net/yyingwei/article/details/17217733
1. 环境准备: 【红色字体为运行命令】
Ubuntu:
You will also need:
lua (5.1 or 5.2)
all autotools: libtool, automake, autoconf, autopoint, make, gettext
pkg-config
qt4-dev-tools
git
subversion
cmake, cvs if you want to rebuild contribs
zip [for creating .zip package], p7zip [for .7z package], nsis [for .exe auto-installer], bzip2 [for 'make prebuild]
So:apt-get install git <--先装git,装好之后,可以另外一个终端,git 下面的vlc code. 因为git code 和下面其他工具下载安装需要很多时间。
apt-get install lua5.1 libtool automake autoconf
autopoint make gettext pkg-config subversion qt4-dev-tools cmake cvs zip
先试试这个,如果发现下载太慢,可以尝试换下面这个mirrors:
确定Host:
i686-w64-mingw32 for Windows 32-bits, using the Mingw-w64 toolchain
x86_64-w64-mingw32 for Windows 64-bits, using the Mingw-w64 toolchain
i586-mingw32msvc for Windows 32-bits, using the Mingw32 toolchain
VLC for android 编译安装:
参考:http://blog.chinaunix.net/uid-26611383-id-3678766.html
clone from git://git.videolan.org/vlc-ports/android.git
./complile.sh 时:
1. 下载protobuf 失败,改成百度单独下载,然后放到自建的http 服务器上,http://115.231.94.67/video/hls/protobuf-2.6.0.tar.bz2
改写
./vlc/extras/tools/packages.mak 和 ./vlc/contrib/src/protobuf/rules.mak 两处:
> # protobuf
> PROTOBUF_VERSION := 2.6.0
> #PROTOBUF_URL := https://protobuf.googlecode.com/svn/rc/protobuf-$(PROTOBUF_VERSION).tar.bz2
> PROTOBUF_URL := http://115.231.94.67/video/hls/protobuf-$(PROTOBUF_VERSION).tar.bz2
2. 下载openjpeg-1.5.0.tar.gz 失败,同样单独下载,放到http里,改写:
./vlc/contrib/src/protobuf/rules.mak
VLC 在Ubuntu 64位虚拟机上编译流程 for linux
参考:https://wiki.videolan.org/UnixCompile/#Configuration
终于一次顺利跑通,真是哭了。。整了一个礼拜了!
VLC 在Ubuntu 64位虚拟机上编译64位windows 版本流程
参考:https://wiki.videolan.org/Win32Compile/#Obtaining_the_toolchain
参考:http://blog.csdn.net/yyingwei/article/details/17217733
1. 环境准备: 【红色字体为运行命令】
Mingw-w64
Ubuntu:apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64-tools 【本人主机是x86-64的】
Development tools
You will also need:lua (5.1 or 5.2)
all autotools: libtool, automake, autoconf, autopoint, make, gettext
pkg-config
qt4-dev-tools
git
subversion
cmake, cvs if you want to rebuild contribs
zip [for creating .zip package], p7zip [for .7z package], nsis [for .exe auto-installer], bzip2 [for 'make prebuild]
So:apt-get install git <--先装git,装好之后,可以另外一个终端,git 下面的vlc code. 因为git code 和下面其他工具下载安装需要很多时间。
apt-get install lua5.1 libtool automake autoconf
autopoint make gettext pkg-config subversion qt4-dev-tools cmake cvs zip
Get VLC Source Code
$ git clone git://git.videolan.org/vlc.git vlc
先试试这个,如果发现下载太慢,可以尝试换下面这个mirrors:
$ git clone http://repo.or.cz/r/vlc.git vlc
确定Host:
i686-w64-mingw32 for Windows 32-bits, using the Mingw-w64 toolchain
x86_64-w64-mingw32 for Windows 64-bits, using the Mingw-w64 toolchain
i586-mingw32msvc for Windows 32-bits, using the Mingw32 toolchain
$ mkdir -p contrib/win32 $ cd contrib/win32 $ ../bootstrap --host=x86_64-w64-mingw32 $ make prebuilt
后面配置flow 官网就可以了。
最后Make 遇到x265 build 不过,--disable-x265; 遇到mge build 不过,--disable-mge 遇到sid build 不过,--disable-sid 。。。。
最后QT 也build 不过!那岂不是没有windows 界面了! 那还玩的下去? 直接放弃了。
相关文章推荐
- vlc_for_android 编译安装(未完成)
- Chromium for linux, windows, android编译
- linux下编译vlc for android 添加 截图(去掉了画中画和路径提示)及录像功能
- VLC学习(1) Linux 下编译 VLC for Android
- android学习——NDK入门 windows下安装cygwin 与 Eclipse使用CDT 自动编译
- Boost下载安装编译配置使用指南(含Windows和Linux)
- Boost下载安装编译配置使用指南(含Windows和Linux)
- Boost下载安装编译配置使用指南(含Windows和Linux)
- Nginx (一)Windows下编译Nginx源码以及安装 nginx for windows方法步骤
- Linux mount Windows共享后编译出现“Value too large for defined data type”的问题 (zz)
- [android]编译时出现/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../libz.so when searching for -lz错误信息
- Boost 下载安装编译配置使用指南(含Windows和Linux)
- HOWTO install and setup Android NDK for Windows(Android NDK 开发环境安装和配置)
- Boost下载安装编译配置使用指南(含Windows和Linux)
- Android NDK For Linux安装配置指南
- Boost下载安装编译配置使用指南(含Windows和Linux)
- Boost下载安装编译配置使用指南(含Windows和Linux)
- Windows下Linux开发环境设置(二)--安装Cygwin及交叉编译工具链
- Boost下载安装编译配置使用指南(含Windows和Linux)
- 【原】Boost下载安装编译配置使用指南(含Windows、Linux以及ARM Linux)