hanmekim / SceneLib2

SceneLib2 is an open-source C++ library for SLAM originally designed and implemented by Professor Andrew Davison at Imperial College London.
Other
359 stars 198 forks source link

libscenelib2.so: undefined reference to `glutBitmapCharacter' #13

Closed somebodyus closed 8 years ago

somebodyus commented 8 years ago

Dear author,

When I compile the example, I have the following errors,

libscenelib2.so: undefined reference to `glutBitmapHelvetica12'

libscenelib2.so: undefined reference to `glutBitmapCharacter'

libscenelib2.so: undefined reference to `glutBitmapHelvetica18'

Could you help me?

Best Regards, Jack

hanmekim commented 8 years ago

did you install OpenGL stuff correctly -- sudo apt-get install freeglut3-dev libglu-dev libglew-dev?

somebodyus commented 8 years ago

I have installed them. I use Ubuntu 14.04.3.

hanmekim commented 8 years ago

It seems there is an issue linking to the glut library on your PC -- unfortunately, I don't think I can help you this out as I can't replicate the issue on my machine.

somebodyus commented 8 years ago

There is no error or warning during SceneLib2 compilation. I have the error when I compile the MonoSlamSceneLib1.cpp sample. I tested the Pangolin samples in my home directory. The Pangolin sample code can link the glut library and work well.

hanmekim commented 8 years ago

Hmm.. then why don't you compare the Pangolin's cmake file and the SceneLib2 one to figure out what change needed on your machine?

somebodyus commented 8 years ago

I solved the problem using old version of Pangolin. And compile Pangolin using the command, cmake -DCPP11_NO_BOOST=1 -DFORCE_GLUT=1 ..

hanmekim commented 8 years ago

should be fine with the latest commit.