nV News Forums


nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Problems compiling/linking opengl app with RH9 & Det 43.69 (http://www.nvnews.net/vbulletin/showthread.php?t=11319)

omv 05-05-03 07:51 PM

Problems compiling/linking opengl app with RH9 & Det 43.69
I'm getting some strange problems when trying to build opengl code with the NV drivers (43.69). Basically, its unable to find symbols from the glut library. 43.49 showed similar behavior

However, I am able to build the same example file on my laptop thats using the stock RH9 opengl libs.

Since I can run opengl apps just fine, I assume the NV libgl is okay - do I have to rebuild glut or something?

[omv@pc102 ~/example2]$ make
g++ --pedantic -ansi -Wall -O3 -o example2 -L. -L/usr/X11R6/lib example2.o
-lGd -lglut -lGL -lGLU -lXmu -lXext -lXi -lX11 -lm
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined referenc
e to `glXBindChannelToWindowSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined referenc
e to `glXQueryChannelDeltasSGIX'

bwkaz 05-05-03 08:15 PM

Yes, you have to rebuild glut. The version of glut that you have is SGI's original version, from way the heck back when OpenGL didn't support dynamic extension querying yet (or so I'm told anyway). So the SGI glut library just statically bound to the symbols that your system is telling you aren't resolving -- glXBindChannelToWindowSGIX is the hallmark of this type of problem.

The GL drivers are not required to implement this extension, and glut libraries are supposed to just fail gracefully (AKA turn off the use of that extension) when it doesn't exist.

Anyway, yes, if you get the latest Mesa glut package (which I've posted instructions for compiling once here already -- do a search for the functions that aren't defined, and you should find the thread) and compile it yourself, it won't have that problem.

omv 05-06-03 12:06 AM

Thanks - it'd be nice if there was a bit more in the driver README about this. It was bad enough that the default behavior of the latest installer removed my gl.h. {grumble grumble}

All times are GMT -5. The time now is 06:42 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.