Lurkki14 / tuxclocker

Qt overclocking tool for GNU/Linux
GNU General Public License v3.0
777 stars 31 forks source link

Make not finding nvidia libs in an AMD installation on Fedora. #52

Open AkioET opened 1 year ago

AkioET commented 1 year ago

I'm getting errors when trying to run make because it can't find an nvidia library even though I'm installing on an AMD system. I've tried finding the missing lib to install but I can't seem to find it on Fedora 36. Below is the Make log.

g++ -Wl,-O1 -o tuxclocker main.o mainwindow.o qcustomplot.o editprofile.o newprofile.o plotwidget.o nvidia.o qrc_resources.o moc_mainwindow.o moc_qcustomplot.o moc_editprofile.o moc_newprofile.o moc_plotwidget.o moc_nvidia.o -lXext -lXNVCtrl -lX11 -lnvidia-ml /usr/lib64/libQt5PrintSupport.so /usr/lib64/libQt5Widgets.so /usr/lib64/libQt5Gui.so /usr/lib64/libQt5Core.so -lGL -lpthread
/usr/bin/ld: cannot find -lnvidia-ml collect2: error: ld returned 1 exit status make: *** [Makefile:182: tuxclocker] Error 1

leigh123linux commented 1 year ago

nvidia-ml is provided by the xorg-x11-drv-nvidia-cuda-libs package from rpmfusion

pallaswept commented 1 year ago

nvidia-ml is provided by the xorg-x11-drv-nvidia-cuda-libs package from rpmfusion

One shouldn't really need to install nvidia libs to build for AMD though. And the build scripts build the AMD plugin without any reference to the nvidia libs. And there's nothing in the compilation instructions about running make. This issue is quite old, so perhaps things have changed, but the solution is not to install nvidia libraries, it's just to build it according to those instructions, and it will only build the AMD plugin for this user with AMD hardware and drivers.