In Qt for C++ , how do I setup a compiler and debugger in Windows for running a console application? It gave me this error when I try to debug an application :-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.
Windows – How to set up the compiler and debugger in QtCreator
compiler-errorsqtqt-creatorwindows
Related Topic
- C# – How to update the current line in a C# Windows Console App
- C++ – Configuring the GCC compiler switches in Qt, QtCreator, and QMake
- Java – Failed to load the JNI shared Library (JDK)
- Java – Can’t start Eclipse – Java was started but returned exit code=13
- Windows – How to upgrade Git on Windows to the latest version
- Qt Creator needs a compiler set up to build. Configure a compiler in the kit options
- Windows – Filename too long in Git for Windows
- Qt – How to set a compiler in Qt
Best Answer
In general, you seem to lack the compiler and proper "kit" installation. Try to install msvc or mingw with the corresponding Qt installer, and then double check the kit settings.
If the auto-detection does not work out afterwards, you can always add a kit explicitly:
You can find a screenshot below from my machine where you should look for that. Note that the screenshot was taken on my Linux box, but the place for the configuration should be unified on the UI.
See the documentation for further details:
Adding Kits