dwardor / plasma-applet-fanspeed-monitor

Plasma 5 Fan Speed Monitor Applet
GNU General Public License v2.0
8 stars 2 forks source link

cmake error on build attempt #8

Closed ihtruelsen closed 2 years ago

ihtruelsen commented 2 years ago

When I run cmake .. -DCMAKE_INSTALL_PREFIX=/usr from the build directory I get the following:

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 Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! See also "/home/ian/plasma-applet-fanspeed-monitor/build/CMakeFiles/CMakeOutput.log"

The output log is as follows: The system is: Linux - 5.13.19-2-MANJARO - x86_64

I must be missing some dependency, but I am not sure what it would be.

dwardor commented 2 years ago

Do you have make installed ?

ihtruelsen commented 2 years ago

I apparently did not, though I installed cmake and thought this would pull it in. Anyway, I have make installed now, but I have a different error:

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 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! See also "/home/ian/plasma-applet-fanspeed-monitor/build/CMakeFiles/CMakeOutput.log".

See also "/home/ian/plasma-applet-fanspeed-monitor/build/CMakeFiles/CMakeError.log".

I am attaching the output and error logs.

Thanks for the help.

On Wed, 10 Nov 2021 at 14:20, dwardor @.***> wrote:

Do you have make installed ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dwardor/plasma-applet-fanspeed-monitor/issues/8#issuecomment-965799973, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESOCVD2NLJNKWR3S7UPECLULLV37ANCNFSM5HW4M2QA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Ian Truelsen VA7IHT s/v Matchbox (Gemini 105MC #870)

dwardor commented 2 years ago

see https://github.com/dwardor/plasma-applet-fanspeed-monitor/issues/1 you are missing extra-cmake-modules package

ihtruelsen commented 2 years ago

That got it. Thanks.

One final thing: It does not show my GPU fan and there does not seem to be any way to add it. My card is an Nvidai geforce 1660Ti and the fan shows up in psensors as NVIDIA 0 fan rpm. There is one in the fan speed monitor that is called nvidia-smi but it shows as off and in psensors it shows 1000rpm.

Is there any way to add this sensor in?

On Thu, 11 Nov 2021 at 01:31, dwardor @.***> wrote:

see #1 https://github.com/dwardor/plasma-applet-fanspeed-monitor/issues/1 you are missing extra-cmake-modules package

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dwardor/plasma-applet-fanspeed-monitor/issues/8#issuecomment-966147046, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESOCVAVEVPJZCDWSWW7DP3ULOENLANCNFSM5HW4M2QA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Ian Truelsen VA7IHT s/v Matchbox (Gemini 105MC #870)

dwardor commented 2 years ago

what does nvidia-smi --query-gpu=fan.speed --format=csv,noheader return ?

ihtruelsen commented 2 years ago

nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader

31

On Fri, 12 Nov 2021 at 11:47, dwardor @.***> wrote:

what does nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader return ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dwardor/plasma-applet-fanspeed-monitor/issues/8#issuecomment-967420725, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESOCVBKVZIUELEZJVDNUJDULVVODANCNFSM5HW4M2QA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Ian Truelsen VA7IHT s/v Matchbox (Gemini 105MC #870)

dwardor commented 2 years ago

and nvidia-smi --query-gpu=fan.speed --format=csv,noheader ?

ihtruelsen commented 2 years ago

32 %

On Sat, 13 Nov 2021 at 01:14, dwardor @.***> wrote:

and nvidia-smi --query-gpu=fan.speed --format=csv,noheader ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dwardor/plasma-applet-fanspeed-monitor/issues/8#issuecomment-967890924, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESOCVAOLDZKH5J5VEMDG7LULYT7PANCNFSM5HW4M2QA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Ian Truelsen VA7IHT s/v Matchbox (Gemini 105MC #870)

dwardor commented 2 years ago

32 %

I think I figured it out... going to push an update I hope you can test and come back to me...

2 options:

  1. see Nvidia GPU fan speed in %
  2. provide fanspeedNvidiaGPUMaxRpm = speed at 100% to get speed in rpm instead of %