FFmpeg in Linux is quite simple to compile, only need to configure, and then make a bit on it.
If you need a dynamic library, add a--enable-shared to the back of the Configure to be OK.
But under Windows is not very easy, in the online search for a variety of Windows compiled under the method, mostly stereotyped, and cumbersome, and some need to rely on a lot of libraries. And I just imagine Linux under that simple easy to compile a few libraries in the ffmpeg, is there a simple way? The answer is yes.
Download cygwin,:https://cygwin.com/
I downloaded the setup-x86_64.exe.
Then install, installation procedures can refer to this, write more detailed: http://jingyan.baidu.com/article/6b97984d83dfe51ca2b0bf0e.html
Remember to choose to install GCC and make related packages, otherwise you may not run the GCC command and do command;
If you really do not know how to install the Make command, wait for the Cygwin to install, manually install the Make tool, the method is as follows:
Download make-3.8.1.tar.bz2:http://gnu-make.soft32.com/on the official website.
Open Cygwin, similar to a Linux terminal, cd/cygdriver you can see the various disks on your computer, to the place where you download make-3.8.1.tar.bz2, unzip the installation make
Tar xvf make-3.8.1.tar.bz2
CD make-3.8.1
./configure
./build.sh
Generated a Make.exe
CP make.exe/bin/
You can use the make command at this point.
All ready, back on the road to compiling ffmpeg. The compilation steps in Cygwin and Linux are almost the same.
I am here to compile ffmpeg-2.1.8 for example, decompression;
./configure--enable-shared--disable-static
I'll tip you here:
So I'll try again:
$./configure--enable-shared--disable-static--disable-yasm
Then make
It's OK! As simple as this, you can find the library file you need in the ffmpeg-2.1.8/directory.
Cygwin compiled FFmpeg library under Windows