Ninja dependency cycle?

After a 3 month hiatus, I’m finally getting back to KDE building. Trying to use kde-builder to make gwenview, I run into an error I haven’t a clue about. The build of kconfig fails with…

kde-builder running: ‘ninja’

from directory: /local-12T/kde/build/kconfig

with environment: /local-12T/kde/build/kconfig/kde-builder.env

ninja: error: dependency cycle: autotests/kconfig_compiler/test14qml_autogen/timestamp → autotests/kconfig_compiler/.rcc/qmlcache/test14qml_qmlcache_loader.cpp → autotests/kconfig_compiler/test14qml_autogen → autotests/kconfig_compiler/CMakeFiles/test14qml_autogen → autotests/kconfig_compiler/test14qml_autogen/timestamp

exit code was: 256

Anyone have any idea as to where to start?

Have you tried rebuilding with --refresh-build ? That solves most build issues for me.

Yes, --refresh-build was at least part of the answer.

The full answer was to also to let kde-builder build Qt for you, as the version that cones with kubuntu 24.10 is a 6.6.x build. The latest kde-builder sources need at least a 6.7.x build.

I’m thinking of adding this to the documentation for the getting started section, as well troubleshooting

1 Like

I was using KUbuntu 24.10 until recently but that’s not just Qt you will have to compile additionnaly, wayland, wayland-protocols and libdisplay-info at least if you compile all plasma-desktop.

Great idea!

Except the documentation already mentions it: Basic troubleshooting | Developer