FFMPEG Compilation Guide: MinGW and MSYS Pure, NO VISUAL STUDIO TOOLCHAIN
Most of what is below is stolen from here, with a few tweaks: https://trac.ffmpeg.org/wiki/CompilationGuide/MinGW
The goal is to use the MinGW-w64 build tools, like gcc.exe, but under the MinGW "Mainline" shell. You accomplish this by putting MinGW-w64's bin first in your PATH when running a shell under MSYS, which is installed by MinGW "Mainline". You want to find the MinGW-w64 versions of gcc.exe before finding the MinGW "Mainline" version of gcc.exe.
Install MinGW-w64
MinGW-w64 can be found on SourceForge.
Change the install path to C:\mingw-w64. This will make setting up your PATH environment variable easier. The default install path is dumb.
Change the install path to C:\mingw-w64. This will make setting up your PATH environment variable easier. The default install path is dumb.
Install MinGW "Mainline"
Go to http://www.mingw.org and look for the "Download" page.
The recommended way to install MinGW/MSys is through the automated installer, mingw-get-setup.exe.
This will download most of the basic core packages. It will usually install in C:\MinGW.
The recommended way to install MinGW/MSys is through the automated installer, mingw-get-setup.exe.
This will download most of the basic core packages. It will usually install in C:\MinGW.
Launch your MinGW shell: C:\MinGW\msys\1.0\msys.bat
At the command prompt type:
$ PATH=/c/mingw-w64/mingw64/bin:$PATH
This will put the MinGW-w64 tools ahead of the MinGW "Mainline" tools.
Go to your FFMPEG source directory and run the following configure command:
$ ./configure --extra-cflags="-fno-stack-check -fno-stack-protector -mno-stack-arg-probe"
When that is finished, type:
$ make
$ make install
$ make install
And you are done.
Comments
Post a Comment