You are not logged in.
Pages: 1
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
Hello and welcome
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
Hello,
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
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
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
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
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
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
But should I leave it in /opt or should I move somewhere else?
Offline
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:
Uninstall the existing package so that it doesn't conflict
dnf remove xfce4-sensors-plugin
Get the latest release from https://docs.xfce.org/panel-plugins/xfc … st_release
Install the required libraries and build tools:
sudo dnf install xfce4-dev-tools gtk3-devel libxfce4ui-devel xfce4-panel-devel libXNVCtrl libXNVCtrl-devel
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
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
Thanks a lot. I'll try that in 2 hours and let you know
Offline
It works perfectly. Thank You a lot, you're awesome
Offline
Hello, just one last question i promise. Can i remove the -devel packages after building it successfully?
Offline
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
Yes you can. They are only required to build components from source.
Thanks <3
Offline
Pages: 1
[ Generated in 0.011 seconds, 8 queries executed - Memory usage: 612.48 KiB (Peak: 629.32 KiB) ]