Error: Qt Creator needs a compiler set up to build
-
I have Qt Creator 2.7.0 and Windows 7 64bit.
I'm trying to compile a Hello World C++ program with it, but it looks like Qt Creator can't find my compiler (I'm using Windows SDK as C++ compiler). Building fails with error: "Qt Creator needs a compiler set up to build. Configure a compiler in the kit options". When I go to Tools / Options / Build & Run / Kits and select kit "Auto-Detected Desktop Qt 5.0.2 MSVC2012 64bit (default)", "Compiler" select box is indeed empty, but it's also greyed out (so I can't select it), although "Compilers" tab has 3 auto-detected compilers from Windows SDK.
Can anybody help me? I googled some solutions for this problem, but all they don't work... ;_; -
Hi and welcome to devnet,
Since you selected the MSVC2012 package you have to install Visual Studio 2012. Or change for the MSVC2010 package.
-
The version of Qt you download needs to match the compiler that you use.
[quote author="r5ha" date="1373922194"]Thank you for the reply!
How can I change the package? I've got Windows SDK v7.0 installed (with Microsoft C++ compiler v.15.00.30729.01), will it be enough?[/quote]Does your SDK contain the 32-bit compiler? If it does, it should work if you download "Qt 5.1.0 for Windows 32-bit (VS 2010...)".Windows SDK 7 comes with the same compiler as MSVC2010.Alternatively, if your graphics card supports OpenGL 2.0 or higher, you can download "Qt 5.1.0 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB)" -- this package comes with the MinGW compiler.