ninja: error: dependency cycle using qt_add_qml_module
-
wrote on 27 Jun 2022, 04:18 last edited by
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:
How can this cylce be fixed?
Regards
1/1