Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. ninja: error: dependency cycle using qt_add_qml_module
Forum Updated to NodeBB v4.3 + New Features

ninja: error: dependency cycle using qt_add_qml_module

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 705 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.
  • P Offline
    P Offline
    pets
    wrote on 27 Jun 2022, 04:18 last edited by
    #1

    Hi,

    When using qt_add_qml_module with Qt 6.x (6.3, 6.4) compilation fails with the following message:

    ninja: error: dependency cycle: appqml-module_autogen/timestamp -> src/qml/appqml-module_tooling -> src/qml/.rcc/qmlcache/appqml-module_main_qml.cpp -> src/qml/qmlmodule/appqml-module.qmltypes -> meta_types/qt6appqml-module_debug_metatypes.json -> meta_types/appqml-module_json_file_list.txt -> appqml-module_autogen/timestamp
    

    Here is a simple example reproducing the problem: https://github.com/GoranShekerov/qml-module-reproduce

    The probleems seems to be quiet common:

    • https://gitlab.kitware.com/cmake/cmake/-/issues/21977
    • https://bugreports.qt.io/browse/QTBUG-98368

    How can this cylce be fixed?

    Regards

    1 Reply Last reply
    0

    1/1

    27 Jun 2022, 04:18

    • Login

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