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

rc.exe error RC1107 when path has space and using QtTest

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 3.3.1 (rev.39)
    • None
    • Windows 10 x64, Visual Studio Enterprise 2019 16.11.43, Qt 6.5.3
    • Windows

    Description

      I'm using the prerelease version of the Qt VS Tools 3.3.1 (rev.38) taken from this issue in Visual Studio 2019.

      The ressource compiler rc.exe fails if the project uses "Qt Test" module and the project's file path contains a space character. The error message is: 

      fatal error RC1107: invalid usage; use RC /? for Help

      The reason is the rc.exe is called with a /D parameter containing nested quoted strings for QT_TESTCASE_BUILDDIR:

      "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x86\rc.exe"
       /D _CONSOLE
       /D UNICODE
       /D _UNICODE
       /D WIN32
       /D _ENABLE_EXTENDED_ALIGNED_STORAGE
       /D WIN64
       /D QT_TESTLIB_LIB
       /D QT_CORE_LIB
       /D "QT_TESTCASE_BUILDDIR="D:/Qt Test Rc Space Err/x64/Debug/qt/qmake""
       /D _UNICODE
       /D UNICODE
      /l0x0409
       "/ID:\Qt Test Rc Space Err\x64\Debug\qt\qmake"
       /IC:\Qt\6.5.3\include
       /IC:\Qt\6.5.3\include\QtTest
       /IC:\Qt\6.5.3\include\QtCore
       /IC:\Qt\6.5.3\mkspecs\win32-msvc
       "/ID:\Qt Test Rc Space Err"
       /ID:\dev\vcpkg\installed\x64-windows\include
       /nologo
       /fox64\Debug\QtTestRcSpaceErr.res QtTestRcSpaceErr.rc

       

      Attachments

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

        Activity

          People

            mecfc Miguel Costa
            warp Klaus Wiegand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes