View Single Post
Old 02-01-07, 04:33 PM   #1
MrMadPL
Registered User
 
Join Date: Sep 2006
Posts: 27
Exclamation Linking Errors - Glut

I have a problem compiling the app agains nvidia drivers for 64 bits.
While the program links of for 32bits system, during 64 bit a mass linking error:
Code:
/usr/lib64/libglut.so: undefined reference to `glPixelStorei'
/usr/lib64/libglut.so: undefined reference to `glBitmap'
/usr/lib64/libglut.so: undefined reference to `glPopAttrib'
/usr/lib64/libglut.so: undefined reference to `glMapGrid2f'
/usr/lib64/libglut.so: undefined reference to `glRotatef'
/usr/lib64/libglut.so: undefined reference to `glEvalMesh2'
/usr/lib64/libglut.so: undefined reference to `glFinish'
/usr/lib64/libglut.so: undefined reference to `glVertex3f'
/usr/lib64/libglut.so: undefined reference to `glXQueryExtension'
/usr/lib64/libglut.so: undefined reference to `glNormal3fv'
/usr/lib64/libglut.so: undefined reference to `gluNewQuadric'
/usr/lib64/libglut.so: undefined reference to `glVertex3fv'
/usr/lib64/libglut.so: undefined reference to `glDrawBuffer'
/usr/lib64/libglut.so: undefined reference to `glXMakeCurrent'
/usr/lib64/libglut.so: undefined reference to `gluQuadricDrawStyle'
/usr/lib64/libglut.so: undefined reference to `glXQueryExtensionsString'
/usr/lib64/libglut.so: undefined reference to `glVertex2f'
/usr/lib64/libglut.so: undefined reference to `glXChooseVisual'
/usr/lib64/libglut.so: undefined reference to `gluCylinder'
/usr/lib64/libglut.so: undefined reference to `glGetError'
/usr/lib64/libglut.so: undefined reference to `glGetIntegerv'
/usr/lib64/libglut.so: undefined reference to `glPushAttrib'
/usr/lib64/libglut.so: undefined reference to `glXDestroyContext'
/usr/lib64/libglut.so: undefined reference to `glPopMatrix'
/usr/lib64/libglut.so: undefined reference to `glXWaitX'
/usr/lib64/libglut.so: undefined reference to `glXGetProcAddressARB'
/usr/lib64/libglut.so: undefined reference to `glXQueryVersion'
/usr/lib64/libglut.so: undefined reference to `glGetString'
/usr/lib64/libglut.so: undefined reference to `gluQuadricNormals'
/usr/lib64/libglut.so: undefined reference to `glXGetClientString'
/usr/lib64/libglut.so: undefined reference to `glPushMatrix'
/usr/lib64/libglut.so: undefined reference to `glNormal3f'
/usr/lib64/libglut.so: undefined reference to `gluSphere'
/usr/lib64/libglut.so: undefined reference to `glPolygonMode'
/usr/lib64/libglut.so: undefined reference to `glMap2f'
/usr/lib64/libglut.so: undefined reference to `glScalef'
/usr/lib64/libglut.so: undefined reference to `glReadBuffer'
/usr/lib64/libglut.so: undefined reference to `glXIsDirect'
/usr/lib64/libglut.so: undefined reference to `glXSwapBuffers'
/usr/lib64/libglut.so: undefined reference to `glTranslatef'
/usr/lib64/libglut.so: undefined reference to `glXCreateContext'
/usr/lib64/libglut.so: undefined reference to `glXGetConfig'
collect2: ld returned 1 exit status
Linker is trying to link against:
Code:
-L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64 -L/usr/kde/3.5/lib64 -R /usr/lib64 -R /usr/kde/3.5/lib64 -R /usr/qt/3/lib64 -R /usr/lib64 -R /usr/kde/3.5/lib64 -o kmatrix3d.kss kmatrix3d.o camera.o effet_particule.o ligne3d1.o vector3f.o kmatrix3dui.o kmatrix3d.moc.o -lpng -lglut -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread -lkdecore -lkdeui -lkscreensaver -lm -lkio
Any ideas what is wrong ??
MrMadPL is offline   Reply With Quote