Can't compile with MSCV2012
-
So, I've just started with Qt and currently following a book guide. The thing that I can't understand is why I can't compile using MSVC2012 64 but I can using MinGW 32?
The error i get using MSVC is the following one:
15:50:18: Could not determine which "make" command to run. Check the "make" step in the build configuration.
Error while building/deploying project TestInstallazioneW7 (kit: Desktop Qt 5.0.2 MSVC2012 64bit)
When executing step "qmake" -
@racingame
are you compiling from command line or from within Visual Studio? -
@racingame
i guess there is something wrong with your build chain configuration in the QtCreator settings.Are you sure that Qt 5.02 is really compiled using MSVC2012 64bit?!
Out of curiosity, why don't you use a more recent version of Qt?
-
@raven-worx I'm just following the book step-by-step. Since it was using QT 5.0.2, I went for using the same exact version for not having issues. When I chose to install it, it came with 4 kits (https://i.imgur.com/o2Pm9xp.png), but only MinGW works.
EDIT: Actually found the reason: "No compiler can produce code for this Qt version". That's what Qt Creator says going in the Kit/Compiler options.
EDIT2: I installed Qt 5.10.1 with MSVC 2017 64 and it doesn't work anyway, same error.
-
@racingame
how does your QtCreator settings for the kits look like?@racingame said in Can't compile with MSCV2012:
I installed Qt 5.10.1 with MSVC 2017 64 and it doesn't work anyway, same error.
i hope it's clear that you should of course have installed the MSVC2017 compiler (e.g. by Installing the VS 2017 community edition is already sufficient)
-
I have it installed: https://i.imgur.com/s4YHbxZ.png but I have no debugger apparently, even tho it was automatically selected when installing Qt: https://i.imgur.com/FhYTpwd.png
Now I can compile but I keep having the warning: https://i.imgur.com/EzIJQdT.png
-
@racingame
What does the red icon next to the kit item tell?
Also make sure to select a C/C++ compiler from the combobox.Also note that since a recent MSVC version the debugger need to be installed separately, by installing the Debugging Tools for Windows
You may also take a look at this.