VLC编译记录 Ubuntu16.04

本文详细记录了在Ubuntu16.04上编译VLC的过程,包括环境配置、获取源码、安装依赖、配置、编译等步骤。在编译过程中遇到了如LUA、XCB库、ffmpeg、Qt5.7.0的链接错误等问题,逐一给出了解决方案,如调整Makefile、添加编译选项等。最后成功编译并解决了H264解码不支持的问题。
摘要由CSDN通过智能技术生成

环境:

·      Ubuntu16.04

·      gcc (Ubuntu5.4.0-6ubuntu1~16.04.9) 5.4.0

·      ffmpeg version 3.4.2Copyright (c) 2000-2018 the FFmpeg developers

    builtwith gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609

configuration:--enable-gpl --enable-version3 --enable-nonfree --enable-pic --enable-shared--enable-static --enable-libx264 --enable-libx265

libavutil      55. 78.100 / 55. 78.100

libavcodec     57.107.100 / 57.107.100

libavformat    57. 83.100 / 57. 83.100

libavdevice    57. 10.100 / 57. 10.100

libavfilter    6.107.100 /  6.107.100                 

libswscale      4. 8.100 /  4.  8.100

libswresample   2. 9.100 /  2.  9.100

libpostproc    54. 7.100 / 54.  7.100

·      protobuf-2.4.1

·      qt-5.7.0(.run 安装方式)

 

这次编译过程主要是跟着官方教程,但是因为官方教程比较老旧,会遇到很多问题,所以把这次的编译过程记录下来。

 

1.       准备环境

VLC需要C11编译器,开发头文件和工具链。

建议使用gcc(版本4.9或更高版本),但是也可以使用clang / LLVM。

如果您从Git仓库构建,您还需要GNU构建系统,即“autotools”(autoconf,automake,libtool和gettext)来设置Makefiles。确保它们是最新的并可用于您的系统。


%sudo apt-get install git build-essential pkg-config libtool automakeautopoint gettext

 

2.       获取源代码

首先获取源代码,使用Git来跟踪VLC开发。

%git clone git:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值