How to get Qt Creator to use MinGW instead of Visual Studio

We are trying to compile a project with MinGW on a machine on which both MinGW (with Qt) and Visual Studio are installed. Unfortunately, the Qt developer prefers MSVS by default and does not see his own MinGW in it ( screenshot ). Unfortunately, this leads to many unclear errors, because the application was written and debugged using MinGW. Is there a way to get Qt Creator to use MinGW without killing MSVS?

+4
source share
3 answers

During installation, select an individual installation type. Selected libraries for the necessary compilers in QtSDK-> Development Tools-> Desktop Qt-> Qt-. Screenshot:

enter image description here

+5
source

Are you sure your Qt sdk is installed with its MinGW? You can use the Qt support application to make sure its MinGW engine is installed.

+2
source

Where are these libraries located? Did you compile the SDK yourself? Or have you reduced libraries?

Try to see what is in the mkspecs directory. There should be a link with the name "default". This is due to the specification that is being used. I suppose this points to win32-msvc2008. You can change this, but if it points to this specification, it means that the Qt libraries were compiled with this specification (unless it was subsequently changed), which means that you cannot use those that have MinGW. You must compile libraries with the correct specification or download the correct package (MinGW version).

+1
source

All Articles