Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-1046

Converting to Qt/MsBuild fails with Qt 6.3.2 / 6.4.0 due to QtRcc error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 2.10.0
    • 2.9.1 (rev.06)
    • General
    • None
    • Visual Studio 2019
      Visual Studio 2022
      Qt Visual Studio Tools 2.9.1.6
      Qt 6.3.2 MSVC 2019 64-bit
      Qt 6.4.0 MSVC 2019 64-bit
    • Windows
    • feb33f709eb31a97bde3471a4414c30da710d225

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              heimrich Karsten Heimrich
              karlwolfram Karl Wolfram
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes