From: M. B. <ser...@ne...> - 2003-04-26 12:28:55
|
I will try help you, but the information that I will give is just a guess. GLX is a extension of GL that query x-window, to know what kind of display you have , so if you use glut to create your window glut will need query x with glx to know what kind of window in x-window have. so the problem is always the same how create a window where GL can bind the glcontext, without using X , neither GLX. On Wed, 2003-04-09 at 10:40, Karim Forsthofer wrote: > Hello=20 >=20 > I tried , I tried... > After a long time installing Mesa on my Laptop.=20 > (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)=20 >=20 > ehhhhhhhhh ... I thought all is done, but I get still a glx errors whe= n I run a gl source.=20 >=20 > Here is the program (freepascal source): > Its very basic, and draw a simple triangle.=20 >=20 > program triangle; >=20 > uses > gl, glu, glut; >=20 > procedure init; >=20 > 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; >=20 >=20 > procedure display; >=20 > begin=20 > 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; >=20 >=20 > begin > glutInitWindowSize(250,250); > glutInitWindowPosition(100,200); > glutCreateWindow('triangles'); > init; > glutDisplayFunc(@ display); > glutMainLoop; > end. >=20 > The RUNTIME error to this code (it compiles fine) is: > ./triangles: relocation error: /usr/lib/libglut.so.3: undefined symbol: g= lXQueryExtension >=20 > That is a glx function in the glutlibrary. I never installed glx, because= I thought that is not needed.=20 > I have a bit a mess in my head with all this dependences. > Some feedback would be helpfull.=20 >=20 > Karim=20 >=20 >=20 >=20 >=20 > --=20 > ______________________________________________ > http://www.linuxmail.org/ > Now with e-mail forwarding for only US$5.95/yr >=20 > Powered by Outblaze >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Mesa3d-users mailing list > Mes...@li... > https://lists.sourceforge.net/lists/listinfo/mesa3d-users --=20 S=E9rgioMB email: ser...@ne... Who gives me one shell, give me everything. |