Ubuntu18.04编译vlc-3.0.10

本文详细记录了在Ubuntu18.04上编译VLC-3.0.10的过程,包括遇到的各种错误和解决方法,如lua依赖、libav、libswscale、liba52、libpostproc、xcb-shm、alsa等组件的安装和配置。
摘要由CSDN通过智能技术生成

最近要整一些视频操作,选择了vlc-qt。奈何使用vlc-qt需要先编译vlc。

1、首先下载vlc

访问官网https://www.videolan.org/vlc/ 选择要下载的版本 ,当然也可以直接下载http://get.videolan.org/vlc/3.0.10/vlc-3.0.10.tar.xz

将源码下载到本地后,开始尝试着编译,为什么说是尝试,因为会遇到各种各样的报错。


2、尝试配置

cd到源码的主目录,执行命令

./bootstrap

./configure

出现报错:configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error.

解决方案:根据./configure命令提示,下载对应的lua,我这里以下执行命令:

sudo apt install lua5.2

sudo apt install lua5.2-dev

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

再次执行./configure

出现报错:configure: error: Missing libav or FFmpeg. Pass --disable-avcodec to ignore this error.

解决方案:这里有两种解决方案。

方案(1)  执行命令: ./configure --prefix=/usr/local/vlc  --disable-avcodec  .让其直接忽略这个错误即可。

方案(2)执行命令:sudo apt install  libavcodec-dev   。

我是采用第二种方案。

  • 2
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值