pvQtView.cpp: undefined reference to `gluErrorString' (missing -lGLU?)
Status: Beta
Brought to you by:
tksharpless
Unpacking and building Panini-0.71.104-src.zip on Xubuntu 12.04 failed for me as follows:
$ qmake panini.pro ... $ make release ... g++ -m64 -Wl,-O1 -o Panini build/main.o build/pvQtPic.o build/pvQtView.o build/MainWindow.o build/GLwindow.o build/pvQt_QTVR.o build/picTypeDialog.o build/pictureTypes.o build/panosurface.o build/panosphere.o build/panocylinder.o build/TurnDialog.o build/About.o build/moc_pvQtPic.o build/moc_CubeLimit_dialog.o build/moc_pvQtView.o build/moc_MainWindow.o build/moc_GLwindow.o build/moc_picTypeDialog.o build/moc_About.o build/moc_pvQtMouseModes.o build/moc_TurnDialog.o build/qrc_PaniniIcon.o -L/usr/lib/x86_64-linux-gnu -L/usr/X11R6/lib64 -lQtOpenGL -lQtGui -lQtCore -lGL -lpthread build/pvQtView.o: In function `pvQtView::OGLok(char const*)': pvQtView.cpp:(.text+0x1c1f): undefined reference to `gluErrorString' collect2: ld returned 1 exit status make[1]: *** [Panini] Error 1 make[1]: Leaving directory `/home/jtn/src/Panini-0.71.104-src' make: *** [release] Error 2
Googling suggests that this is not uncommon, and in a couple of places (cartola.org, Google Groups) it's suggested to hand-hack Makefile.Release to add "-lGLU" to the end of LIBS. This worked for me. I don't know what the "proper" way to do it is.
(One of these sources also suggests adding "-lz", but I didn't find this to be necessary myself.)
(I suppose this may be related to [#5].)
Related
Bugs: #5