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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With