Installing MSYS2, updating, installing build tools, and toolchains, and Qt 5.8 64 bit

  1. Visit this site: http://www.msys2.org/
  2. Download this installer msys2-x86_64-20161025.exe it might be newer version but you want the x86_64 one, but it will be updated by the end of this process to the latest anyway.
  3. Note the 64 bit installer will let you have both 32 and 64 bit toolchains, however for this post I am just concentrating on 64 bit
  4. I kept the default install location of c:\msys64
  5. After installing you should end up with an MSYS Terminal window open
  6. Update the software now by
    1. entering pacman -Syuu at the prompt
    2. Say Y to proceed with installation.
    3. You will then get a warning to close the terminal window, do that!
    4. Restart MSYS from windows start menu you want MSYS2 MSYS for this part (There are also options of MSYS2 Mingw64 bit, and MSYS2 Mingw32 bit, but those are for later when using the build toolchains.
    5. At the reopened window again enter pacman -Syuu and again say Y to proceed.
    6. Possibly repeat step 5 until it tells you there is nothing left to update.
  7. Install development software that we will need for our MSYS MingW64 environment, each time choosing y and default to all, there might be a lot of extra installed compilers and stuff here, but this worked for me.  And its all fun to play with 😉
    1. pacman -S git
    2. pacman -S svn
    3. pcaman -S base-devel
    4. pacman -S msys2-devel
    5. pacman -S mingw-w64-x86_64-toolchain
    6. pacman -S mingw-w64-x86_64-qt-creator mingw-w64-x86_64-qt5
    7. pacman -S mingw-w64-x86_64-cmake mingw-w64-x86_64-clang
    8. pacman -S vim
      1. Note vim might already have been installed as a dependency of git.
  8. exit the terminal window
  9. From now on if we are working on something to configure / test / compile, etc you will use the MSYS2 Mingw64 terminal available from the start menu
  10. Verify that Qt is installed and working by opening the MSYS2 Mingw64 terminal and running qtcreator & 
  11. Under Qt Creator Help / About Qt Creator you should see something like “Based on Qt 5.8.0 (GCC 6.3.0, 64bit)”

So if golang and now msys2 and qt are installed we need to configure things to work together.

Leave a Reply

Your email address will not be published. Required fields are marked *