Compile the ffmpeg vc dynamic library

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.