VLC编译记录 Ubuntu16.04

  • Post author:
  • Post category:其他



环境:


·      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:



版权声明:本文为hechenrui原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。