Qt Creator needs a compiler set up to build. Configure a compiler in kit options

compiler-constructiongccqtqt-creatorqt5

I just installed Qt 5.2 package on ubuntu. I simply created a Qt widget application, and when I tried to build it, I got the following message:

Qt Creator needs a compiler set up to build. Configure a compiler in
kit options

I have tried several things, all of which were unsuccessful. I tried setting the compiler kit to

Desktop Qt 5.2.0 GCC 32bit (default)
enter image description here

However it didn't work

After that I set the compiler to

GCC (x86 32bit in use/bin)
enter image description here

However that didn't work either.

I also tried adding gcc manually and gave it the path

/usr/bin/g++-4.6

but it still didn't work.

This is what appears in there Qt Version tab

enter image description here

This is what I get when I remove the .pro.user file and restart the IDE, Whats the difference between configuring a project as Desktop and Desktop Qt 5.2.0 GCC 32bit?
enter image description here

Best Answer

Qt Creator needs a version of tools that are able to link against the Qt binaries that the downloaded package contains. In your case, the local toolchain and the binaries don't match. That means that you would actually have to build the Qt with your toolkit and make sure that QtCreator can find the built binaries.

The simpler way for Ubuntu is to use the packaged version of the tools; they play well with the already delivered binaries. Use sudo apt-get install qtcreator to install it with all the dependencies.

Related Topic