Details
Description
After installing Qt 6.3.2, I can no longer import .pro files or convert them to .vcxproj files if they contain a .qrc file.
To reproduce, set the Qt Version to 6.3.2, and then, in Visual Studio, click on Extensions / Qt VS Tools / Open Qt Project File (.pro).
Select a qt project example that contains a .qrc, for example, open: "C:\Qt\Examples\Qt-6.3.1\widgets\widgets\styles\styles.pro"
With Qt 6.3.1, this will import without errors.
With Qt 6.3.2 and 6.4.0, this will create this output:
--- (Import): Generating new project of styles.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.33.31629\bin\HostX64\x64\cl.exe
--- qmake(24676): started C:\QT\6.3.2\MSVC2019_64\bin\qmake.exe
--- qmake: Working Directory: C:\Qt\Examples\Qt-6.3.2\widgets\widgets\styles
--- qmake: Arguments: QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_MOC=$(QTDIR)\bin\moc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe -o "styles.vcxproj" -tp vc "styles.pro"
--- qmake(24676): exit code 0 (137,84 msecs)
C:\Qt\Examples\Qt-6.3.2\widgets\widgets\styles\styles.vcxproj(212): error: [QtRcc] converting "styles.qrc", configuration "Release|x64": failed to convert custom build command
C:\Qt\Examples\Qt-6.3.2\widgets\widgets\styles\styles.vcxproj(216): error: [QtRcc] converting "styles.qrc", configuration "Debug|x64": failed to convert custom build command
Could not convert project file styles.vcxproj to Qt/MSBuild.
The same error happens when I convert the pro files to .vcxproj on the command line, open them in Visual Studio, and then invoke "Convert custom build steps to Qt/MsBuild".
Attachments
Issue Links
- is duplicated by
-
QTVSADDINBUG-1071 Opening the attached .pro file in VS 2022 fails to convert to solution
-
- Closed
-