Difference between revisions of "MinGW installation"

From Code::Blocks
Line 44: Line 44:
 
More recent versions of commonly used utilities and utilities not found in UnxUtils:
 
More recent versions of commonly used utilities and utilities not found in UnxUtils:
 
*[http://prdownloads.sourceforge.net/gnuwin32/coreutils-5.3.0-bin.zip?download coreutils-5.3.0]
 
*[http://prdownloads.sourceforge.net/gnuwin32/coreutils-5.3.0-bin.zip?download coreutils-5.3.0]
*[http://prdownloads.sourceforge.net/gnuwin32/zip-2.31-bin.zip?download zip-2.31]
+
*[http://prdownloads.sourceforge.net/gnuwin32/zip-2.3-3-bin.zip zip-2.3.3]
 
*[http://prdownloads.sourceforge.net/gnuwin32/tar-1.13-1-bin.zip?download tar-1.13-1]
 
*[http://prdownloads.sourceforge.net/gnuwin32/tar-1.13-1-bin.zip?download tar-1.13-1]
 
*[http://prdownloads.sourceforge.net/gnuwin32/gzip-1.3.5-3-bin.zip?download gzip-1.3.5]
 
*[http://prdownloads.sourceforge.net/gnuwin32/gzip-1.3.5-3-bin.zip?download gzip-1.3.5]

Revision as of 13:21, 7 October 2006

Using the MinGW installer

Note: At the present time, it is still preferrable to download the packages by hand, as the installers are not production quality (unless you really feel unsure unpacking a couple of archives).

Also, the installer reportedly does not work on Windows Vista, follow the manual installation instructions.
(In general, MinGW is not confirmed to work for any Windows Vista betas or RCs)

MinGW Installer 5.02 allows to choose the SF mirror while 5.03 does not (automatically picks one randomly). Either installer allows to downloads/installs "previous", "current" and "candidate" mingw packages.

Note that the MinGW version number is not related to the actual compiler version.

Please do note that the installer applications require an internet connection and will download the actual MinGW packages at the time of installation.

GCC 3.4.5 manual install

This is the "candidate" release of MinGW, so it is not considered "stable" officially.
Personally, I have not had any kind of problem with this release.

To do a manual install, simply download the desired files and extract them all into the same directory. If you have WinZip, PowerArchiver, or any other similar program, this is as easy as selecting all the archives simultaneously and choosing "unpack here" from the context menu.

For clarity, I recommend to put MinGW into C:\MinGW, but almost any other locations should do equally well. Avoid pathnames with spaces or exotic characters, as this may confuse some commandline tools (most notably gdb).

Base system with C++

Optionally:

Fortran77 compiler

gdb debugger

Other developer tools

Ports of the most often used Unix utilities. Note that some tools in UnxUtils are quite a bit outdated, so make sure you do not overwrite already existing MinGW files with their UnxUtils counterparts:


More recent versions of commonly used utilities and utilities not found in UnxUtils:

Dependencies:

Resulting Folder Layout

Lay.png


GCC 3.4.4 manual install

Some people have reported various problems with gcc version 3.4.4, so it may be worth a consideration to use the either the 3.4.5 or 3.4.2 releases until a build from the 4.x branch is available.
Personally, I have not had any kind of problem with either 3.4.4 or 3.4.5.

Base system with C++

Optionally:

gdb debugger

Objective-C

Native Java (experimental)

Fortran-77

Ada


GCC 3.4.2 manual install

Installing MinGW can be quite intimidating the first time because it is not obvious what you have to do. Luckily, it is actually pretty simple.
To do a manual install, simply download the required files and extract them all into the same directory. For simplicity, I recommend C:\MinGW.

Base system with C++

Optionally:

gdb debugger

Objective-C

Native Java (experimental)

Fortran77 compiler

Ada