[SOLVED] Problem configuring compiler in kit
-
I have a trial installation of MS Visual Studio 2013 premium on my PC. I also have a full (paid) installation of Visual Studio 2005 Standard edition.
When I installed Qt 5.2.1, Qt Creator autodetected a number of compilers, including the following which which I chose to include in my environment setup:
-- Desktop Qt 5.2.1 MSVC2010 32-bit
-- Desktop Qt 5.2.1 MSVC2010 32bit OpenGL
-- Desktop Qt 5.2.1 MSVC2012 32bit
-- Desktop Qt 5.2.1 MSVC2012 64bit (default)
-- Desktop Qt 5.2.1 MSVC2012 OpenGL 64bit
-- Desktop Qt 5.2.1 MinGW 32butIn the "Options--> Build & Run --> Kits" dialog, there is a red circle/exclamation point next to each of the above compilers, (except for the MinGW compiler). The popup tooltip for each of the compilers (except MinGW) says:
"Error: no compiler set in kit"
"Warning: no debugger set up"If I hit the "Manage" button to the right of the "Compiler" edit control, it takes me to the "Compilers" tab of the "Build & Run" dialog where, again, all of the foregoing compilers are listed (although without any kind of warning icon). If I select any of them and hit "Apply", nothing appears to happen.
In the "Qt versions" tab of the "Build & Run" dialog, when selecting any of these compilers (again, except MinGW), the information listing at the bottom says "No compiler can produce code for this Qt version. Please define one or more compilers."
I'd like to select the basic MSVC 64-bit compiler for my project, but I'm at a loss as to how or, given the various error messages above, whether it is even possible. If someone can give me some guidance here, I'd appreciate it.
OS is Win 7 Home Premium, if that is of any relevance.
Thanks in advance.
-
You need to use Qt version that matches your compiler.
For example for VS2013 you need to install "Qt 5.3.0 for Windows 64-bit (VS 2013)"
Qt officially supports VS2013 starting from 5.3.0.
If you prefer to use MinGW then you need to install "Qt 5.3.0 for Windows 32-bit (MinGW 4.8.2)"
There is no official 64-bit build for MinGW.
"Here":http://www.tver-soft.org/qt64 you can find unofficial builds of Qt for 64-bit for multiple compilers including MinGW and for VS 2008, 2010 -
Also pay attention to MSVC version numbers, which can be confusing:
@
VC++ 10.0 == MSVC 2010
VC++ 11.0 == MSVC 2012
VC++ 12.0 == MSVC 2013
@ -
[quote author="andreyc" date="1401078539"]You need to use Qt version that matches your compiler.
For example for VS2013 you need to install "Qt 5.3.0 for Windows 64-bit (VS 2013)"
Qt officially supports VS2013 starting from 5.3.0.
If you prefer to use MinGW then you need to install "Qt 5.3.0 for Windows 32-bit (MinGW 4.8.2)"
There is no official 64-bit build for MinGW.
"Here":http://www.tver-soft.org/qt64 you can find unofficial builds of Qt for 64-bit for multiple compilers including MinGW and for VS 2008, 2010
[/quote]Installing Qt 5.3.0 fixed my issue. I had just installed 5.2.1 a few weeks ago....did not realize a new version had been released.
Thank you!
-
[quote author="JKSH" date="1401084948"]Also pay attention to MSVC version numbers, which can be confusing:
VC++ 10.0 == MSVC 2010
VC++ 11.0 == MSVC 2012
VC++ 12.0 == MSVC 2013[/quote]Thanks. Yes, it is tricky, but I actually was aware that VS2013 uses the VC++ 2012 compiler.
-
Looks like I spoke too fast. Qt found the compiler (which works), but it did not autodetect the MSVC++ 2012 debugger.
A few minutes of Googling did not yield an answer -- anyone know the file path to the debugger, so I can attempt to add it manually?
-
It should be at C:\Program Files (x86)\Debugging Tools for Windows (x86)\cdb.exe
You might need to install Debugging Tools for Windows manually.
-
[quote author="JKSH" date="1401153595"]It should be at C:\Program Files (x86)\Debugging Tools for Windows (x86)\cdb.exe
You might need to install Debugging Tools for Windows manually.[/quote]
Thanks, yes, I had to manually install (after, of course, getting another infuriating error because the installer had an older version of the VC++ 2010 redistributables. AARGH!!!)
But looks like I'm good to go.
Thank you everyone for the prompt and helpful answers.
-
You're welcome. :) Happy coding!
Please edit your original post and add "[SOLVED]" to the title.