Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QT Creator is not auto-detecting MSVC2017 64 bit compiler

I have Qt creator 4.6.0 and Microsoft Visual Studio 2017 Enterprise installed on my system. Through Visual Studio, I have installed "Desktop development with C++" including VC++ 2017 v141 tool set.

When trying to configure the MSVC 2017 64 Kit in Qt Creator, the MSVC compiler is not auto-detected. The only compilers that show are MinGw and Visual Studio 2008 (9.0) I believe I should be seeing "Microsoft Visual C++ Compiler 15.0".

Does anyone know how I can get the compiler to auto detect or add this manually. I can compile and build QT programs in Visual Studio, but would like to use QT Creator.

Thanks in advance.

like image 995
Michael Japzon Avatar asked Apr 20 '18 16:04

Michael Japzon


2 Answers

You have to add it manually then. In the Build & Run settings, compiler tab, click add, custom -> C++, then fill the compiler line with the compiler's path.

But you have to fill correctly the ABI line, and if it doesn't fit any Qt build you already made, then you will have to build Qt from source again from a msvc command prompt.

like image 198
el famoso Avatar answered Oct 10 '22 03:10

el famoso


I have the same problem before. Then I install the BuildTools for 2017 as well. And now it works very well.

Maybe you can refer these:

https://forum.qt.io/topic/97693/qt-creator-4-8-not-detecting-vs-2017-in-kits

https://bugreports.qt.io/browse/QTCREATORBUG-17925?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&showAll=true

like image 42
XIANPI DUAN Avatar answered Oct 10 '22 04:10

XIANPI DUAN