"no compiler can produce code for this qt version"
Although this error has been discussed previously, I've been unsuccessful so far trying to fix it.
I've installed Qt 5.1.1 for Windows 64-bit (VS 2012, OpenGL) on my windows7 PC.
I have also msvc express edition installed, nmake is recognized in the path, still the error persists.
Been stuck for hours on the issue, so any help will be greatly appreciated.
Thanks in advance.
If all fails, compile Qt yourself :)
Yes, thanks, that's what I've spent hours trying to do.
Main error message is std::max and std::min not found in various files.
Tried all sorts of things such as #include <math.h", include "math.h", replace by qMax and qMin, rewriting max and min inline etc.
Why doesn't the installer just... work?
The installer just works most of the time.
Please provide the following info to aid diagnosis:
- Post the full path to your installation of MSVC 2012 Express
- Post a screenshot of Qt Creator -> Tools -> Options -> Build & Run -> Compilers
- Post a screenshot of Qt Creator -> Tools -> Options -> Build & Run -> Kit
Also, try removing all compilers and all versions of Qt from your PATH. Having the compiler(s) and/or libraries in the PATH can lead to numerous issues. Qt Creator does not need or want anything in the PATH. In general, devs should use the "Developer Command Prompt for VS2012" instead of putting MSVC in the PATH.
Thanks for your help. Here's the information:
Path to MSVC2012 express "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\WDExpress.exe"
compilers : http://xflr5.sourceforge.net/compilers.png
kits : http://xflr5.sourceforge.net/kits.png
Any help will be welcome
Found the problem :) "Visual C++ Compiler 12.0" == "Visual Studio 2013", NOT "Visual Studio 2012"! See https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#History
You need to download Visual Studio 2012.
Got it working. Fantastic!