https://bugs.kde.org/show_bug.cgi?id=467631
Bug ID: 467631 Summary: kguiaddons fails to build with qt6/kde6 Classification: Frameworks and Libraries Product: frameworks-kguiaddons Version: unspecified Platform: Debian testing OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kdelibs-b...@kde.org Reporter: jingxuan....@gmail.com Target Milestone: --- SUMMARY When running "kdesrc-build frameworks" (after: changing all configs to target kf6-qt6 and building qt6 from source), compilation fails (even though dependency checks seem to succeed). STEPS TO REPRODUCE 1. On debian testing, setup kdesrc-build according to: https://community.kde.org/Get_Involved/development and modify configs according to (in order to build qt6 & target qt6/kde6): https://community.kde.org/Get_Involved/development/More#Build_Qt6_using_kdesrc-build 2. Run "kdesrc-build qt6-set" to build and install qt6. 3. Reconfigure kdesrc-buildrc to build kf6 and plasma (instead of qt6) 4. Run "kdesrc-build frameworks" OBSERVED RESULT At step 11/79 of kdesrc-build frameworks ("Building kguiaddons from frameworks (11/79)") , kdesrc-build outputs "Compiling... failed (after 1 second) kguiaddons didn't build, stopping here.". Inspecting the error.log output of kguiaddons gives us: # kdesrc-build running: 'gmake' '-j' '16' # from directory: /home/jj/kde/build/kguiaddons [ 0%] Automatic MOC for target kgeourihandlertest [ 0%] Automatic MOC for target kde-geo-uri-handler [ 0%] Automatic MOC for target KF6GuiAddons [ 0%] Built target kgeourihandlertest_autogen [ 0%] Built target kde-geo-uri-handler_autogen [ 13%] Built target KF6GuiAddons_autogen [ 16%] Built target kgeourihandlertest [ 20%] Built target kde-geo-uri-handler [ 21%] Building CXX object src/CMakeFiles/KF6GuiAddons.dir/util/kmodifierkeyinfoprovider_xcb.cpp.o /home/jj/kde/src/kguiaddons/src/util/kmodifierkeyinfoprovider_xcb.cpp: In function ‘Display* display()’: /home/jj/kde/src/kguiaddons/src/util/kmodifierkeyinfoprovider_xcb.cpp:58:55: error: ‘QX11Application’ is not a member of ‘QNativeInterface’ 58 | return qGuiApp->nativeInterface<QNativeInterface::QX11Application>()->display(); | ^~~~~~~~~~~~~~~ /home/jj/kde/src/kguiaddons/src/util/kmodifierkeyinfoprovider_xcb.cpp:58:71: error: no matching function for call to ‘QGuiApplication::nativeInterface<<expression error> >()’ 58 | return qGuiApp->nativeInterface<QNativeInterface::QX11Application>()->display(); | ^ In file included from /home/jj/kde/usr/include/QtCore/qcoreapplication.h:16, from /home/jj/kde/usr/include/QtGui/qguiapplication.h:8, from /home/jj/kde/usr/include/QtGui/QGuiApplication:1, from /home/jj/kde/src/kguiaddons/src/util/kmodifierkeyinfoprovider_xcb.cpp:11: /home/jj/kde/usr/include/QtGui/qguiapplication.h:140:5: note: candidate: ‘template<class NativeInterface, class TypeInfo, class BaseType, typename std::enable_if<TypeInfo::isCompatibleWith<QGuiApplication>, bool>::type <anonymous> > NativeInterface* QGuiApplication::nativeInterface() const’ 140 | QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(QGuiApplication) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/jj/kde/usr/include/QtGui/qguiapplication.h:140:5: note: template argument deduction/substitution failed: /home/jj/kde/src/kguiaddons/src/util/kmodifierkeyinfoprovider_xcb.cpp:58:71: error: template argument 1 is invalid 58 | return qGuiApp->nativeInterface<QNativeInterface::QX11Application>()->display(); | ^ gmake[2]: *** [src/CMakeFiles/KF6GuiAddons.dir/build.make:610: src/CMakeFiles/KF6GuiAddons.dir/util/kmodifierkeyinfoprovider_xcb.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:269: src/CMakeFiles/KF6GuiAddons.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2 EXPECTED RESULT Kguiaddons successfully builds with no errors. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Debian Testing with kdesrc-build targeting kf6-qt6 (Latest Master/Main branch) ADDITIONAL INFORMATION Attempts to use the default qt6 packages shipped by debian testing have also failed when using "kdesrc-build frameworks" at kwayland. It seems that qt6 as shipped by debian testing is not complete for development (even if all development packages are installed). -- You are receiving this mail because: You are watching all bug changes.