王志科 Coder, Designer, Manager

构建 FFmpeg

2016-05-30
王志科

准备工作

在 Windows 构建无法脱离 MSys2,没有 MSys2 环境,无法生成几个重要的文件
如何准备 MSys2 环境请参考 搭建 MSys2 环境
需要使用 pacman 安装三个工具包

pacman -S diffutils
pacman -S pkg-config
pacman -S yasm
pacman -S make

下载源码

使用下列命令下载 FFmpeg 的源代码

git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg

配置编译

使用下列的命令进行配置

./configure --toolchain=msvc --enable-shared --prefix=./build

使用下面的命令进行编译和打包

make
make install

写在后面

如果需要 Visual Stuido 的工程,那么可以根据 Makefile 文件来构建一个 Visual Stuido 工程进行编译
如果有时间可以整理一下,方便调试


相似主题

上一篇 构建 CEF

正文目录