1. 首先安装必须的依赖软件,打开终端,执行:
sudo apt-get install git libtool build-essential pkg-config autoconf2. 从 http://www.videolan.org/vlc/download-sources.html 下载vlc-2.2.0源码,将其存放到/home/spring/VLC目录下,解压缩:
xz -dk vlc-2.2.0.tar.xz tar xvf vlc-2.2.0.tar3. 获取第三方库:
cd vlc-2.2.0sudo apt-get build-dep vlc4. 配置VLC,指定VLC的安装目录/home/spring/VLC:
./configure --prefix=/home/spring/VLC5. 编译VLC:
makemake的时候有一处错误:avparser.c:108:9: error:implicit declaration offunction ‘avcodec_free_context’[-Werror=implicit-function-declaration] ,解决方法是:打开/vlc-2.2.0/modules/packetizer/Makefile文件,把里面的-Werror-implicit-function-declaration删除掉可。
6. 运行VLC,验证是否一切正确:
./vlc7. 安装VLC(可选):
make install