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

qmlcache generation fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P1: Critical
    • 6.8
    • 6.8.0 Beta2
    • QML: Tooling
    • None
    • Windows

    Description

      When using the latest dev-version (6.8.0 - beta 2) from the Qt Maintenance tool, then compilation fails with this output:
       

      [188/2373 65.2/sec] Copying qtquickcontrols2.conf to C:/Users/dev/Desktop/Projects/test/build-qtvtm_rhi_state-Desktop_Qt_6_9_0_MSVC2022_64bit-Release/com/test/qtquickcontrols2.conf
      [189/2373 64.6/sec] Running rcc pass 1 for resource brouter
      [190/2373 63.1/sec] Running rcc pass 1 for resource epsg_raw
      [191/2373 62.7/sec] Running rcc pass 1 for resource appbasis_icons
      [192/2373 62.7/sec] Building CXX object external\brouter\CMakeFiles\rcc_object_brouter.dir\qrc_broutertmp.cpp.obj
      [193/2373 62.2/sec] Building CXX object units\CMakeFiles\rcc_object_epsg_raw.dir\qrc_epsg_rawtmp.cpp.obj
      [194/2373 61.4/sec] Building CXX object appbasis\CMakeFiles\rcc_object_appbasis_icons.dir\qrc_appbasis_iconstmp.cpp.obj
      [195/2373 59.2/sec] Running rcc pass 1 for resource vtmthemeresources
      [196/2373 57.0/sec] Building CXX object vtm\CMakeFiles\rcc_object_vtmthemeresources.dir\qrc_vtmthemeresourcestmp.cpp.obj
      [197/2373 31.0/sec] Running qmlimportscanner for appbasis
      [198/2373 28.1/sec] Running rcc pass 1 for resource QtAwesomePro
      [199/2373 27.4/sec] Building CXX object appbasis\ui\fontawesome\CMakeFiles\rcc_object_QtAwesomePro.dir\qrc_QtAwesomeProtmp.cpp.obj
      [200/2373 1.5/sec] Automatic MOC and UIC for target appbasis
      AutoMoc: C:/Users/dev/Desktop/Projects/test/qtvtm_rhi_state/utils/coordinatelist.h: note: No relevant classes found. No output generated.
      [201/2373 1.5/sec] Running rcc for resource qmake_com_test
      [202/2373 1.5/sec] Running rcc for resource qmake_com_test_copy
      [203/2373 1.5/sec] Generating .rcc/qmlcache/appbasis_qmlcache_loader.cpp
      FAILED: .rcc/qmlcache/appbasis_qmlcache_loader.cpp C:/Users/dev/Desktop/Projects/test/build-qtvtm_rhi_state-Desktop_Qt_6_9_0_MSVC2022_64bit-Release/.rcc/qmlcache/appbasis_qmlcache_loader.cpp 
      C:\WINDOWS\system32\cmd.exe /C "cd /D C:\Users\dev\Desktop\Projects\test\build-qtvtm_rhi_state-Desktop_Qt_6_9_0_MSVC2022_64bit-Release && C:\Users\dev\Desktop\Projects\test\build-qtvtm_rhi_state-Desktop_Qt_6_9_0_MSVC2022_64bit-Release\.qt\bin\qt_setup_tool_path.bat C:/QtCommercial/6.8.0/msvc2022_64/bin/qmlsc.exe --resource-name qmlcache_appbasis -o C:/Users/dev/Desktop/Projects/test/build-qtvtm_rhi_state-Desktop_Qt_6_9_0_MSVC2022_64bit-Release/.rcc/qmlcache/appbasis_qmlcache_loader.cpp @C:/Users/dev/Desktop/Projects/test/build-qtvtm_rhi_state-Desktop_Qt_6_9_0_MSVC2022_64bit-Release/.rcc/qmlcache/appbasis_qml_loader_file_list.rsp"
      [204/2373 1.5/sec] Running rcc for resource appbasis_raw_qml_0
      [205/2373 1.5/sec] Running rcc for resource appbasis_raw_qml_0_extra_qmldirs
      [206/2373 1.5/sec] Running rcc for resource appbasis_translations
      [207/2373 1.5/sec] Generating .qsb/vtm/shaders/base_shader.vert.qsb
      ...
      
      [220/2373 1.6/sec] Generating .qsb/vtm/shaders/line_aa_proj.frag.qsb
      ninja: build stopped: subcommand failed.
      19:27:03: The process "C:\QtCommercial\Tools\CMake_64\bin\cmake.exe" exited with code 1.
      Error while building/deploying project qtvtm_cmake (kit: Desktop Qt 6.9.0 MSVC2022 64bit)
      When executing step "Build"
      19:27:03: Elapsed time: 02:14.
      

       
      In detail the following lines shows the failure:

      FAILED: .rcc/qmlcache/appbasis_qmlcache_loader.cpp C:/Users/dev/Desktop/Projects/test/build-qtvtm_rhi_state-Desktop_Qt_6_9_0_MSVC2022_64bit-Release/.rcc/qmlcache/appbasis_qmlcache_loader.cpp 
      

      Interesting is also this part ("_copy"):

      [202/2373 1.5/sec] Running rcc for resource qmake_com_test_copy
      

      Under the "\.qt\rcc" directory there exists these files with exactly the same content:

      • qmake_com_test.qrc
      • qmake_com_test_copy.qrc

      and

      • qrc_qmake_com_test.cpp
      • qrc_qmake_com_test_copy.cpp

       

       

      Unfortunately I cannot find further details in the build logs.

       

      Qt 6.7.2 and 6.8.0 beta 1 work.

       

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            Harald Meyer Harald Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes