From: Brian P. <br...@tu...> - 2003-04-09 14:29:18
|
Karim Forsthofer wrote: > Hello > > I tried , I tried... > After a long time installing Mesa on my Laptop. > (1. I installed Mandrake without Mesa) > (2. Mesa 5 installed on the console). > (3. deleted GLU and GL libs in /usr/X11R6/lib) > (4. copied the new libs from Mesa5 to /usr/X11R6/lib) > > ehhhhhhhhh ... I thought all is done, but I get still a glx errors when I run a gl source. > > Here is the program (freepascal source): > Its very basic, and draw a simple triangle. > > program triangle; > > uses > gl, glu, glut; > > procedure init; > > begin > glClearColor(0.0, 0.0, 0.0, 0.0); > glColor3f(0.0, 0.0, 0.0); > glMatrixMode(GL_PROJECTION); > glLoadIdentity; > gluPerspective(45.0, 23.0, 0.1, 100.0); > end; > > > procedure display; > > begin > glClear(GL_COLOR_BUFFER_BIT); > glBegin(GL_TRIANGLES); > glVertex3f( 0.0, 1.0,-10.0); > glVertex3f(-1.0,-1.0,-10.0); > glVertex3f( 1.0,-1.0,-10.0); > glEnd; > glutSwapBuffers; > end; > > > begin > glutInitWindowSize(250,250); > glutInitWindowPosition(100,200); > glutCreateWindow('triangles'); > init; > glutDisplayFunc(@ display); > glutMainLoop; > end. > > The RUNTIME error to this code (it compiles fine) is: > ./triangles: relocation error: /usr/lib/libglut.so.3: undefined symbol: glXQueryExtension > > That is a glx function in the glutlibrary. I never installed glx, because I thought that is not needed. > I have a bit a mess in my head with all this dependences. > Some feedback would be helpfull. The GLX interface is an intrinsic part of the Mesa package. There's no separate GLX package. Normally on Linux, libGL.so and libGLU.so are supposed to be in /usr/lib/. They may be symlinks into /usr/X11R6/lib. Run 'ldd triangles' and see what's printed. -Brian |