Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making Qt Creator use MinGW

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.

like image 717
jzepeda Avatar asked Feb 10 '12 20:02

jzepeda


People also ask

What compiler does Qt Creator use?

Qt Creator uses the C++ compiler from the GNU Compiler Collection on Linux. On Windows it can use MinGW or MSVC with the default install and can also use Microsoft Console Debugger when compiled from source code. Clang is also supported.

Does Qt install MinGW?

Qt supports MinGW as a platform on Windows in addition to Visual Studio compiler by Microsoft. However, it can also be used as a cross-compiler e.g. on Unix (currently not officially supported). Qt Creator supports compiling with a MinGW toolchain out of the box.

Is Qt Creator an IDE?

Qt Creator is a cross-platform integrated development environment (IDE) built for the maximum developer experience. Qt Creator runs on Windows, Linux, and macOS desktop operating systems and allows developers to create software across desktop, mobile, and embedded platforms.


1 Answers

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.

like image 137
ThePosey Avatar answered Sep 19 '22 09:09

ThePosey