Qt Creator and MS C++ Build Tools
-
wrote on 15 May 2016, 14:53 last edited by Nikolay D. Bychinskiy
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 ?
-
wrote on 16 May 2016, 10:28 last edited by Nikolay D. Bychinskiy
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 ?
-
wrote on 16 May 2016, 21:00 last edited by
Default location. It should detect it.
-
The full path would be useful in this case to check with the code.
-
wrote on 16 May 2016, 23:36 last edited by
It installs multiple things, code checks for vcbuildtools.bat in "C:\Program Files (x86)\Microsoft Visual C++ Build Tools" which I have.
-
wrote on 17 May 2016, 14:05 last edited by
I'm in same situation of Nikolay. QtCreator 4.0 doesn't detect MS C++ Build Tools, on a Win 7 32 bit machine, and there isn't a way to manually add MSVC toolchain.
On the same machine, QtCreator 3.6.1 auto detects MSVC toolchain correctly. -
wrote on 19 May 2016, 14:09 last edited by
Same here. Qt Creator 4.0 cannot detect MS C++ Build Tools. I'm running a Windows Server 2012 64bit
-
wrote on 19 May 2016, 20:06 last edited by
I'm having the same problem on a Win 7 Desktop.
Are Qt Creator 4.0 and Qt 5.6 compatible with:
Microsoft Visual Studio Community 2015
Version 14.0.23107.0 D14REL -
wrote on 23 May 2016, 09:48 last edited by
Hi all,
the issue seems to be fixed here: https://bugreports.qt.io/browse/QTCREATORBUG-16136 -
wrote on 24 Jun 2016, 20:11 last edited by
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 ?
-
wrote on 27 Jun 2016, 14:14 last edited by
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
-
wrote on 28 Jun 2016, 14:30 last edited by
-
Silly question but do you have setup cmake in the corresponding tab ?
-
wrote on 5 Jul 2016, 18:07 last edited by
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 :)
-
wrote on 18 Nov 2017, 21:30 last edited by
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.