WIN 编译 FFPlayer

在Window进行FFMPEG编译过程中,为快捷编译FFPlay执行文件 (64bit)

可以在Msys2执行如下操作安装SDL

Administrator@ComputeName MINGW64 ~
# pacman -S mingw-w64-x86_64-SDL2
# pacman -S mingw-w64-x86_64-SDL2_gfx mingw-w64-x86_64-SDL2_image mingw-w64-x86_64-SDL2_mixer mingw-w64-x86_64-SDL2_net mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-SDL_gfx

或者解压SDL2-2.0.12-win32-x64.zip将SDL-x86_64相关文件拷贝到C:\msys64\mingw64(默认环境)中修改pkgconfig\sdl2.pc文件中

# sdl pkg-config source file

prefix=/e/ffmpeg-4.1/ffmpeg/sdl
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: sdl2
Description: Simple DirectMedia Layer is a cross-platform multimedia library.
Version: 2.0.9
Requires:
Conflicts:
Libs: -L${libdir} -lsdl2main -lsdl2
Cflags: -I${includedir}/SDL2
 

让Msys编译找到对应LIB与INCLUDE文件,下列修改例如C:\msys64\etc\pacman.d下mirror文件更新Msys更新速度

lServer = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686

Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64

执行 pacman -Sy 刷新软件包数据, 执行pacman -Syuu更新全部依赖

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值