Skip to content

Installing MinGW For Windows

ilescener edited this page Apr 3, 2017 · 4 revisions

To be able to develop Tonatiuh under Windows XP, Windows Vista or Windows 7, you need to install the MSYS shell environment, the MinGW C++ compiler, and a series of libraries. The installation of the MSYS shell environment and the MinGW C++ compiler is the first step in this process.

Here you will find instructions to carry out this first and important step towards setting up of a programming environment that will allow you to contribute to the development of Tonatiuh and / or to create your own plug-ins for Tonatiuh.

Details

Download the latest version of the MinGW installer. To do it, click on the following link to go to the webpage of the MinGW project website at SourceForge. Once you reach the webpage, click on the large green button labelled "Download" (see Figure 1). This will start the downloading of the MinGW installer. When prompted if to open or to store the file in your computer, select the appropriate option to store file on your computer.

Figure 1. View of the "Files" webpage of the MinGW website in SourceForge.

Once the MinGW installer is in your PC, left-click twice upon it to execute it.

During the execution of the installer do the following:

  • Click "Install" to start with the installation.
Figure 2. MinGW Installer opening dialog.
  • Enter "C:\sde\MinGW" as the destination location and click "Continue".
Figure 3. Preferences dialog.
  • Select the following components to install:
    • "A Basic MinGW Installation"
    • "The GNU C++ Compiler",
    • "A Basic MSYS Installation"
Figure 4. MinGW Installation Manager dialog.

After the installation is completed, open a MSYS shell console at "C:\sde\MinGW\msys\1.0\msys.bat" and type:

sh /postinstall/pi.sh
  • Type "y" to continue with the installation.
  • Type "y" to say that MinGW is installed.
  • Enter "c:/sde/MinGW" as the MinGW installation location.

By instructing the MSYS and MinGW installer to create the directory "C:\sde\MinGW" and to use it as the installation location, we are assuming that you will follow our suggestion of installing all the tools and libraries related to the Tonatiuh development environment under the same root folder, which we are defining as "C:\sde". This has the advantage that once the Tonatiuh development environment is successfully create in a computer, it can be replicated into other computers just by copying into these computers the root folder of the Tonatiuh development environment with all its subfolders and content.

Once MinGW is installed, the next step is to install the Qt libraries. To do it, follow the instruction in the following wiki page: Installing Qt For Windows.


Windows Configuration | Wiki Home

Clone this wiki locally