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.
Adding Custom CompilersIn the Name field, enter a name for the compiler. In the Compiler path field, enter the path to the directory where the compiler is located. In the Make path field, enter the path to the directory where the make tool is located. In the ABI field, specify the ABI version.
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.
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:
Select Tools > Options > Build & Run > Kits > Add.
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
You need to install a compiler, you gave no operating system details I will assume you are a windows user.
http://www.wikihow.com/Install-Qt-SDK-on-Microsoft-Windows
So far you only have the IDE, you need the compiler, you can install several different ones.
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