您的位置:首页 > 其它

Ubuntu14.04 32位上编译VLC2.2.0源码操作步骤

2015-04-03 16:31 330 查看
1. 首先安装必须的依赖软件,打开终端,执行:

sudo apt-get install git libtool build-essential pkg-config autoconf
2. 从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.tar
3. 获取第三方库:

cd vlc-2.2.0
sudo apt-get build-dep vlc
4. 配置VLC,指定VLC的安装目录/home/spring/VLC:

./configure --prefix=/home/spring/VLC
5. 编译VLC:

make
make的时候有一处错误: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,验证是否一切正确:

./vlc
7. 安装VLC(可选):

make install


参考:https://wiki.videolan.org/UnixCompile/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: