lsd_slam
lsd_slam copied to clipboard
CreateGlutWindowAndBind’ is not a member of ‘pangolin’
/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);
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
Could you resolve this somehow? I have the same issue..
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);