PDA

View Full Version : glx linking problems... please help !



Monseigneur
04-08-2002, 08:37 AM
I'am building a small application using GLUT, SDL (yes both... I only use 3D primitives from GLUT)and i'am having this rare linking error :

"liglut.so : undefined reference to 'glxQueryExtension'
liglut.so : undefined reference to 'glxMaxCurrent'..."

and so on, all error are about GLX, but when i try to link it myself (using -lglx option) more error appear about XFree86.

I've installed the GLX and Driver Rpm from NVIDIA 's site and glxinfo command says me that it is well installed.

I had this problem after updating my Mandrake 8.0 distrib.

To compil I use the following options :

-lX11 -lXmu -lXext -lXt -lXi -lm -lGL -lGLU -lglut -lSDL -lpthread

it used to work, but now I can only launch the old executable but I can't compile the all project.

Any help on this ?

regards

[This message has been edited by Monseigneur (edited 04-08-2002).]

04-08-2002, 10:40 AM
You can try to move -lglut before the other libraries. I think that your idea to mix GLUT and SDL is bad. GLUT is not made for this. How do you get GLUT to draw the teapot on a SDL window?

MPech
04-08-2002, 11:42 PM
I build the OpenGL window/context with SDL (with the OGL flag) and int the rendering function I use GLUT's primitives like teapot or sphere and this is it.

I'm gone try what you've just write thanks.