lsd_slam icon indicating copy to clipboard operation
lsd_slam copied to clipboard

CreateGlutWindowAndBind’ is not a member of ‘pangolin’

Open ahmed-nad opened this issue 8 years ago • 3 comments

/home/ahmednadeem/Desktop/lsd_slam/lsd_slam_core/src/GUI.cpp: In constructor ‘GUI::GUI()’: /home/ahmednadeem/Desktop/lsd_slam/lsd_slam_core/src/GUI.cpp:14:5: error: ‘CreateGlutWindowAndBind’ is not a member of ‘pangolin’ pangolin::CreateGlutWindowAndBind("Main", 1280 + 180, 960, GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH | GLUT_MULTISAMPLE);

ahmed-nad avatar Dec 14 '16 15:12 ahmed-nad

I included the display_glut.h, then it gets up to 100% and gives the same error in linking .so

[ 96%] Built target lsdslam Linking CXX executable LSD ../lib/liblsdslam.so: undefined reference to `pangolin::CreateGlutWindowAndBind(std::string, int, int, unsigned int)' collect2: error: ld returned 1 exit status

ahmed-nad avatar Dec 15 '16 06:12 ahmed-nad

Could you resolve this somehow? I have the same issue..

c-goettert avatar Jan 22 '17 13:01 c-goettert

I could solve it by using new function-Call in GUI.cpp: pangolin::CreateWindowAndBind("Main", 1280 + 180, 960); instead of pangolin::CreateWindowAndBind("Main", 1280 + 180, 960, GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH | GLUT_MULTISAMPLE);

c-goettert avatar Jan 22 '17 14:01 c-goettert