Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt Creator - How to add a compiler? [duplicate]

Tags:

c++

qt

Possible Duplicate:
VC++ compiler for Qt Creator
QT5 beta2, QT creator 2.6, MSVC error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options

I just installed Qt Creator ( my first expcerience with it ) and I'm getting this error, when I try to compile:

-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.

It's indeed very suggesting, and I read on other post here on stack, but I just couldn't get it done. These are my options from Build&Run -> Compilers:enter image description here

Details:

  1. It's Qt Creator 2.6.1 Based on Qt 5.0.0 (32 bit)
  2. I've installed visual studio 2012
  3. On the Qt download page , for Windows, there was only 32 bit option, but I have Windows 7 64bit

LE: These are Kits options enter image description here

What paths must be specified for Sysroot and Qt mkspec?

like image 695
Jack Willson Avatar asked Jan 22 '13 17:01

Jack Willson


People also ask

Should I use MinGW or MSVC?

MSVC is doing the compilation job significantly faster than MinGW-w64. The DLL sizes are comparable, if optimization is set to "-O2" for MinGW-w64, with "-O3" the DLLs from MinGW-w64 are larger. Binary files compiled with MinGW-w64 are performing significantly better than those compiled with MSVC.

Does Qt support C ++ 11?

Qt Creator is not a compiler. When you read that "Qt Creator supports C++11" it means that the code-completion engine (Clang in this case) supports C++11 syntax.

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.

How do I change the kit in a Qt project?

You can modify the kit configuration to use a currently installed Qt version and save the kit under a new name. To modify kit configuration or to add kits to the list or to remove them from it, select Manage Kits. For more information about managing kits, see Adding Kits.


1 Answers

you are using Visual Studio 2012, The solutions:

1) remove it and reinstall Visual Studio 2010, Qt 5.0 works with this version of microsoft C/C++ compiler.

2) install mentioned SDK compiler direclty from microsft's website.

like image 195
Reza Ebrahimi Avatar answered Sep 25 '22 23:09

Reza Ebrahimi