Compile the ffmpeg vc dynamic library
1. Install mingw + msys
Download mingw: mingw- 3.1.0 -1.exe (I used this version, I guess if the mingw-5.1.3 can be directly under some of the upgrade package, no test)
Http://prdownloads.sourceforge.net/mingw/MinGW-3.1.0-1.exe? Download
Double-click Installation
Download msys: bash-3.1-MSYS- 1.0.11 -1-src.tar.bz2
Http://jaist.dl.sourceforge.net/sourceforge/mingw/bash-3.1-MSYS-1.0.11-1-src.tar.bz2
Double-click the installation and you will be prompted to enter the following options:
WHRE is your mingw installation? Enter the path when you install mingw.
Because an error occurs when you run./configure, download bash.exe and copy it to the bin directory of msys.
Download: bash.exe
Ftp://gd.tuwien.ac.at/gnu/mingw/bash-2.05b-MSYS.tar.bz2
Because make errors occur, you need to update w32api to w32api-3.10
Http://downloads.sourceforge.net/mingw/w32api-3.10.tar.gz? Modtime = 1186139469 & big_mirror = 1
Coverage to mingw
Update mingw-runtime to mingw-runtime-3.13
Http://gd.tuwien.ac.at/gnu/mingw/mingw-runtime-3.13.tar.gz
Coverage to mingw
2. Compile FFMPEG
There are three steps
1) ../configure ........ // Custom
2). Make // compile
3). make install // install
Add the following statement to msys. BAT:
Call "C:/program files/Microsoft Visual Studio/vc98/bin/vcvars32.bat"
Open msys and enter the FFMPEG directory.
(1) #./configure -- enable-shared -- disable-static -- enable-memalign-hack -- prefix = D:/FFMPEG
(2) # Make
(3) # make install
-- Prefix = D:/FFMPEG, which is the installation directory of make install.
After successful execution, go to D:/FFMPEG to find the related *. dll *. lib *. h. Add *. lib *. H to the VC project to use the FFMPEG dynamic library.
OK