Installing MSYS For Windows - iat-cener/tonatiuh GitHub Wiki
MSYS2: Installation and Initial Configuration
To develop Tonatiuh under Windows, the first step is to install the MSYS2 Software Distribution and Building Platform, a modern environment that simplifies software development by providing access to Unix-like tools, compilers, and precompiled libraries.
MSYS2 simplifies the setup process by combining a POSIX-compatible environment with native Windows support. This makes it ideal for cross-platform development projects like Tonatiuh.
This guide provides step-by-step instructions to downlaod the MSYS2 systems.
Details
- Download the installer.
- Visit the official MSYS2 website
- Download the latest installer comptible with your system architecture (typically the 64-bit version for modern Windows).
- Run the Installer
- Launch the installer and follow the installation wizard. You will be asked to choose an installation directory, avoid installing MSYS2 in a path with spaces:
images/developersguide/windows/MSYS2setupFolder.jpg |
---|
Figure 1. View of the MSYS2 installation assistant. |
- Complete the Installation
- Once installation finishes, do not open the default shell. Instead, navigate to the MSYS2 installation directory and open the ucrt64.exe shell. This shell corresponds to the UCRT64 environment, which is suitable for building modern C++ applications like Tonatiuh.
images/developersguide/windows/MSYS2setupShell.jpg |
---|
Figure 2. View of MSYS2 console. |
- Update the System
- Before installing any packages, it's crucial to update the package database and core system libraries. Run the following command:
pacman -Syu
After the update, you may be prompted to close the shell and re-run the command. This ensures all base components are up to date.
By choosing "C:\msys64" as the installation directory during the MSYS2 setup, 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. After completing this, the next step is to install the third party libraries which are essential for building Tonatiuh GUI and Tonatiuhs' core. To do it, follow the instruction in the following wiki page: Installing Libraries For Windows.