Short instructions to install the MSYS2 development environment. MSYS2 is a minimal Linux on Windows distribution that also provides an easy way to install new packages using the
pacmanpackage manager. It also make it possible to install Qt5 in both shared and static version.
First you need to download the MSYS2 installer from the official site msys2. The 64bit version of every software has the suffix x86_64, and the 32bit version has the suffix i686.
After you have installed the base system (the default installation path is
c:\msys64 for x86_64 version, and
c:\msys32 for the i686 version), the next set of commands needs to be executed to ensure you have the latest version of the system. Open a msys2 shell by executing the file
Repeat the last command until there is nothing to be updated. The next commands can be used to search, install and remove packages.
pacman -Ss <name_pattern>
pacman -S <package_names | package_groups>
pacman -R <package_names | package_groups>
Nomenclature : In the next instruction the text
[text1 | text2] means you should either write
A minimum set of packages needs to be installed. The package management system will install any additional software required as a dependency.
To compile 64bit programs:
pacman -S mingw-w64-x86_64-binutils mingw-w64-x86_64-gcc mingw-w64-x86_64-gcc-libs mingw-w64-x86_64-gdb mingw-w64-x86_64-headers-git mingw-w64-x86_64-libwinpthread-git mingw-w64-x86_64-make mingw-w64-x86_64-tools-git mingw-w64-x86_64-winpthreads-git make bison flex gawk
To compile 32bit programs:
pacman -S mingw-w64-i686-binutils mingw-w64-i686-gcc mingw-w64-i686-gcc-libs mingw-w64-i686-gdb mingw-w64-i686-headers-git mingw-w64-i686-libwinpthread-git mingw-w64-i686-make mingw-w64-i686-tools-git mingw-w64-i686-winpthreads-git make bison flex gawk
It is possible to install both version x86_64 and i686 together. They are installed on
What follows is to install the eclipse IDE. But first you needs to install the JRE (JAVA Runtime Environments) as it is a dependency. To install the 64bit Eclipse version, the 64Bit Java version needs to be installed. All versions of java can be found in the this link JAVA. The Eclipse IDE can be downloaded from this link Eclipse. The eclipse installer is just a zip file that need to be unzipped, for example, in
Some environment variables needs to be created, in addition to modify the user PATH. It get easier with the software Windows Enviroment Variable Editor. The next two environment variables must be created:
MSYS_HOME C:\msys64 MINGW_HOME C:\msys64\[mingw64|mingw32]
And the User PATH variable should have the next entries, in the exact same order.
C:\msys64\[mingw64|mingw32]\bin; C:\msys64\usr\local\bin; C:\msys64\usr\bin;