Frogging-Family / nvidia-all

Nvidia driver latest to 396 series AIO installer
788 stars 69 forks source link

XNVCtrl library is not installed correctly. #47

Open BlueGoliath opened 3 years ago

BlueGoliath commented 3 years ago

XNVCtrl, the library for nvidia-settings is not installed to /usr/lib64. As a result, any library/app that attempts to load the library, despite nvidia-settings working correctly, will fail.

If nvidia-settings-tkg is replaced via:

sudo pacman -S nvidia-settings

then the XNVCtrl library is placed in /usr/lib64.

Tk-Glitch commented 3 years ago

That library isn't supposed to be installed in /usr/lib64. Arch is patching it to have a shared version of it, which is not default. I'm fine porting the change over though.

Tk-Glitch commented 3 years ago

Also, it isn't distributed in the nvidia driver packages and requires compiling it from source.

BlueGoliath commented 3 years ago

Thanks, much appreciated.

Ubuntu also has this patch, strangely enough. I always thought it was shared since it has decently documented headers(located in /usr/include/NVCtrl).

anonish commented 3 years ago

isnt there a package already in extra for this? extra/libxnvctrl 465.31-1

i'm also not seeing that library as being part of nvidia-settings at all

yaourt -Ql nvidia-settings
nvidia-settings /usr/
nvidia-settings /usr/bin/
nvidia-settings /usr/bin/nvidia-settings
nvidia-settings /usr/lib/
nvidia-settings /usr/lib/libnvidia-gtk3.so.465.31
nvidia-settings /usr/share/
nvidia-settings /usr/share/applications/
nvidia-settings /usr/share/applications/nvidia-settings.desktop
nvidia-settings /usr/share/man/
nvidia-settings /usr/share/man/man1/
nvidia-settings /usr/share/man/man1/nvidia-settings.1.gz
nvidia-settings /usr/share/pixmaps/
nvidia-settings /usr/share/pixmaps/nvidia-settings.png
BlueGoliath commented 3 years ago

According to Pamac, libxnvctrl is a dependency of nvidia-settings. Also, it isn't the same version as the driver(470 .42.01 vs 465.31).

anonish commented 3 years ago

According to Pamac, libxnvctrl is a dependency of nvidia-settings. Also, it isn't the same version as the driver(470 .42.01 vs 465.31).

i see what you mean. weird that it's a separate package, but apparently (in arch anyway) it's nvidia-settings + libxnvctrl in the same PKGBUILD. I was able to build to current beta version (470.42.01) by changing a couple lines ont he PKGBUILD (and ignoring the nvidia-settings package that it also builds). the patch on arch seems to relate to installing the shared version of the library: https://github.com/archlinux/svntogit-packages/blob/packages/nvidia-settings/trunk/libxnvctrl_so.patch