Reputation: 3517
Qt (Qt Creator 4.10.1 and Qt 5.13.1) stopped running applications found in its examples catalog after I installed Visual Studio 2019. Before I installed Visual Studio 2019, Qt was working fine. Now it tells me E:/Qt/5.12.5/mingw73_32/mkspecs/features/toolchain.prf(76): Variable QMAKE_CXX.COMPILER_MACROS is not defined.
and it stops, with only the .pro
file included in the project.
Around the same time that I installed Visual Studio I also installed the Unreal Engine.
Upvotes: 0
Views: 576
Reputation: 21
I was able to fix this by removing "C:\Qt\5.15.0\msvc2019_64\bin" from the ComSpec environment variable under build settings. No clue why it showed up there, but it happened after I built a library using cmake and visual studio.
The only thing that should be in ComSpec is the path to cmd.exe as far as I know. I spent hours looking for a solution only to find dead ends. I finally figured this out after cross referencing my qt project on a second machine.
Upvotes: 2