| Summary: | C++ plasmoid template for Plasma 6 is broken | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] libplasma | Reporter: | I don't need a name <vladmak04> |
| Component: | libplasma | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | nate, notmart |
| Priority: | NOR | ||
| Version First Reported In: | 6.1 | ||
| Target Milestone: | --- | ||
| Platform: | Manjaro | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Looks like it needs porting to KF6. Plasma related templares live in libplasma repo (see https://invent.kde.org/plasma/libplasma/-/tree/master/templates) so moving there. |
SUMMARY Creating a new project from KAppTemplate or KDevelop results into a broken CMake configuration. STEPS TO REPRODUCE 1. Create a new Plasma QML/C++ Applet project 2. Try to configure CMake 3. Get an error OBSERVED RESULT CMake not configuring EXPECTED RESULT CMake configuring properly SOFTWARE/OS VERSIONS Operating System: Manjaro Linux KDE Plasma Version: 6.1.1 KDE Frameworks Version: 6.3.0 Qt Version: 6.7.2 ADDITIONAL INFORMATION: Some of my observations: find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS Plasma I18n ) Doesn't work since Plasma doesn't seem to be part of KF. find_package(Plasma) looks like a correct way to write it. set(KF6_MIN_VERSION "5.93.0") Results in an error: qt_generate_foreign_qml_types() is only available in Qt 6. Also doesn't make any sense since 5.93 is KF5? Forcing `set(QT_MAJOR_VERSION "6")` could solve the issue, but results in error, because ECMQueryQt.cmake believes it's on qt 5 and produces wrong command. Possibly related bug: (https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/432) Changing --query to just -query in ECMQueryQt.cmake actully makes the template work at this point, but this doesn't look like a good solution to me.