Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
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
Old 02-01-07, 09:23 PM   #2
coec
Registered User
 
Join Date: Jul 2006
Posts: 34
Default Re: Linking Errors - Glut

You probably don't have GLUT (GL Utility Toolkit) installed. Try looking on sourceforge for freeglut.
coec is offline   Reply With Quote
Old 02-01-07, 10:52 PM   #3
Skrot
The 5900XT that could.
 
Skrot's Avatar
 
Join Date: Feb 2004
Location: Australia
Posts: 402
Send a message via ICQ to Skrot
Default 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.
Skrot is offline   Reply With Quote
Old 02-02-07, 04:30 AM   #4
MrMadPL
Registered User
 
Join Date: Sep 2006
Posts: 27
Question 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
MrMadPL is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Graphic errors and hangs after standby reini122 NVIDIA Linux 4 05-07-12 03:37 AM
Graphical errors: broken card? lapino NVIDIA GeForce 7, 8, And 9 Series 0 05-03-12 01:20 PM
Compiling Errors In Debian Scorched NVIDIA Linux 14 09-26-02 11:02 AM
Getting bizarre errors with driver install clutch NVIDIA Linux 1 09-14-02 09:53 PM
No Errors with X, but X not starting hschwebler NVIDIA Linux 2 09-09-02 07:09 AM

All times are GMT -5. The time now is 01:48 PM.


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