Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-02-02 12:36:25

deleted1
Member
Registered: 2021-02-02
Posts: 12

Cannot add xfce4-sensors to the panel

Hello,
I'm using Fedora 33 Xfce spin and i wanted to make my panel display CPU, GPU temperatures and since standard xfce4-sensors-plugin doesn't allow displaying GPU temp i built it from source with libXNVCtrl. I can launch sensors viewer form the menu but i cannot add it to the panel. Any clues?

Offline

#2 2021-02-02 15:50:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: Cannot add xfce4-sensors to the panel

Hello and welcome

K0SS4 wrote:

i built it from source with libXNVCtrl.

What commands did you use? Did the libraries and panel desktop file end up in the correct directories?

See the fedora 33 build log for the parameters that are used for the repo version (search "disable-static" to get to the configure line). I'm not sure you need all of those parameters, but focus first on "--prefix" and "--libdir".


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-02-02 16:07:41

deleted1
Member
Registered: 2021-02-02
Posts: 12

Re: Cannot add xfce4-sensors to the panel

Hello,

ToZ wrote:

What commands did you use? Did the libraries and panel desktop file end up in the correct directories?

I used ./configure, make and make install. I installed dependencies by looking what ./configure throws and then sudo dnf install [name of the package] and [name of the package]-devel.

Last edited by deleted1 (2021-02-02 16:10:01)

Offline

#4 2021-02-02 16:17:27

deleted1
Member
Registered: 2021-02-02
Posts: 12

Re: Cannot add xfce4-sensors to the panel

I tried ./configure with this --prefix and --libdir but when i do make install i throws me an error like this:

Making install in panel-plugin
make[1]: Entering directory '/opt/xfce4-sensors-plugin/panel-plugin'
make[2]: Entering directory '/opt/xfce4-sensors-plugin/panel-plugin'
make[2]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/share/xfce4/panel/plugins'
/usr/bin/install -c -m 644 xfce4-sensors-plugin.css '/usr/share/xfce4/panel/plugins'
/usr/bin/mkdir -p '/usr/share/xfce4/panel/plugins'
/usr/bin/install -c -m 644 xfce4-sensors-plugin.desktop '/usr/share/xfce4/panel/plugins'
/usr/bin/mkdir -p '/usr/lib/xfce4/panel/plugins'
/bin/sh ../libtool   --mode=install /usr/bin/install -c   libxfce4-sensors-plugin.la '/usr/lib/xfce4/panel/plugins'
libtool:   error: error: cannot install 'libxfce4-sensors-plugin.la' to a directory not ending in /usr/local/lib/xfce4/panel/plugins
make[2]: *** [Makefile:490: install-pluginLTLIBRARIES] Error 1
make[2]: Leaving directory '/opt/xfce4-sensors-plugin/panel-plugin'
make[1]: *** [Makefile:714: install-am] Error 2
make[1]: Leaving directory '/opt/xfce4-sensors-plugin/panel-plugin'
make: *** [Makefile:507: install-recursive] Error 1

Offline

#5 2021-02-02 16:20:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: Cannot add xfce4-sensors to the panel

K0SS4 wrote:

I used ./configure, make and make install. I installed dependencies by looking what ./configure throws and then sudo dnf install [name of the package] and [name of the package]-devel.

Where did the files end up? Specifically:
- libxfce4sensors.so (should be: /usr/lib/xfce4/panel/plugins)
- libxfce4-sensors-plugin.so (should be: /usr/lib/xfce4/modules)
- xfce4-sensors-plugin.desktop (should be: /usr/share/xfce4/panel/plugins)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2021-02-02 16:21:24

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: Cannot add xfce4-sensors to the panel

K0SS4 wrote:

I tried ./configure with this --prefix and --libdir but when i do make install i throws me an error like this:

