Be sure to operate in sequence. Otherwise, you may encounter many strange problems (FFMPEG has high requirements on compiling system versions ).
1. www.mingw.org:
Download and install mingw 5.1.4 (http://jaist.dl.sourceforge.net/sourceforge/mingw/MinGW-5.1.4.exe), select g ++, mingw make when installing. We recommend that you install it on D:/mingw.
Download and install the msys Base System (MSYS-1.0.11, MSYS-1.0.11-rc-1.exe, http://jaist.dl.sourceforge.net/sourceforge/mingw/MSYS-1.0.11-rc-1.exe), and the installation path for mingw is prompted at the end of installation. We recommend that you install it in D:/msys.
Download GCC version 4 (gcc-4.3.0-20080502-mingw32-alpha) and unzip it to overwrite the mingw installation directory
Download mingw API for MS-Windows (w32api-3.13), unzip and overwrite the mingw installation directory
Because mingw automatically downloads the installation mingw32-make-3.81-20080326, no additional updates are required
2. www.ffmpeg.org:
Download MySQL 0.5Source code(Or extract the latest source code from SVN), decompress the package, and copy it to the msys user directory (home/XXX ).
Open the configure file in the source code directory in a text editor and replace all the PR files in the search box with print.
Open msys, go to the FFMPEG source code directory, create the release and debug directories, and compile the release or debug version as needed:
Go to the release directory and execute :.. /configure -- enable-memalign-hack -- extra-cflags =-fno-common -- extra-cflags =-fomit-frame-pointer -- disable-shared -- enable-static -- CPU = i586 -- enable-GPL -- enable-ffplay -- disable-Debug -- disable-logging
Go to the DEBUG directory and execute :.. /configure -- enable-memalign-hack -- extra-cflags =-fno-common -- extra-cflags =-fomit-frame-pointer -- disable-shared -- enable-static -- CPU = i586 -- enable-GPL -- enable-ffplay -- enable-DEBUG = 3 -- disable-optimizations -- disable-Stripping
See http://blog.csdn.net/hfw_1987/archive/2009/05/14/4183178.aspx
Then make, and then make install