I decided to try CLion for Windows, which recommends either MinGW or Cygwin for compilation.
I installed the MSYS2 package manager into the default folder, C:\msys64
, updated it by running update-core
and pacman -Su
.
I then downloaded the MinGW64 package using pacman -S mingw-w64-x86_64-gcc
, which has been placed into C:\msys64\mingw64
.
The problem is, pacman -S mingw-w64-x86_64-gcc
currently downloads the version 5.0, which is not yet supported by CLion.
Does MSYS2 support installing older versions of packages (the MinGW version 4.9.2
should work just fine)? I tried searching for the MinGW packages using pacman -Ss mingw
, but the list is incredibly long and as I haven't worked with MinGW before, I really do not know what to choose.
The MSYS2 software distribution uses a port of pacman (known from Arch Linux) to manage (install, remove and update) binary packages and also to build those packages in the first place. Packages in MSYS2 work like packages in popular Linux distributions. A package is an archive containing a piece of software.
The difference between MSYS2 and CYGWIN is that MSYS2 is oriented to the development of native Windows packages, while CYGWIN tries to provide a complete POSIX-like system to run any Unix application on it. For that reason, we recommend the use of MSYS2 as a subsystem to be used with Conan.
MSYS2 ("minimal system 2") is a software distribution and a development platform for Microsoft Windows, based on Mingw-w64 and Cygwin, that helps to deploy code from the Unix world on Windows. It plays the same role the old MSYS did in MinGW.
Step 1 - Install the MSYS2 Base System The default installation path is C:\msys32 for a 32-bit installation or C:\msys64 for a 64-bit installation, but you can change this to anything you like (but make sure there are no spaces in the path names). This path is referred to as <msys2> in subsequent instructions.
No, MSYS2 does not directly support installing old versions of packages. Here are some things you can do though:
pacman -U filename.tar.xz
GCC is one of the harder packages to build and work with so it might be difficult for you to compile it from source. Also beware that the C++ ABI changed between GCC 4 and 5 or something like that, so binaries you build with the old GCC might not work with any of the MSYS2 C++ shared libraries compiled with GCC 5.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With