Adding MSVC 2017 to Qt
You cannot add MSVC manually to Qt Creator. You do need to have it auto-detected.
Also the mechanisms of detection changes depending on MSVC version and Qt Creator version. So be sure to use the latest version of Qt Creator (4.9.2 at this time) to make sure all your installed MSVC toolchain are detected.
Also given you comment you seem to confuse 64-bit and 32-bit.
x86
means 32-bit and amd64
means 64-bit.
This gives:
x86
32-bit compiler that produces 32-bit exex86_amd64
32-bit compiler that produces 64-bit exeamd64
64-bit compiler that produces 64-bit exeamd_x86
64-bit compiler that produces 32-bit exe
So if you wan to produce 32-bit programs, you can use x86
or amd64_x86
. If you want to produce 64-bit programs, you can use amd64
or x86_amd64
.
If at some point you want to compile a Qt porgam, but Qt Creator does not recognize your MSVC toolchain, you still have a solution:
- Open
Qt 5.12.4 (MSVC 2017 64-bit)
from the start menu - In the prompt run
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat amd64
- Run
qmake
and enjoy
You can't manually add MSVC to Qt Creator. If you want to use it make sure to have the correct Visual Studio version installed.
I suggest reinstalling Visual Studio if the MSVC compiler don't appear in the Compilers tab.