nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Linking Errors - Glut (http://www.nvnews.net/vbulletin/showthread.php?t=85503)

MrMadPL 02-01-07 04:33 PM

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 ??

coec 02-01-07 09:23 PM

Re: Linking Errors - Glut
 
You probably don't have GLUT (GL Utility Toolkit) installed. Try looking on sourceforge for freeglut.

Skrot 02-01-07 10:52 PM

Re: Linking Errors - Glut
 
It appears as though you aren't linking in the GLU and GL libraries. Try adding -lGL -lGLU to your link line, and see how it goes.

MrMadPL 02-02-07 04:30 AM

Re: Linking Errors - Glut
 
The problem is that I don't have a 64 bit platform to test it - I'm developing on 32 bits.
And the question is why with Nvidia 32 bits everything is ok while linking to:
Code:

-lglut
and on 64 bits there's obvious problem inside the /usr/lib64/libglut.so
Code:

/usr/lib64/libglut.so: undefined reference to `glXDestroyContext'
Regards
MrMad


All times are GMT -5. The time now is 02:44 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.