Open milkytwix opened 3 months ago
Waiting for Plasma six to come out on my gentoo box, then I'll try (no garantees I'll succeed though...) to port it when I find some time.
Great news, tyvm sir!
Have a look here :
Man, I love you! Kudos!
Just a short question: In the old version of the thermal monitor applet the name of the sensor was on top, and the value below - the new one has it vice versa. Is this configurable?
Yes select is primary (aka top) lable is "Name" or "Fan Speed" That one of the "Appearance" configuration options I added. Try the options to figure them out.
Heya, I cannot install thermal-monitor and cannot open issues over there, so I try to write it down here - apologies if this is the wrong approach. The error I get is the following (during build time ofc):
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in CMakeLists.txt:
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is GNU 14.1.1
-- The CXX compiler identification is GNU 14.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Error at CMakeLists.txt:6 (find_package):
Could not find a package configuration file provided by "ECM" (requested
version 0.0.11) with any of the following names:
ECMConfig.cmake
ecm-config.cmake
Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
to a directory containing one of the above files. If "ECM" provides a
separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
Any idea how to fix this?
did you install all the dependencies ?
cmake, make, extra-cmake-modules, plasma-dev (or plasma-framework-devel or whatever your distro calls it)
Well, after I did that, I build successfully an unsupported widget. I'd rather built nothing at all, but download via KDE is not possible, because the fork has no other name. So still waiting. Frustrating. Thanks nevertheless for your work, love your widgets!
other solution:
cd package
zip -r ../../plasma-applet-thermal-monitor.plasmoid metadata.json contents/
and then just install from kde by selecting the plasma-applet-thermal-monitor.plasmoid file
Gives also an error:
cd package
ls -ali
contents
metadata.desktop
zip -r ../../plasma-applet-thermal-monitor.plasmoid metadata.json contents/
zip warning: name not matched: metadata.json
adding: contents/ (stored 0%)
adding: contents/code/ (stored 0%)
adding: contents/code/config-utils.js (deflated 40%)
adding: contents/code/model-utils.js (deflated 73%)
adding: contents/code/temperature-utils.js (deflated 61%)
adding: contents/config/ (stored 0%)
adding: contents/config/config.qml (deflated 57%)
adding: contents/config/main.xml (deflated 73%)
adding: contents/fonts/ (stored 0%)
adding: contents/fonts/fontawesome-webfont-4.3.0.ttf (deflated 41%)
adding: contents/images/ (stored 0%)
adding: contents/images/thermal-monitor.svg (deflated 78%)
adding: contents/ui/ (stored 0%)
adding: contents/ui/TemperatureItem.qml (deflated 61%)
adding: contents/ui/config/ (stored 0%)
adding: contents/ui/config/ConfigAppearance.qml (deflated 82%)
adding: contents/ui/config/ConfigMisc.qml (deflated 74%)
adding: contents/ui/config/ConfigTemperatures.qml (deflated 82%)
adding: contents/ui/main.qml (deflated 74%)
And then there is no plasmoid file:
tree
.
├── build
│ ├── CMakeCache.txt
│ ├── CMakeFiles
│ │ ├── 3.29.3
│ │ │ ├── CMakeCCompiler.cmake
│ │ │ ├── CMakeCXXCompiler.cmake
│ │ │ ├── CMakeDetermineCompilerABI_C.bin
│ │ │ ├── CMakeDetermineCompilerABI_CXX.bin
│ │ │ ├── CMakeSystem.cmake
│ │ │ ├── CompilerIdC
│ │ │ │ ├── a.out
│ │ │ │ ├── CMakeCCompilerId.c
│ │ │ │ └── tmp
│ │ │ └── CompilerIdCXX
│ │ │ ├── a.out
│ │ │ ├── CMakeCXXCompilerId.cpp
│ │ │ └── tmp
│ │ ├── 3.29.5
│ │ │ ├── CMakeCCompiler.cmake
│ │ │ ├── CMakeCXXCompiler.cmake
│ │ │ ├── CMakeDetermineCompilerABI_C.bin
│ │ │ ├── CMakeDetermineCompilerABI_CXX.bin
│ │ │ ├── CMakeSystem.cmake
│ │ │ ├── CompilerIdC
│ │ │ │ ├── a.out
│ │ │ │ ├── CMakeCCompilerId.c
│ │ │ │ └── tmp
│ │ │ └── CompilerIdCXX
│ │ │ ├── a.out
│ │ │ ├── CMakeCXXCompilerId.cpp
│ │ │ └── tmp
│ │ ├── cmake.check_cache
│ │ ├── CMakeConfigureLog.yaml
│ │ ├── CMakeDirectoryInformation.cmake
│ │ ├── CMakeRuleHashes.txt
│ │ ├── CMakeScratch
│ │ ├── fetch-translations.dir
│ │ │ ├── build.make
│ │ │ ├── cmake_clean.cmake
│ │ │ ├── compiler_depend.make
│ │ │ ├── compiler_depend.ts
│ │ │ ├── DependInfo.cmake
│ │ │ └── progress.make
│ │ ├── KF5Config_QCH.dir
│ │ │ ├── build.make
│ │ │ ├── cmake_clean.cmake
│ │ │ ├── compiler_depend.make
│ │ │ ├── compiler_depend.ts
│ │ │ ├── DependInfo.cmake
│ │ │ └── progress.make
│ │ ├── KF5CoreAddons_QCH.dir
│ │ │ ├── build.make
│ │ │ ├── cmake_clean.cmake
│ │ │ ├── compiler_depend.make
│ │ │ ├── compiler_depend.ts
│ │ │ ├── DependInfo.cmake
│ │ │ └── progress.make
│ │ ├── KF5Package_QCH.dir
│ │ │ ├── build.make
│ │ │ ├── cmake_clean.cmake
│ │ │ ├── compiler_depend.make
│ │ │ ├── compiler_depend.ts
│ │ │ ├── DependInfo.cmake
│ │ │ └── progress.make
│ │ ├── KF5Plasma_QCH.dir
│ │ │ ├── build.make
│ │ │ ├── cmake_clean.cmake
│ │ │ ├── compiler_depend.make
│ │ │ ├── compiler_depend.ts
│ │ │ ├── DependInfo.cmake
│ │ │ └── progress.make
│ │ ├── KF5Service_QCH.dir
│ │ │ ├── build.make
│ │ │ ├── cmake_clean.cmake
│ │ │ ├── compiler_depend.make
│ │ │ ├── compiler_depend.ts
│ │ │ ├── DependInfo.cmake
│ │ │ └── progress.make
│ │ ├── KF5WindowSystem_QCH.dir
│ │ │ ├── build.make
│ │ │ ├── cmake_clean.cmake
│ │ │ ├── compiler_depend.make
│ │ │ ├── compiler_depend.ts
│ │ │ ├── DependInfo.cmake
│ │ │ └── progress.make
│ │ ├── Makefile2
│ │ ├── Makefile.cmake
│ │ ├── org.kde.thermalMonitor-plasmoids-metadata-json.dir
│ │ │ ├── build.make
│ │ │ ├── cmake_clean.cmake
│ │ │ ├── compiler_depend.make
│ │ │ ├── compiler_depend.ts
│ │ │ ├── DependInfo.cmake
│ │ │ └── progress.make
│ │ ├── pkgRedirects
│ │ ├── progress.marks
│ │ ├── TargetDirectories.txt
│ │ └── uninstall.dir
│ │ ├── build.make
│ │ ├── cmake_clean.cmake
│ │ ├── compiler_depend.make
│ │ ├── compiler_depend.ts
│ │ ├── DependInfo.cmake
│ │ └── progress.make
│ ├── cmake_install.cmake
│ ├── CTestTestfile.cmake
│ ├── ecm_uninstall.cmake
│ ├── install_manifest.txt
│ ├── Makefile
│ ├── org.kde.thermalMonitor.appdata.xml
│ ├── org.kde.thermalMonitor-plasmoids-metadata.json
│ ├── prefix.sh
│ └── translations
│ ├── CMakeFiles
│ │ ├── CMakeDirectoryInformation.cmake
│ │ ├── progress.marks
│ │ └── translations.dir
│ │ ├── build.make
│ │ ├── cmake_clean.cmake
│ │ ├── compiler_depend.make
│ │ ├── compiler_depend.ts
│ │ ├── DependInfo.cmake
│ │ └── progress.make
│ ├── cmake_install.cmake
│ ├── CTestTestfile.cmake
│ ├── Makefile
│ ├── plasma_applet_org.kde.thermalMonitor_cs.gmo
│ ├── plasma_applet_org.kde.thermalMonitor_de.gmo
│ ├── plasma_applet_org.kde.thermalMonitor_el.gmo
│ ├── plasma_applet_org.kde.thermalMonitor_en.gmo
│ ├── plasma_applet_org.kde.thermalMonitor_es.gmo
│ ├── plasma_applet_org.kde.thermalMonitor_fr.gmo
│ ├── plasma_applet_org.kde.thermalMonitor_pl.gmo
│ ├── plasma_applet_org.kde.thermalMonitor_ru.gmo
│ ├── plasma_applet_org.kde.thermalMonitor_sr.gmo
│ ├── plasma_applet_org.kde.thermalMonitor_sr@ijekavian.gmo
│ ├── plasma_applet_org.kde.thermalMonitor_sr@ijekavianlatin.gmo
│ └── plasma_applet_org.kde.thermalMonitor_sr@latin.gmo
├── CMakeLists.txt
├── docs
│ └── font-awesome-4.3.0-reference.png
├── LICENSE
├── package
│ ├── contents
│ │ ├── code
│ │ │ ├── config-utils.js
│ │ │ ├── model-utils.js
│ │ │ └── temperature-utils.js
│ │ ├── config
│ │ │ ├── config.qml
│ │ │ └── main.xml
│ │ ├── fonts
│ │ │ └── fontawesome-webfont-4.3.0.ttf
│ │ ├── images
│ │ │ └── thermal-monitor.svg
│ │ └── ui
│ │ ├── config
│ │ │ ├── ConfigAppearance.qml
│ │ │ ├── ConfigMisc.qml
│ │ │ └── ConfigTemperatures.qml
│ │ ├── main.qml
│ │ └── TemperatureItem.qml
│ └── metadata.desktop
├── README.md
└── translations
├── CMakeLists.txt
├── Messages.sh
├── po
│ ├── plasma_applet_org.kde.thermalMonitor_cs.po
│ ├── plasma_applet_org.kde.thermalMonitor_de.po
│ ├── plasma_applet_org.kde.thermalMonitor_el.po
│ ├── plasma_applet_org.kde.thermalMonitor_en.po
│ ├── plasma_applet_org.kde.thermalMonitor_es.po
│ ├── plasma_applet_org.kde.thermalMonitor_fr.po
│ ├── plasma_applet_org.kde.thermalMonitor_pl.po
│ ├── plasma_applet_org.kde.thermalMonitor.pot
│ ├── plasma_applet_org.kde.thermalMonitor_ru.po
│ ├── plasma_applet_org.kde.thermalMonitor_sr@ijekavianlatin.po
│ ├── plasma_applet_org.kde.thermalMonitor_sr@ijekavian.po
│ ├── plasma_applet_org.kde.thermalMonitor_sr@latin.po
│ └── plasma_applet_org.kde.thermalMonitor_sr.po
├── TRANSLATORS_README
└── update-translations.sh
38 directories, 146 files
Sorry to be so cumbersome :(
you are using the plasma 5 version of the thermalmonitor plasmoid that has a desktop.metadatafile... use the plasma 6 version from https://invent.kde.org/dwardor/thermalmonitor
I tried to, but the install description is just not up to date and/or missleading and/or I am doing something completely wrong. Base system is EndevourOS (basically Arch), I tried to install all requirements and afterwards install the the builded thingy and then add it via KDE gui.
Maybe it helps when I write down what I did, I tried to follow first what is written in the readme under https://invent.kde.org/dwardor/thermalmonitor
What I did in my first try:
cd ~/git
git clone https://invent.kde.org/dwardor/thermalmonitor.git
cd thermalmonitor/
cmake -B build && sudo make -C build install
Which gives me the error
make: *** No rule to make target 'build'. Stop.
Please note that I adopted the line in the Readme.md, there is still the version of olib linked, which I changed. Next I tried kdesrc build, again starting from zero in my ~/git directory:
git clone https://invent.kde.org/dwardor/thermalmonitor.git
cmake -B build -DCMAKE_PREFIX_PATH="~/kde/usr" -DCMAKE_INSTALL_PREFIX="~/kde/usr"
CMake Error: The source directory "~/git" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
This did not solve it, so I did read a bit more on the github page https://github.com/dwardor/plasma-applet-fanspeed-monitor and - especially after you hinted me towards it - installed the dependencies (reading is hard sometimes...) first via:
yay -S cmake make extra-cmake-modules
there is nothing like a plasma-framewrok-devel package for plasma6 - I installed the one for plasma5:
yay -S plasma-framework5
Afterwards I went with
git clone --depth=1 https://github.com/dwardor/plasma-applet-fanspeed-monitor
cd plasma-applet-fanspeed-monitor/
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
sudo make install
Which lead me to the "unsupported widget" - bummer.
mkdir build
cmake -B build && sudo make -C build install
Still the same result: Unsupported Widget :(
Full stack:
Cloning into 'plasma-applet-fanspeed-monitor'...
remote: Enumerating objects: 38, done.
remote: Counting objects: 100% (38/38), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 38 (delta 2), reused 24 (delta 0), pack-reused 0
Receiving objects: 100% (38/38), 810.61 KiB | 12.10 MiB/s, done.
Resolving deltas: 100% (2/2), done.
$ cd plasma-applet-fanspeed-monitor/
$ mkdir build
$ cmake -B build && sudo make -C build install
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in CMakeLists.txt:
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is GNU 14.1.1
-- The CXX compiler identification is GNU 14.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Installing in the same prefix as Qt, adopting their path scheme.
-- Setting build type to 'Debug' as none was specified.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
CMake Warning at /usr/lib/cmake/KF5Package/KF5PackageMacros.cmake:46 (message):
Providing metadata with .desktop files is deprecated. Please run
"desktoptojson -i
/home/milkytwix/git/plasma-applet-fanspeed-monitor/package/metadata.desktop"
to convert the file to json and remove the desktop file
Call Stack (most recent call first):
/usr/lib/cmake/KF5Plasma/KF5PlasmaMacros.cmake:36 (kpackage_install_package)
CMakeLists.txt:17 (plasma_install_package)
CMake Warning at /usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsMacros.cmake:37 (message):
kcoreaddons_desktop_to_json is deprecated and will be removed in KF6.
Convert the desktop files to JSON in source using the desktoptojson
executable
Call Stack (most recent call first):
/usr/lib/cmake/KF5Package/KF5PackageMacros.cmake:49 (kcoreaddons_desktop_to_json)
/usr/lib/cmake/KF5Plasma/KF5PlasmaMacros.cmake:36 (kpackage_install_package)
CMakeLists.txt:17 (plasma_install_package)
-- Configuring done (1.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/milkytwix/git/plasma-applet-fanspeed-monitor/build
make: Entering directory '/home/milkytwix/git/plasma-applet-fanspeed-monitor/build'
[100%] Generating org.kde.fanspeedMonitor-plasmoids-metadata.json
About to parse service type file "/usr/share/kservicetypes5/plasma-applet.desktop"
Found property definition "X-Plasma-API" with type "QString"
Found property definition "X-Plasma-RootPath" with type "QString"
Found property definition "X-Plasma-MainScript" with type "QString"
Found property definition "X-Plasma-ContainmentType" with type "QString"
Found property definition "X-Plasma-DropMimeTypes" with type "QStringList"
Found property definition "X-Plasma-DropUrlPatterns" with type "QStringList"
Found property definition "X-Plasma-NotificationArea" with type "QString"
Found property definition "X-Plasma-NotificationAreaCategory" with type "QString"
Found property definition "X-Plasma-DBusActivationService" with type "QString"
Found property definition "X-KDE-ParentApp" with type "QString"
Found property definition "X-Plasma-Provides" with type "QStringList"
Found property definition "X-Plasma-PreloadWeight" with type "int"
Found property definition "X-Plasma-ConfigPlugins" with type "QStringList"
Found property definition "X-Plasma-StandAloneApp" with type "bool"
Found property definition "X-Plasma-RequiredExtensions" with type "QStringList"
Found property definition "NoDisplay" with type "bool"
Unknown property type for key "X-Plasma-RemoteLocation" -> falling back to string
Generated "/home/milkytwix/git/plasma-applet-fanspeed-monitor/build/org.kde.fanspeedMonitor-plasmoids-metadata.json"
[100%] Built target org.kde.fanspeedMonitor-plasmoids-metadata-json
[100%] Built target translations
Install the project...
-- Install configuration: "Debug"
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/code
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/code/config-utils.js
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/code/fanspeed-utils.js
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/code/model-utils.js
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/config
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/config/config.qml
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/config/main.xml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/fonts
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/fonts/fontawesome-webfont-4.3.0.ttf
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/images
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/images/fan-Icon-made-by-Freepik-from-www.flaticon.com.svg
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/ui
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/ui/FanspeedItem.qml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/ui/config
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/ui/config/ConfigAppearance.qml
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/ui/config/ConfigFanspeeds.qml
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/ui/config/ConfigMisc.qml
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/contents/ui/main.qml
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/metadata.desktop
-- Installing: /usr/share/plasma/plasmoids/org.kde.fanspeedMonitor/metadata.json
-- Installing: /usr/share/metainfo/org.kde.fanspeedMonitor.appdata.xml
-- Installing: /usr/share/kservices5/plasma-applet-org.kde.fanspeedMonitor.desktop
-- Installing: /usr/share/locale/en/LC_MESSAGES/plasma_applet_org.kde.fanspeedMonitor.mo
-- Installing: /usr/share/locale/fr/LC_MESSAGES/plasma_applet_org.kde.fanspeedMonitor.mo
make: Leaving directory '/home/milkytwix/git/plasma-applet-fanspeed-monitor/build'
Is this widget still actively maintained? If so, can we expect a Plasma6 compatible version?