View Single Post
Old 02-08-07, 10:43 AM   #9
SirDice
Registered User
 
Join Date: Jul 2005
Posts: 79
Default Re: FreeBSD 7.0 Current with Xorg 7rc3 Modular and nvidia driver.

Quote:
Originally Posted by roddierod
So, to get the nvidia-driver to install nividia_drv.so into /usr/local/lib/xorg/modules/drivers I had to edit the Makefile found in the /Nvidia-FreeBSD-x86-1.0-9746/x11/driver. I had to change the line

DRIVERDIR= ${X11BASE}/lib/modules/drivers

to

DRIVERDIR= ${x11BASE}/lib/xorg/modules/drivers


to get the nvidia driver to build and install otherwise it just errored on the install.
mkdir -p /usr/lib/modules/drivers fixes the error. It shouldn't matter where the drivers get installed. As long as the modulepaths are set correctly.

Deinstall the driver.. Make sure there are no XXX-* and nvidia related files left behind in $X11BASE/lib/modules/* and/or $X11BASE/lib/xorg/modules/*.
Add X11BASE=/usr/local to /etc/make.conf (this is to make sure all applications that use X11BASE will install in /usr/local). Use the freebsd port.. cd /usr/ports/x11/nvidia-driver && make all install clean Make sure your portstree is up2date though..
SirDice is offline   Reply With Quote