Qt 6.6 qdbusxml2cpp moc change
When building against current Qt dev branch there are build failures in various projects that use qt_add_dbus_interface
For example in baloo:
FAILED: src/lib/CMakeFiles/KF5Baloo.dir/__/dbus/maininterface.cpp.o
/usr/lib64/ccache/c++ -DBALOO_CORE_DEPRECATED_WARNINGS_SINCE=0x56700 -DBALOO_CORE_DISABLE_DEPRECATED_BEFORE_AND_AT=0x56700 -DKCOREADDONS_LIB -DKF5Baloo_EXPORTS -DKF_DEPRECATED_WARNINGS_SINCE=0x60000 -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x56100 -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x60000 -DQT_DISABLE_DEPRECATED_BEFORE=0x50f02 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/home/nico/kde6/build/baloo/src/lib -I/home/nico/kde6/src/baloo/src/lib -I/home/nico/kde6/build/baloo/src/lib/KF5Baloo_autogen/include -I/home/nico/kde6/build/baloo -I/home/nico/kde6/src/baloo -I/home/nico/kde6/build/baloo/src/codecs -I/home/nico/kde6/src/baloo/src/codecs -I/home/nico/kde6/build/baloo/src/engine -I/home/nico/kde6/src/baloo/src/engine -I/home/nico/kde6/build/baloo/src/file -I/home/nico/kde6/src/baloo/src/file -I/home/nico/kde6/build/baloo/src/dbus -I/home/nico/kde6/src/baloo/src/dbus -isystem /home/nico/qt6/include/QtCore -isystem /home/nico/qt6/include -isystem /home/nico/qt6/mkspecs/linux-g++ -isystem /home/nico/kde6/usr/include/KF6/KCoreAddons -isystem /home/nico/kde6/usr/include/KF6 -isystem /home/nico/kde6/usr/include/KF6/KFileMetaData -isystem /home/nico/kde6/usr/include/KF6/KConfig -isystem /home/nico/kde6/usr/include/KF6/KConfigCore -isystem /home/nico/qt6/include/QtDBus -isystem /home/nico/kde6/usr/include/KF6/Solid -pipe -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Werror=undef -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -pedantic -Wzero-as-null-pointer-constant -Wmissing-include-dirs -fdiagnostics-color=always -g -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=c++17 -MD -MT src/lib/CMakeFiles/KF5Baloo.dir/__/dbus/maininterface.cpp.o -MF src/lib/CMakeFiles/KF5Baloo.dir/__/dbus/maininterface.cpp.o.d -o src/lib/CMakeFiles/KF5Baloo.dir/__/dbus/maininterface.cpp.o -c /home/nico/kde6/build/baloo/src/dbus/maininterface.cpp
/home/nico/kde6/build/baloo/src/dbus/maininterface.cpp:28:10: fatal error: moc_maininterface.cpp: No such file or directory
28 | #include "moc_maininterface.cpp"
| ^~~~~~~~~~~~~~~~~~~~~~~
https://codereview.qt-project.org/c/qt/qtbase/+/421653 and https://bugreports.qt.io/browse/QTBUG-103313 seem relevant
We need to investigate whether this is a Qt bug or something that need addressing on our side