VLC3 编译过程

本文详细介绍了如何在64位Ubuntu 16.04系统上编译32位和64位的VLC3。首先安装必要的mingw-w64工具和依赖库,包括lua、automake、qt4-dev-tools等。接着从Videolan官方仓库克隆VLC源代码,并准备第三方库。在编译过程中,可能会遇到一些问题,如文件缺失、类型定义错误等,需要手动解决或安装额外软件。最后,通过./bootstrap、configure.sh和make命令进行配置和编译。
摘要由CSDN通过智能技术生成

1、首先是安装64位的ubuntu系统(ubuntu-16.04.5-desktop-amd64.iso)
阿里的源比较快:http://mirrors.aliyun.com/ubuntu-releases/

2、先安装所需要的依赖库和工具(要编译生成32位的LibVLC)

apt-get install gcc-mingw-w64-i686 g+±mingw-w64-i686 mingw-w64-tools

如果要编译生成64位的VLC则下载:(未尝试)

apt-get install gcc-mingw-w64-x86-64 g+±mingw-w64-x86-64 mingw-w64-tools

2.1、(这里装的版本可能无法编译vlc3以上的,vlc需要mingw-64 5版本以上)
去这里下载5.0的版本:http://ftp.us.debian.org/debian/pool/main/m/mingw-w64
通过wget http://ftp.us.debian.org/debian/pool/main/m/mingw-w64/mingw-w64-common_5.0.1-1_all.deb

mingw-w64-common_5.0.1-1_all.deb
mingw-w64-i686-dev_5.0.1-1_all.deb
mingw-w64-tools_5.0.1-1_amd64.deb
mingw-w64-x86-64-dev_5.0.1-1_all.deb
mingw-w64_5.0.1-1_all.deb

安装dpkg -i mingw-w64-common_5.0.1-1_all.deb

3、一些linux库

apt-get install lua5.2 libtool automake autoconf autopoint make gettext pkg-config

apt-get install qt4-dev-tools git subversion cmake cvs

apt-get install wine64-development-tools libwine-development zip p7zip nsis bzip2

apt-get install yasm ragel ant default-jdk protobuf-compiler dos2unix

4、获取源代码
git clone http://git.videolan.org/git/vlc.git
cd vlc

5、Prepare 3rd party libraries

apt-get install subversion yasm cvs cmake ragel autopoint

$ mkdir -p contrib/win32
$ cd contr

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值