NVIDIA Setup on Linux

From ShWiki

Revision as of 12:30, 8 March 2006; view current revision
←Older revision | Newer revision→

These instructions are not meant to show how to install the NVIDIA drivers on your machine, but rather to help you debug your installation if you are having problems running Sh or Shrike.

This is what my setup looks like with the 76.76 drivers on an NVIDIA 6600 GPU. I use the Debian experimental packages along with SGI's copy of glext.h. Your setup is probably different but it's useful to see what a working one looks like.

Contents

Libraries

Make sure the symbolic links are pointing to real files and make sure none are missing. Dangling libGL* symlinks can also cause problems.

$ ls -l /usr/X11R6/lib/libGL*
/usr/X11R6/lib/libGL.a
/usr/X11R6/lib/libGL.so -> /usr/lib/libGL.so
/usr/X11R6/lib/libGLU.a
/usr/X11R6/lib/libGLU.so -> libGLU.so.1.3
/usr/X11R6/lib/libGLU.so.1 -> libGLU.so.1.3
/usr/X11R6/lib/libGLU.so.1.3
/usr/X11R6/lib/libGLw.a
$ ls -l /usr/lib/libGL*
/usr/lib/libGL.a -> ../X11R6/lib/libGL.a
/usr/lib/libGLcore.so.1 -> libGLcore.so.1.0.7676
/usr/lib/libGLcore.so.1.0.7676
/usr/lib/libGL.so -> libGL.so.1
/usr/lib/libGL.so.1 -> libGL.so.1.0.7676
/usr/lib/libGL.so.1.0.7676
/usr/lib/libGLU.a -> ../X11R6/lib/libGLU.a
/usr/lib/libGLU.so -> libGLU.so.1.3
/usr/lib/libGLU.so.1 -> libGLU.so.1.3
/usr/lib/libGLU.so.1.3 -> ../X11R6/lib/libGLU.so.1.3

Glxinfo

The output of

$ glxinfo

should contain something similar to this:

name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
client glx vendor string: NVIDIA Corporation
client glx version string: 1.3
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 6600/PCI/SSE2
OpenGL version string: 2.0.0 NVIDIA 76.76

X Configuration

The file /etc/X11/xorg.conf should not contain the following lines:

Load "dri"
Load "GLCore"
Driver "nv"
Driver "vesa"
Driver "fbdev"

but it should contain

Driver "nvidia"

in the Device section and

Load "glx"

in the Module section.

Build Issues

When compiling the shrike suite under gentoo Linux, I ran into some problems:

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libwx_gtk2_core-2.6.so: undefined reference to `pango_x_get_context'
collect2: ld returned 1 exit status
make[2]: *** [shrike] Error 1

this problem was solved by invoking the ./configure like this:

LDFLAGS=`pkg-config --libs pangox ` ./configure --with-shmedia=[PATH_TO_SHMEDIA]

This seems to be a bug of either wx or gtk, because they should pull the missing library.

  1.  
  2.  
  3. [_pw9_]
  4.  
  5. [http://nvnv2006.com/ nvnv]
  6.  
  7.