Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt 6.5 cmake rebuilds qml files
Forum Updated to NodeBB v4.3 + New Features

Qt 6.5 cmake rebuilds qml files

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 3 Posters 549 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SheepS Offline
    SheepS Offline
    Sheep
    wrote on last edited by
    #1

    Greetings

    I have successfully migrated my qt 6.3 qml app to qt 6.5 (of course from qmake to cmake) ... but now the qml files are rebuilt even without
    any changes made. The app has more than 700 qml files...this makes my buiding process to take a very long to complete (8 minutes for every build)

    The cmake file is a bit long.. but here is a snippet for the qml part

    #read all qml files with relative path
    file(GLOB_RECURSE QML_FILES RELATIVE  "${CMAKE_CURRENT_SOURCE_DIR}" CMAKE_CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/qml/*.qml")
    
    
    qt_add_qml_module (${GW_LIBRARY_NAME}
        URI GWriter
        QML_FILES
         ${QML_FILES} # qml files
    
         RESOURCES
         ${ASSETS_IMAGE_FILES} # holds the app images
         ${ICONS_FILES} # holds the icon files
    )
    

    please help me ..what can i do.

    cristian-adamC 1 Reply Last reply
    0
    • SheepS Sheep

      Greetings

      I have successfully migrated my qt 6.3 qml app to qt 6.5 (of course from qmake to cmake) ... but now the qml files are rebuilt even without
      any changes made. The app has more than 700 qml files...this makes my buiding process to take a very long to complete (8 minutes for every build)

      The cmake file is a bit long.. but here is a snippet for the qml part

      #read all qml files with relative path
      file(GLOB_RECURSE QML_FILES RELATIVE  "${CMAKE_CURRENT_SOURCE_DIR}" CMAKE_CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/qml/*.qml")
      
      
      qt_add_qml_module (${GW_LIBRARY_NAME}
          URI GWriter
          QML_FILES
           ${QML_FILES} # qml files
      
           RESOURCES
           ${ASSETS_IMAGE_FILES} # holds the app images
           ${ICONS_FILES} # holds the icon files
      )
      

      please help me ..what can i do.

      cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #2

      Which CMake version are you using?

      Also note that the parameter for file(GLOB_RECURSE) is CONFIGURE_DEPENDS, see https://cmake.org/cmake/help/latest/command/file.html#glob-recurse

      1 Reply Last reply
      0
      • joborJ Offline
        joborJ Offline
        jobor
        wrote on last edited by
        #3

        That shouldn't happen. Consider creating a bug report. Or provide the information that's usually requested here. See https://wiki.qt.io/Qt_Build_System_Glossary#Reporting_build_system_issues for details.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved