Difference between revisions of "Install MinGW/MSYS"
(Introduce MinGW and MSYS and give installation instructions.) |
(No difference)
|
Revision as of 23:50, 12 December 2010
MinGW consists mostly of a port of gcc (the GNU compiler collection) to Windows. MinGW also includes some minimal additional build tools such as a special form of make (mingw32-make) which relies internally mostly on standard Windows capabilities to help build software but which externally provides "make" functionality. Thus, it is possible to build software with mingw32-make without reference to any additional build tools other than the remainder of MinGW and standard Windows (either the Microsoft or wine version) platform capabilities. To use MinGW alone to build software, specify the CMake "MinGW Makefiles" generator. Just like gcc (and wine), MinGW is free and open source software.
MSYS is a port of many additional Unix build tools to Windows beyond the minimal set associated with MinGW. For example, MSYS includes an MSYS version of GNU make which uses bash and many other MSYS tools internally to provide make-like functionality. To use the combined capabilities of MinGW and MSYS to build software, specify the CMake "MSYS Makefiles" generator. Just like MinGW, MSYS is free and open source software.
To install both MinGW and MSYS on Windows or wine, use the modern installer downloadable from sourceforge.net/projects/mingw/files/Automated MinGW Installer/mingw-get-inst/. The modern installer requires about 5 minutes to download and install all the components of MinGW and MSYS that you need. The bin directories for MinGW and MSYS are kept entirely separate by the automatic installer so with some PATH manipulations you can access any combination of MinGW and/or MSYS that you like from a Windows (either the Microsoft or wine version) platform.