Cross-compiling from a Linux environment:
- Install minigw-w64
$ sudo apt-get install mingw-w64
-
Clone this repo
-
Run
./cross_compile_ffmpeg.sh -h
to see what are the available options -
Invoke the cross compilation script as root ! (invocation example)
$ sudo ./cross_compile_ffmpeg.sh --build-ffmpeg-static=n --build-ffmpeg-shared=y --gcc-cpu-count=4 --compiler-flavors=win64