Qt – Making Qt Creator use MinGW

mingwqtqt-creator

This tutorial here shows how to add toolchains to Qt Creator. I didn't need that, since my installed MinGW automatically shows up there (I checked the path and it's right).

How do I make my project compile with it? I checked the projects tab on the left, and under none of the build configurations do I get the option to use MinGW (only Visual Studio).

Then I went to Tools->Options->Build and Run->Qt Version, and tried adding a Qt version for MinGW, but I simply don't have a qmake.exe for MinGW (or do I, and I'm just not aware?).

How can I make Qt Creator use MinGW?

Note: I have the Qt SDK.

Best Answer

Just to add a bit more specific info here. When I originally installed the QtSDK on windows I only had the MVSC option for building. To fix this run the Update QT SDK program and pick the Package Manager option, hit next. Expand "Qt SDK" -> "Development Tools" -> "Desktop QT" -> "Your QT Verision (mine is 4.8.0 (Desktop) at time of writing)" and you should only see a check box next to your Qt version for MSVC. Also check the MinGW option and hit next at the bottom. This will download and install mingw build tool chain for qt creator. You will then have the option to choose MinGW builds instead of MSVC.

Related Topic