View previous topic :: View next topic |
Author |
Message |
dmarien n00b
Joined: 15 Jul 2002 Posts: 22 Location: Kitchener Ontario
|
Posted: Mon Jul 22, 2002 1:23 pm Post subject: nVidia Driver Concerns |
|
|
Hello.
I've been using Gentoo for about a week. I've been in love with the portage system, as I was previously doing everything by hand under Slackware.
Anyway, I've installed X, KDE, Mozilla, and a number of large open source projects. However, the nVidia drivers/kernel modules (whatever) -- failed me.
I tried
that spit out:
Code: |
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.0.1... yes
checking for SDL_JoystickOpen... yes
checking for Mix_OpenAudio in -lSDL_mixer... yes
checking for GL library... yes
checking for glXGetProcAddressARB... yes
checking for GLU library... yes
checking for GL/gl.h... yes
checking for GL/glx.h... no
configure: error: Cannot find GL/glx.h
|
Now, isn't that a dependancy? Isn't emerge supposed to handle that automatically?
I just didn't feel like putting much effort into it, so I tried typing:
obviously nothing happened.
again, didn't find a package named that.
better! it had found a package named opengl, and it was being downloaded with XFree86 4.2.0 (again), but ah well. I waited the 6 hours for it to finish compiling, then tried tuxracer again, and it crapped out on GL/glx.h again.
I looked under the Desktop guide on www.gentoo.org, and saw that there was some good documentation regarding nVidia and their drivers. Great, I started to follow those intructions since I have an Elsa Gladiac (gForce 2).
Code: | emerge media-video/nvidia-kernel media-video/nvidia-glx |
crapped out. with this message:
Code: |
root@glacier: pts/0: 1 files 44Kb -> emerge media-video/nvidia-glx
Calculating dependencies ...done!
>>> emerge media-video/nvidia-kernel-1.0.2960 to /
>>> md5 ;-) NVIDIA_kernel-1.0-2960.tar.gz
>>> Unpacking source...
>>> Unpacking NVIDIA_kernel-1.0-2960.tar.gz
>>> Source unpacked.
rm -f nv.o os-interface.o os-registry.o Module-linux nv_compiler.h *.d NVdriver
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
nv.c:22: linux/modversions.h: No such file or directory
In file included from /usr/src/linux/include/linux/module.h:11,
from nv.c:25:
/usr/src/linux/include/linux/spinlock.h:245: warning: `read_unlock' redefined
/usr/include/asm/spinlock.h:204: warning: this is the location of the previous definition
/usr/src/linux/include/linux/spinlock.h:247: warning: `write_unlock' redefined
/usr/include/asm/spinlock.h:205: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/poll.h:10,
from nv-linux.h:27,
from nv.c:27:
/usr/src/linux/include/linux/mm.h:430: warning: `page_address' redefined
/usr/include/asm/pgtable.h:270: warning: this is the location of the previous definition
make: *** [nv.o] Error 1
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -47, Exitcode 2
!!! (no error message)
!!! emerge aborting on /usr/portage/media-video/nvidia-kernel/nvidia-kernel-1.0.2960.ebuild .
Mon Jul 22 05:26:41 EDT 2002
~
root@glacier: pts/0: 1 files 44Kb ->
|
Now, I know there's been some serious discussion regarding nVidia on this forum, but the search function is clunky at best, and I would rather spend 20 minutes documenting my troubles on this board then finding the answer after an hour of searching trial/error.
If someone can please give me some assistence, when I am running the nVidia kernel modules, I will thouroughly document the process, and submit an ammendment to the "Desktop Guide' on www.gentoo.org.
Thanks! _________________ dmarien |
|
Back to top |
|
|
Zu` l33t
Joined: 26 May 2002 Posts: 716 Location: BE
|
Posted: Mon Jul 22, 2002 1:44 pm Post subject: |
|
|
When installing nvidia drivers, they look for kernel headers in /usr/src/linux
Either you deleted that directory after you compiled, or you did something wrong.
Anyway, redownload kernel sources if needed, copy your .config file in /usr/src/linux and do
Code: |
make menuconfig (and exit)
make dep clean
|
IIRC, that should be enough, just for the headers.
Also, make sure you have compiled your kernel with support for modules, since the NVdriver is loaded as a module.
Greets & good luck. |
|
Back to top |
|
|
Zu` l33t
Joined: 26 May 2002 Posts: 716 Location: BE
|
Posted: Mon Jul 22, 2002 1:46 pm Post subject: |
|
|
On a side note:
You can just do
Code: |
emerge nvidia-kernel nvidia-glx
|
No need anymore to include sub folders, that's not needed anymore since some version of portage. |
|
Back to top |
|
|
dek l33t
Joined: 16 May 2002 Posts: 657 Location: Germany
|
Posted: Mon Jul 22, 2002 1:54 pm Post subject: |
|
|
Check where /usr/src/linux is pointing at. If you switched kernels (maybe from vanilla to gentoo sources), you have to change the symlink to point to your actual kernel. AFAIK this isn't done by portage itself.
In my case it is: /usr/src/linux -> linux-2.4.19-gentoo-r7/ |
|
Back to top |
|
|
leej Apprentice
Joined: 18 May 2002 Posts: 280
|
Posted: Mon Jul 22, 2002 2:07 pm Post subject: Re: nVidia Driver Concerns |
|
|
dmarien wrote: |
Anyway, I've installed X, KDE, Mozilla, and a number of large open source projects. However, the nVidia drivers/kernel modules (whatever) -- failed me. |
Recompile your kernel with Loadable Module Support. |
|
Back to top |
|
|
dmarien n00b
Joined: 15 Jul 2002 Posts: 22 Location: Kitchener Ontario
|
Posted: Mon Jul 22, 2002 7:56 pm Post subject: the solution |
|
|
Since I wasn't using vanilla linux kernel sources, I had to move /usr/src/linux and
[code]
ln -s /usr/src/linux-2.4.18-gentoo-r7 /usr/src/linux
[code]
i did a
[code]make clean && make depend[/code]
then emerged the nvidia kernel and glx shit.
perfecto! (or so I hope since i did that remotely and wont know if XFree86 works until I get home). _________________ dmarien |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|