windows ffmpeg 编译环境搭建

编译ffmpeg

https://www.msys2.org/

https://www.ffmpeg.org/platform.html#Microsoft-Visual-C_002b_002b-or-Intel-C_002b_002b-Compiler-for-Windows

1.安装msys2

2.安装yasm或者nasm

打开VC 本地环境命令行

唤醒msys2界面

配置编译环境变量参数

cpp 复制代码
export PATH="/d/vs2017/install/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86":$PATH
export PATH="/d/soft/nasm/install/":$PATH

安装cmp相关库

cpp 复制代码
pacman -S diffutils

安装makefile 相关库

cpp 复制代码
pacman -S make
pacman -S make pkgconf diffutils

编译ffmpeg

cpp 复制代码
cd /d/SevenWorkSpace/ffmpeg_workspace/ffmpeg
./configure --toolchain=msvc
make
make install

编译动态库版本

cpp 复制代码
./configure --toolchain=msvc --enable-shared

编译静态库版本

cpp 复制代码
./configure --toolchain=msvc --enable-static
相关推荐
阿白的白日梦1 天前
winget基础管理---更新/修改源为国内源
windows
埃博拉酱5 天前
VS Code Remote SSH 连接 Windows 服务器卡在"下载 VS Code 服务器":prcdn DNS 解析失败的诊断与 BITS 断点续传
windows·ssh·visual studio code
唐宋元明清21886 天前
.NET 本地Db数据库-技术方案选型
windows·c#
加号36 天前
windows系统下mysql多源数据库同步部署
数据库·windows·mysql
tryCbest6 天前
Windows环境下配置pip镜像源
windows·pip
呉師傅6 天前
火狐浏览器报错配置文件缺失如何解决#操作技巧#
运维·网络·windows·电脑
百事牛科技6 天前
保护文档安全:PDF限制功能详解与实操
windows·pdf
一个人旅程~6 天前
如何用命令行把win10/win11设置为长期暂停更新?
linux·windows·经验分享·电脑
一个假的前端男6 天前
[特殊字符] Flutter 安装完整指南 Windows—— 2026最新版
windows·flutter
倚肆6 天前
在 Windows Docker 中安装并配置 Nginx (映射 Windows 端口与路径)
windows·nginx·docker