2021-03-28T17:32:05 Clang Code Model: Error: The clangbackend executable "D:\Qt\Qt5.12.9\Tools\QtCreator\bin\clangbackend.exe" could not be started (timeout after 10000ms).
C and C++ compiler paths differ. C compiler may not work.
C and C++ compiler paths differ. C compiler may not work.
:-1: warning: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x86\cl.exe" is used by qmake, but "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe" is configured in the kit.
Please update your kit (Desktop Qt 5.12.9 MSVC2017 32bit) or choose a mkspec for qmake that matches your target environment better.
知识点:
-
32/64 位系统编译在32位系统上运行 => x86
-
32 系统上编译64位系统上运行 => x86_amd64
-
64 系统上编译在64位系统上运行 => amd64
来自https://blog.csdn.net/whatnamecaniuse/article/details/80717821
解决方案:把msvc2017 32bit编译器中的编译器都设置为x86
解决方案:把msvc2017 64bit编译器中的编译器都设置为amd64