PDA

View Full Version : Version: 1.0-4363 and glut problem


Gadget
04-24-03, 05:50 PM
after installing linux driver Version: 1.0-4363 I get the following error when compiling OpenGL:

----------------------------------------------------
g++ -L/usr/X11R6/lib/ bounce.o -lGL -lGLU -lglut -lXi -lXmu -o bounce
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXBindChannelToWindowSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXQueryChannelDeltasSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXChannelRectSyncSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXChannelRectSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXQueryChannelRectSGIX'
collect2: ld returned 1 exit status
make: *** [bounce] Error 1

----------------------------------------------------
it worked with version 4349. any ideas?

I'm running RedHat 9.

thanks for any help.

bahamot
04-24-03, 07:34 PM
that's known problem with rh9 glut package, try download glut*.src.rpm from www.rpmfind.net
,compile and installed it over default glut and glut-devel
that should do

bwkaz
04-24-03, 09:07 PM
Yep, and you can find the full history/explanation of this problem by searching this single forum for your undefined symbols.

alien999999999
04-25-03, 08:19 AM
i thought that glX... functions were in the glx library? (-lglx)
am i so wrong?

bahamot
04-25-03, 08:43 AM
quote from Andy's reply to other thread (http://www.nvnews.net/vbulletin/showthread.php?s=&threadid=10763):


http://www.nvnews.net/vbulletin/sho...&threadid=10032

--andy


__________________
Andy Mecham
NVIDIA Corporation


cheers

bwkaz
04-25-03, 09:47 AM
Originally posted by alien999999999
i thought that glX... functions were in the glx library? (-lglx)
am i so wrong? There is no -lglx.

The only libglx.so file on your system is in /usr/X11R6/lib/modules/extensions -- it is NOT intended to be used by user programs, only X itself.

If you try to link against that libglx.so, it WILL fail with a bunch of other unresolved symbols (stuff that the X binary defines, I think). The only purpose of libglx.so is to implement the GLX extension, server-side.

The glX* functions that user programs call are provided either by libX11, or by libGL.