Hi, the problem you're encountering is maybe the same as https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087385.
It can be solved by adding qt6-declarative-private-dev to the build dependencies. It's not a good solution, but we'll have to wait for Qt 6.9 for a proper fix to this bug. -- Med vänliga hälsningar Patrick Franz