Adding MinGW compiler to QT 5.6.0 Windows

20,492

Solution 1

To just get started the easiest thing to do would be to go here:

Link to Qt downloads page

Scroll down and select Qt 5.6.0 for Windows 32-bit (MinGW 4.9.2, 1.0 GB) this will download the installer (its about 1 GB). Run it and choose all the default options. Then you will have Qt 5.6 with mingw and Qt Creator all setup ready to go. Note: Before you start that its probably best to delete your current version - if you are not attached to it in any way :)

If you want to fix your current setup, then it might be longer-winded to find out what you are missing for mingw. For example you need the mingw qmake file that would be located here (using default install options):

  • C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\qmake.exe

to create your "Qt Version" part of the kit. And the actual mingw compiler, which is located here (using default install options):

  • C:\Qt\Qt5.5.1\Tools\mingw492_32\bin\g++.exe

to create your compiler. Once you have both of these then you can put them together to create your new kit.

But to just add a compiler all you need to do is:

  • Click compilers tab
  • Click add and select mingw
  • A new compiler is added, click it
  • You will see some options below, add your compiler executable path in (like the one above for example).
  • And you are done - there are some other options, but you probably don't need to use them.

note my paths are for qt 5.5.1 (obviously) so slightly different to 5.6 :)

update

Its all been moved around! - here are the new paths:

offline-installers

old-version-archives

Solution 2

Well. I was unable to provide the data before but it all makes more sense now. What I had installed was Qt for windows 64-bit (vs 2013, 836mb).

Hence, Instead of MinGW, I have msvc2013_64. It does have qmake.exe but doesnt have g++.exe. And I had downloaded it separately. You're answer was very helpful.

Share:
20,492
tedd_selene
Author by

tedd_selene

Updated on July 11, 2020

Comments

  • tedd_selene
    tedd_selene almost 4 years

    I am a Total Noob at this and I know nearly nothing about this. I just started using Qt Creator for windows 5.6.0 and While I wrote my first "Hello World" code..

    I was asked to add a kit. I searched the net for similar issues and it said that I needed a compiler for Qt. Thus, I installed MinGW from QtForums

    now when go to Tools->Options->Build&Run->compiler, I can not understand how do I add it to the list.

    Please help me through it?