MSVC compiler doesn't work
-
Qt doesn't work with MSVC compiler. I have VS2022 and Qt6.7. When I try to compile a project it fails with this error:
The kit settings:
Please help, I even reinstalled both VS 2022 and Qt and it still doesn't work. -
@ijustwanttodocursach In the first screen shot the output of the rc command consists of garbage characters (probably because your system language is Russian) - it could help to get readable output to understand what the problem is. Could you try to switch to English?
-
@ijustwanttodocursach The output is still unreadable see line 4 from the bottom
-
@ijustwanttodocursach Looks like the resource file is not found (manifest.rc).
-
@ijustwanttodocursach Don't know, I don't use MSVC. Maybe somebody else has an idea.
Are you able to build a simple C++ application in Visual Studio? -
Try enabling Force UTF-8 MSVC compiler output for the Kit.
And in order to have readable messages also in Preferences > Environment > Interface > Text coded for tools: select UTF-8.
-
@cristian-adam Here are readable messages:
-
The part with
--mt=CMAKE_MT-NOTFOUND
is not good. It should be able to find themt.exe
executable.From time to time Visual C++ compilers do go crazy (after a compiler update for example) and then I just go to Preferences > Kits > Compilers an click on Remove All and afterwards Re-detect.
And for good measure I restart Qt Creator.
This fixes my issues with Visual C++ compilers.
-
@cristian-adam I removed all the compilers, auto-detected them and restarted qt creator. Now there are new issues:
CmakeLists.txt file:
-
The MSVC compiler works 🎉
The QML issue is something else, also the error is not revealed. I can't say what's wrong with it.
-