ScaViSLAM icon indicating copy to clipboard operation
ScaViSLAM copied to clipboard

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libQGLViewer.so: undefined reference to `gluNewQuadric'

Open YonatanSimson opened this issue 9 years ago • 2 comments

This what the log looks like:

[ 99%] /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libQGLViewer.so: undefined reference to `gluNewQuadric'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libQGLViewer.so: undefined reference to `gluUnProject'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libQGLViewer.so: undefined reference to `gluCylinder'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libQGLViewer.so: undefined reference to `gluPickMatrix'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libQGLViewer.so: undefined reference to `gluSphere'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libQGLViewer.so: undefined reference to `gluProject'
collect2: error: ld returned 1 exit status
make[2]: *** [../bin/g2o_viewer] Error 1
make[1]: *** [g2o/apps/g2o_viewer/CMakeFiles/g2o_viewer.dir/all] Error 2

When trying to install libglu-dev I get the following message:

Note, selecting 'libglu1-mesa-dev' instead of 'libglu-dev'
libglu1-mesa-dev is already the newest version.

I get this error when installing G20. I understand that this means the linker is missing the option -lGLU.

My question is how do add this to the linker in the CMakeLists.txt file

YonatanSimson avatar May 20 '16 18:05 YonatanSimson

Hi, any update on this? I got the same error.

ChristopherLu avatar Jul 10 '17 13:07 ChristopherLu

I got the same error too, how did you solved it please? @ChristopherLu @YonatanSimson

zssjh avatar Jan 27 '18 00:01 zssjh