Build fails with current Neon Unstable due to changes in KF6 Plasma library
When trying to install the Thermal Monitor plasmoid on current Neon unstable edition, I get this error:
$ cmake .
Installing in /usr/local. Run /home/odeda/cvs/thermalmonitor/prefix.sh to set the environment for thermalmonitor.
-- Could NOT find KF6Plasma (missing: KF6Plasma_DIR)
-- Could NOT find KF6Plasma: found neither KF6PlasmaConfig.cmake nor kf6plasma-config.cmake
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find KF6 (missing: Plasma)
Call Stack (most recent call first):
/usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
/usr/share/ECM/find-modules/FindKF6.cmake:93 (find_package_handle_standard_args)
CMakeLists.txt:12 (find_package)
-- Configuring incomplete, errors occurred!
This appears to be related to the Neon libkf6plasma-dev
package being changed to libplasma-dev
and the fact that the "Plasma" library is no longer under the KDE Frameworks project (or some such).
After installing libplasma-dev
I got this working with this patch:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bc127f0..8d4b3db 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,7 +9,7 @@ include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
-find_package(KF6 REQUIRED COMPONENTS
+find_package(
Plasma
)