您的位置:首页 > 运维架构 > Linux

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.  环境准备: 【红色字体为运行命令】


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 交叉编译