- $ cat /var/log/pacman.log | grep Running
- [2022-09-13T14:27:00+0800] [PACMAN] Running 'pacman -Su'
- [2022-09-13T14:27:11+0800] [PACMAN] Running 'pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-gcc'
- [2022-09-13T14:30:57+0800] [PACMAN] Running 'pacman -S base-devel'
- [2022-09-13T14:32:32+0800] [PACMAN] Running 'pacman -S mingw-w64-x86_64-SDL2'
- [2022-09-13T14:57:32+0800] [PACMAN] Running 'pacman -S nasm yasm '
- [2022-09-13T15:47:07+0800] [PACMAN] Running 'pacman -S git pkg-config'
- [2022-09-13T18:37:20+0800] [PACMAN] Running 'pacman -S mingw-w64-x86_64-cmake'
在C:\msys64\mingw64\bin目录下,把下列文件复制一份,且重命名
x86_64-w64-mingw32-gcc-nm.exe -> x86_64-w64-mingw32-nm.exe
x86_64-w64-mingw32-gcc-ar.exe -> x86_64-w64-mingw32-ar.exe
x86_64-w64-mingw32-gcc-ranlib.exe -> x86_64-w64-mingw32-ranlib.exe
strip.exe -> x86_64-w64-mingw32-strip.exe
dlltool.exe -> x86_64-w64-mingw32-dlltool.exe
ffmpeg -list_devices true -f dshow -i dummy
ffmpeg -f dshow -rtbufsize 1G -i video="AV.io 4k HD Video" -vcodec libx264 -r 60 encode264.mp4 -y
../configure --prefix=../install/ --disable-cli --enable-shared --extra-ldflags=-Wl,--output-def=libx264.def
LIB /DEF:libx264.def /machine:x64
export PKG_CONFIG_PATH= /usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
../configure --prefix=../install --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-libx264