在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更新全部依赖