Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-82148

Failed binary resource compilation because of path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.12.7
    • Build System
    • None
    • everything is updated; Win10, Qt 5.12.7 & actual QtCreator; CMake 3.16.4, MSVC17
    • Windows

    Description

      After updating to 5.12.7 new issue appears; it works fine on macOS.

      Looks like the issue is in Qt5Core CMake scripts in macro. I have updated the orignial scripts with log message and the project configuration show this output:

      --  ====> C:/dev/work/build-cmake-test-Desktop_Qt_5_12_7_MSVC2017_64bit-Debug/data.qrc - > C:/dev/work/build-cmake-test-Desktop_Qt_5_12_7_MSVC2017_64bit-Debug/C:/dev/work/build-cmake-test-Desktop_Qt_5_12_7_MSVC2017_64bit-Debug/data.qrc.depends
      CMake Error at C:/dev/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:213 (configure_file):
        configure_file Problem configuring file
      Call Stack (most recent call first):
        C:/dev/Qt/5.12.7/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:246 (_QT5_PARSE_QRC_FILE)
        CMakeLists.txt:28 (qt5_add_binary_resources)
      
      

      I think there is a problem with ilegal character in output file . To reproduce, just create in QtCreator a simple Qt5 console app, add dummy data.qrc.in file and update CMakeLists.txt with:

      configure_file(
          data.qrc.in ${CMAKE_CURRENT_BINARY_DIR}/data.qrc
          COPYONLY
      )
      
      qt5_add_binary_resources(resources
          ${CMAKE_CURRENT_BINARY_DIR}/data.qrc
          OPTIONS -no-compress
      )
      
      add_dependencies(cmake-test resources)
      

      Previous release Qrt 5.12.6 work smooth on Windows & macOS.
      I suspect it is caused by commit '89bd5a7e733a64b694abf16b8d227dbbdd2d3ef7'

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              horar Lubomir Carik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes