C++ – QT Creator is not auto-detecting MSVC2017 64 bit compiler

cqtqt-creatorvisual c++

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.

Best Answer

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.

Related Topic