In MSYS2 x64 bash,
pacman -S mingw-w64-x86_64-toolchain pacman -S base-devel pacman -S yasm nasm gcc basedir=/d/work/open cd ${basedir}/x264 ./configure --prefix=${basedir}/x264_install --enable-static --extra-cflags="-O0 -g3" --enable-debug make make install cd ${basedir}/ffmpeg ./configure --prefix=${basedir}/ffmpeg_install --enable-static --disable-shared --extra-cflags=-I${basedir}/x264_install/include --extra-ldflags=-L${basedir}/x264_install/lib make make install
refer to:
http://events.jianshu.io/p/53ecc4dbe7d0
https://www.videolan.org/developers/x264.html
http://ffmpeg.org/download.html
https://www.msys2.org/
https://git-scm.com/download/win