MinGW and Msys differences and relationships and Mingw&msys install and compile in Win7 x264

Source: Internet
Author: User

1 Introduction

  MinGW, is the abbreviation for minimalist gnufor windows. It is a free-to-use and free-to-publish Windows-specific header file and a collection of imported libraries using the GNU Toolset , allowing you to gnu/ Linux and Windows platforms Generate local Windows programs without the need for a third-party C runtime (c runtime) library. MinGW is a set of files and port libraries that allow console mode programs to use Microsoft's standard C runtime (c runtime) library (MSVCRT.DLL), which works on all NT OS, in all Windows 95 distributions above Windows OS is effective, using the basic runtime, you can use the GCC write console mode in accordance with the United States Standard Organization (ANSI) program, you can use the C runtime (c Runtime) extension provided by Microsoft, combined with the basic runtime, you can have full rights to both use the CRT (c Runtime) and use the WINDOWSAPI function.
MinGW is mainly made up of GNU binary utilities, GCC and GDB. It also includes some necessary libraries, such as libc (C Runtime), and API interface libraries dedicated to the WIN32 environment.
  MSYS, Minimal GNU (POSIX) system on Windows, is a small GNU environment, including basic bash, make, and so on. Roughly equivalent to Cygwin.
As can be seen from the above:
The MinGW contains the GCC compiler and some C run-time libraries, and you can manually compile the source files. But without Msys, it is not possible to compile automatically, you need to combine make and bash. And the general Open Source Library is basically using make compiler system to compile the project, so need MinGW and msys combination.

2 Installing 2.1 Related installation packages download

MinGW and MSYS:
Http://sourceforge.net/projects/mingw/files/Download Mingw-get-setup.exe (86.5 KB)
yasm (Assembly compiler, x264 inside assembly code requires Yasm.exe):
http://yasm.tortall.net/Download.html Win32. exe (for general uses on 32-bit Windows), developed only with QT
X264 Source:
Http://www.videolan.org/developers/x264.html

2.2 Installation

MinGW and Msys:

To configure the installation, look for the prompt to select Install:

Then apply the selected installation.

yasm:
Modify the Yasm-1.1.0-win32.exe file name to: Yasm.exe, and put it in the D:\MinGW\msys\1.0\bin directory.
Compile x264:
Double-click "D:\MinGW\msys\1.0\msys.bat" to start the MinGW terminal.
Switch to x264 source directory: D:\MinGW\msys\1.0\home\x264 (through the Linux Operation command to implement, note can only be placed in the 1.0 directory, and the x264 folder read-only properties to change).
Execute the following command:
To configure the compilation parameters:
By opening the Configure file in the x264 directory with Notepad, you can see:
–enable-shared)
Shared= "Yes"
;;
–enable-static)
Static= "Yes"
;;

$./configure --enable-shared

 $make

Wait for the compilation to finish, and then:

$make install

Wait for completion, the bin, include, Lib three folders will be generated in D:\MinGW\msys\1.0\local. When you set up Windows engineering, you just need the Libx264-148.dll and include header files from the bin.

http://blog.csdn.net/freeape/article/details/50555003

MinGW and Msys differences and relationships and Mingw&msys install and compile in Win7 x264

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.