时间 2018/01/30 18:07
编译从零开始
1. 下载源码
解压 xz -d ***.tar.xz
2. 检查配置并生成生成configure文件
./bootstrap 根据configure.ac 生成 configure
Successfully bootstrapped
3. 检查配置并生成makefile
./configure
libvlc configuration
--------------------
version : 2.2.8
system : linux
architecture : x86_64 mmx sse sse2
optimizations : yes
vlc aliases : cvlc rvlc qvlc
To build vlc and its plugins, type `make', or `./compile' if you like nice colors.
4. 开始编译
make 或者 ./compile
各种错误
找不到lua
sudo apt-get install luac lua5.2 liblua5.2-dev
找不到libmad
wget http://downloads.sourceforge.net/mad/libmad-0.15.1b.tar.gz
sed -i '/-fforce-mem/d' configure &&
./configure --prefix=/usr &&
make
./configure --prefix=/usr &&
make
No package 'libavcodec' found
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libavutil-dev
Could not find liba52 on your system
sudo apt-get install liba52-dev
No package 'alsa' found
sudo apt-get install libalsa-ocaml-dev
找不到 libgcrypt
sudo apt-get install libgcrypt11-dev
You cannot build VLC with Qt-5.5.0. You need to backport
在configure.ac文件中注释这一行,重新生成configure
相关资料
常见下载
下载源码
wiki获取源码帮助
获取源码
git clone
git://git.videolan.org/vlc.git
获取稳定版源码,只下载