Qt Creator and MS C++ Build Tools
-
Qt Creator 4.0 does not detect compiler installed with MS C++ Build Tools. Also it didn't detect Clang compiler and CMake. I tried to add manually Clang compiler and CMake and use it with MSVC kit (it required CMake), but it still doesn't work and requires mingw32-make (I have it installed with mingw-w64, but I'm not sure why it's needed) for some reason. CMake generator is set to CodeBlocks - NMake. Also there is no option to add MSVC compiler - only MinGW/GCC/Clang/QCC/Custom.
What am I doing wrong? I tried to find solution, but the only thing that I found is a patch that added support MS C++ Built Tools support to Qt Creator, but Qt Creator 4.0 doesn't seem to include it, since it doesn't detect MSVC compiler. -
Hi and welcome to devnet,
Which package of Qt did you install ? On which version of Windows ?
Where did you found that patch ?
-
Offline Qt Creator 4.0 + Offline Qt 5.6.0 for win x86_64 VS 2015, windows 10.
I found it patch here - https://codereview.qt-project.org/#/c/147865/ it seems to add C++ Build tools detection.
This was the only half-relevant result that I got by looking up this issue. It seems to be code of some plugin, I just mentioned it because it was the only search result that wasn't completely irrelevant. -
The patch has been merge so it should be in.
Where do you have these tools located on your machine ?
-
Default location. It should detect it.
-
The full path would be useful in this case to check with the code.
-
It installs multiple things, code checks for vcbuildtools.bat in "C:\Program Files (x86)\Microsoft Visual C++ Build Tools" which I have.
-
Hi all,
the issue seems to be fixed here: https://bugreports.qt.io/browse/QTCREATORBUG-16136 -
Hello . I'm MSVC2015 problems , it does not work and gives as not recognized CL command. What can it be ?
-
Hi,
Did you install Visual Studio 2015 or at least the corresponding Build Tool package ?
-
It worked and stopped for no reason.
I can only do work that way.
Open Windows 10 Line Command:
%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"" x86
C:\Qt\Tools\QtCreator\bin\qtcreator.exe
Only in this way works.
Along with MSVC 2015 package appears an exclamation mark .
-
You should be able to get more information hovering the exclamation mark
-
-
Silly question but do you have setup cmake in the corresponding tab ?
-
The problem was solved.
The operating system or visual studio 2015 should be corrupted after formatting and reinstalling everything functioned normally .
Other applications were also with strange behavior .
-
2016 and reformatting still works well it seems :D
Glad you found a solution and thanks for sharing.
Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)
-
Hello,
I've got exactly the same problem and I do not know how to fix it.I installed
https://www.visualstudio.com/pl/downloads/?rr=https%3A%2F%2Fwww.google.pl%2F
Build Tools for Visual Studio 2017
but I cannot set this in qtcreator.