Making install in panel-plugin
make[1]: Entering directory '/opt/xfce4-sensors-plugin/panel-plugin'
make[2]: Entering directory '/opt/xfce4-sensors-plugin/panel-plugin'
make[2]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/share/xfce4/panel/plugins'
/usr/bin/install -c -m 644 xfce4-sensors-plugin.css '/usr/share/xfce4/panel/plugins'
/usr/bin/mkdir -p '/usr/share/xfce4/panel/plugins'
/usr/bin/install -c -m 644 xfce4-sensors-plugin.desktop '/usr/share/xfce4/panel/plugins'
/usr/bin/mkdir -p '/usr/lib/xfce4/panel/plugins'
/bin/sh ../libtool   --mode=install /usr/bin/install -c   libxfce4-sensors-plugin.la '/usr/lib/xfce4/panel/plugins'
libtool:   error: error: cannot install 'libxfce4-sensors-plugin.la' to a directory not ending in /usr/local/lib/xfce4/panel/plugins
make[2]: *** [Makefile:490: install-pluginLTLIBRARIES] Error 1
make[2]: Leaving directory '/opt/xfce4-sensors-plugin/panel-plugin'
make[1]: *** [Makefile:714: install-am] Error 2
make[1]: Leaving directory '/opt/xfce4-sensors-plugin/panel-plugin'
make: *** [Makefile:507: install-recursive] Error 1

What is the actual ./configure line that you used? If you are installing to opt, you'll need to adjust your LD_LIBRARY_PATH to include this new lib path as well as link in the panel desktop file back to where the system is looking for it.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2021-02-02 16:28:08

deleted1
Member
Registered: 2021-02-02
Posts: 12

Re: Cannot add xfce4-sensors to the panel

It will be easier if you tell me where should i git clone it so i don't have to mess around with setting paths etc

Offline

#8 2021-02-02 16:36:55

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: Cannot add xfce4-sensors to the panel

K0SS4 wrote:

It will be easier if you tell me where should i git clone it so i don't have to mess around with setting paths etc

I don't have any direct experience with fedora, so take this with a grain of salt (and/or double-check on the fedora forums).

First uninstall the current xfce4-sensors-plugin (so it doesn't interfere). Then run the configure command as follows:

./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share --libdir=/usr/lib --localstatedir=/var --disable-static --disable-debug --enable-xnvctrl

...then "make" and "make install".


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2021-02-02 16:39:22

deleted1
Member
Registered: 2021-02-02
Posts: 12

Re: Cannot add xfce4-sensors to the panel

But should I leave it in /opt or should I move somewhere else?

Offline

#10 2021-02-02 19:39:12

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: Cannot add xfce4-sensors to the panel

If you leave it in /opt, you will need to adjust your library search paths and/or link the library files, modules and panel desktop file to where Xfce is looking for them. By suggesting you first uninstall the existing repo package, you won't run into any conflicts if you build.

I just tested this in a fedora 33 VM. Here is what I did:

  1. Uninstall the existing package so that it doesn't conflict

    dnf remove xfce4-sensors-plugin
  2. Get the latest release from https://docs.xfce.org/panel-plugins/xfc … st_release

  3. Install the required libraries and build tools:

    sudo dnf install xfce4-dev-tools gtk3-devel libxfce4ui-devel xfce4-panel-devel libXNVCtrl libXNVCtrl-devel
  4. Uncompress code and build as follows (note: after some research I found that fedora uses an architecture-based lib design (lib64). Using the exact configure line from the build log works):

    ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static --enable-sysfsacpi=yes --with-pathhddtemp=/usr/bin/hddtemp
  5. make and install:

    make && sudo make install

It then shows up as a plugin in the Add Items dialog.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#11 2021-02-02 20:01:27

deleted1
Member
Registered: 2021-02-02
Posts: 12

Re: Cannot add xfce4-sensors to the panel

Thanks a lot. I'll try that in 2 hours and let you know

Offline

#12 2021-02-02 20:59:11

deleted1
Member
Registered: 2021-02-02
Posts: 12

Re: Cannot add xfce4-sensors to the panel

It works perfectly. Thank You a lot, you're awesome

Offline

#13 2021-02-03 11:14:34

deleted1
Member
Registered: 2021-02-02
Posts: 12

Re: Cannot add xfce4-sensors to the panel

Hello, just one last question i promise. Can i remove the -devel packages after building it successfully?

Offline

#14 2021-02-03 11:34:11

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,950

Re: Cannot add xfce4-sensors to the panel

K0SS4 wrote:

Hello, just one last question i promise. Can i remove the -devel packages after building it successfully?

Yes you can. They are only required to build components from source.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#15 2021-02-03 12:01:23

deleted1
Member
Registered: 2021-02-02
Posts: 12

Re: Cannot add xfce4-sensors to the panel

ToZ wrote:

Yes you can. They are only required to build components from source.

Thanks <3

Offline

Board footer

Powered by FluxBB