The Allegro Wiki is migrating to github at https://github.com/liballeg/allegro_wiki/wiki

Installing MinGW using the MinGW-Get Installer

From Allegro Wiki
Jump to: navigation, search

Download the MinGW Installer (next to "Looking for the latest version?" ).

After downloading press the executable file and select "Download Latest repository catalogues" as you can see in the image.

SetupMingw.jpg

Then, accept the licence, Install in the C:\MinGW directory (Very Important!!) And Install the next packages:

      C++ Compiler

It should show you something like this:

      Installing:
	  
      C Compiler
      C++ Compiler

      Downloading latest repository catalogues

      Destination location:
      C:\MinGW

The installation might take around 30 minutes, depending on your Internet speed, its size is approximately 150 Mb.

Note: If you want to build Allegro you'll also need the MSYS Basic System and MSYS System Builder. So in this case you should see somethin like this:

      Installing:
	  
      C Compiler
      C++ Compiler
      MSYS Basic System
      MSYS System Builder

      Downloading latest repository catalogues

      Destination location:
      C:\MinGW

And in this case the size will be up to 300 Mb.

After the installation, we proceed to see if everything was successfully installed. In case it was not, without deleting anything, you must do the entire process again. This should fix any problems in the installation process...

To test if everything works fine, first we need to add these paths to our Environment Variables. To do so, simply go to: (Windows Vista) Start > Control Panel > System > Advanced System Settings, then press "Advanced" and in the bottom press Environment Variables.

SetupMingw2.jpg

Add and edit the next Paths

SetupMingw3.jpg

Now we're ready to test if everything was installed correctly. Open the Command Prompt (Console) and type this: "gcc -v". You should see something like this.

SetupMingw4.jpg

Where "Armando" should be your user name, that's clear... :D

If you didn't see something like that, then you did something wrong... Try again!.