sajis997
9th December 2012, 15:22
Hello forum
I have developed a small opengl application with Qt. Not i am porting the application to the new qt version qt 4.8.0
I having the following linker problem while linking
GroupBoxCommandExtendedBox.o moc_LabelCounter.o moc_FrustumMainWidget.o moc_OrthoMainWidget.o moc_PerspectiveMainWidget.o moc_SharedWidgetData.o moc_glWidgetWorldSpace.o moc_glWidgetScreenSpace.o moc_ProjectionMainWindow.o moc_GroupBoxCommandExtendedBox.o -L/usr/lib/i386-linux-gnu -L/usr/X11R6/lib -lQtOpenGL -lQtGui -lQtCore -lGL -lpthread
glWidgetWorldSpace.o: In function `GLWidgetWorldSpace::worldReshape(int, int)':
/home/sajjad/Documents/realtimerendering/projection/glWidgetWorldSpace.cpp:85: undefined reference to `gluPerspective'
glWidgetScreenSpace.o: In function `GLWidgetScreenSpace::screenReshape(int, int)':
/home/sajjad/Documents/realtimerendering/projection/glWidgetScreenSpace.cpp:95: undefined reference to `gluPerspective'
/home/sajjad/Documents/realtimerendering/projection/glWidgetScreenSpace.cpp:125: undefined reference to `gluLookAt'
collect2: ld returned 1 exit status
make: *** [projection] Error 1
I have opengl driver installed in my system and it is functional as i have run the qt demos
Any hint to get around this problem ?
Regards
Sajjadul
I have developed a small opengl application with Qt. Not i am porting the application to the new qt version qt 4.8.0
I having the following linker problem while linking
GroupBoxCommandExtendedBox.o moc_LabelCounter.o moc_FrustumMainWidget.o moc_OrthoMainWidget.o moc_PerspectiveMainWidget.o moc_SharedWidgetData.o moc_glWidgetWorldSpace.o moc_glWidgetScreenSpace.o moc_ProjectionMainWindow.o moc_GroupBoxCommandExtendedBox.o -L/usr/lib/i386-linux-gnu -L/usr/X11R6/lib -lQtOpenGL -lQtGui -lQtCore -lGL -lpthread
glWidgetWorldSpace.o: In function `GLWidgetWorldSpace::worldReshape(int, int)':
/home/sajjad/Documents/realtimerendering/projection/glWidgetWorldSpace.cpp:85: undefined reference to `gluPerspective'
glWidgetScreenSpace.o: In function `GLWidgetScreenSpace::screenReshape(int, int)':
/home/sajjad/Documents/realtimerendering/projection/glWidgetScreenSpace.cpp:95: undefined reference to `gluPerspective'
/home/sajjad/Documents/realtimerendering/projection/glWidgetScreenSpace.cpp:125: undefined reference to `gluLookAt'
collect2: ld returned 1 exit status
make: *** [projection] Error 1
I have opengl driver installed in my system and it is functional as i have run the qt demos
Any hint to get around this problem ?
Regards
Sajjadul