Windows 10, VS 2022 (17.4.2), QT 6.4.1, Qt VS Tools 184.108.40.206
The attached pitch.pro file generates an error when being loaded in VS 2022.
— (Import): Generating new project of pitch.pro file
vcvars: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat
cl: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\cl.exe
— qmake(38084): started C:\QT\QTDISTRIB\6.4.1\MSVC2019_64_STATIC\bin\qmake.exe
— qmake: Working Directory: D:\Users\dws\src\tartini1.3.0_VS2022
— qmake: Arguments: QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_MOC=$(QTDIR)\bin\moc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe -o "pitch.vcxproj" -tp vc "pitch.pro"
— qmake(38084): exit code 0 (10464.64 msecs)
D:\Users\dws\src\tartini1.3.0_VS2022\pitch.vcxproj(1307): error: [QtRcc] converting "pitch.qrc", configuration "Release|x64": failed to convert custom build command
D:\Users\dws\src\tartini1.3.0_VS2022\pitch.vcxproj(1311): error: [QtRcc] converting "pitch.qrc", configuration "Debug|x64": failed to convert custom build command
Could not convert project file pitch.vcxproj to Qt/MSBuild.
When trying to build with the generated .sln file it fails during end of the build (near the link) with:
Severity Code Description Project File Line Suppression StateSeverity Code Description Project File Line Suppression StateError MSB4184 The expression "[System.IO.File]::ReadAllText(C:\Users\dws\AppData\Local\QtMsBuild\qt.natvis.xml)" cannot be evaluated. Could not find file 'C:\Users\dws\AppData\Local\QtMsBuild\qt.natvis.xml'. pitch C:\Users\dws\AppData\Local\QtMsBuild\qt_globals.targets 786
Looking at the qt_globals.targets it is clear that QtVersionMajor was not set.
In the 2.8 version of the Qt tools I got the same error during conversion to the sln but it went ahead and built. I have tried QT with another open source project and it failed in the same when when RESOURCES were define in the .pro file.
This pro file is from an open source project at: https://github.com/dwsdolce/tartini1.3.0. I am using Qt 6.4,1 Community edition built as static.
This builds just fine with qmake.