Compile FFmpeg image and text tutorials on Windows
Before I started this blog post, I felt uneasy. From the initial installation and compilation of the environment to the final compilation, the entire project is very large, and there are many traps on the road. If you don't pay attention to it, you may have to give up your work. After deleting the previously compiled library, I may even doubt whether I can compile it again. But now that you have reached this step, you have to climb to the end! Now, let's start with the topic.
Compile FFmpeg in Linux to download and compile the source file
Linux compiling and upgrading FFmpeg
Install FFMPEG on CentOS 5.6
Install FFmpeg in Ubuntu
1. Build the compilation environment:
Before starting, first make sure that no mingw is installed on the current system. The logging command line is opened. Click mingw32-make.exe and press Enter. The system should display unrecognized commands, which indicates that the current system is "clean". You can continue the following installation steps.
Compile ffmpeg on Windows. Generally, the Mingw + Msys method is used. However, for convenience and convenience, I decided to install the CodeBlocks IDE. its official website is http://www.codeblocks.org /. In download-> download, either of the two versions.
The installation process does not need to be explained much. It is basically the next step. You just need to note that it is best to install it in the root directory of a disk partition. For example, we will locate the installation location D: \ CodeBlocks.
The next step is to start the installation. The Compiler automatically detects the installation at the end of the installation process. Select the default gnu gcc Compiler. After the installation is complete, the CodeBlocks startup interface is displayed, as shown in. After reading Visual Studio and Xcode's elegant but complex interface, CodeBlocks is simple and fresh, but it has a different flavor.
After the installation is complete, open the installation directory and you will see that the mingw folder already exists in the root directory of codeblocks. This indicates that the installation is complete. In the next step, you need to configure the system environment variable and add the mingw directory to it. You can open "control panel, system, security, and system", select "Advanced System settings", select "environment variables", and add the following two paths to "system variables:
D: \ CodeBlocks \ MinGW \ bin;
D: \ CodeBlocks \ MinGW \ libexec \ gcc \ mingw32 \ 4.8.1;
After that, we copy the values in the Path environment variable. The following are some environment variable values defined in the current system:
So far, Codeblocks and Mingw have been installed.
Next, install MSys at http://www.ming#org/wiki/msys. After the download is complete, you can install it by default. There is a post install step at the end of the installation, as shown in.
Select Y and enter. Then, ask if Mingw is installed and select Y and enter. Then MSys requires you to enter the Mingw installation path and d:/CodeBlocks/MinGW (note the direction of the slash ). Find the msys. bat file, open it in notepad, and add the following script at the beginning:
Call "D: \ Visual Studio 2010 Ultimate \ VC \ vcvarsall. bat" The path here is the path where VS2010 is installed on the local machine. After saving, the compilation environment will announce that the installation configuration is complete.
For more details, please continue to read the highlights on the next page: