Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
YonatanSimson opened this issue May 20, 2016 · 2 comments

Comments

@YonatanSimson
Copy link

YonatanSimson commented May 20, 2016

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

@ChristopherLu
Copy link

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

@zssjh
Copy link

zssjh commented Jan 27, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants