Open dimitris64bit opened 7 years ago
I build it successfully.
<unistd.h>
<tr/memory>
with <memory>
including some container class in c++11, and remove the word "tr" in the namsespace. Eigen::aligned_allocator<std::pair<const KeyFrame*, g2o::Sim3> > > KeyFrameAndPose;
with Eigen::aligned_allocator<std::pair<KeyFrame * const, g2o::Sim3> > > KeyFrameAndPose;
Thanks! Add
#include<stdint-gcc.h>
with #include<stdint.h>
get error:
[ 3%] Linking CXX shared library ../lib/libORB_SLAM2.dylib
Undefined symbols for architecture x86_64:
"_glBegin", referenced from:
ORB_SLAM2::MapDrawer::DrawMapPoints() in MapDrawer.cc.o
ORB_SLAM2::MapDrawer::DrawKeyFrames(bool, bool) in MapDrawer.cc.o
ORB_SLAM2::MapDrawer::DrawCurrentCamera(pangolin::OpenGlMatrix&) in MapDrawer.cc.o
"_glBlendFunc", referenced from:
ORB_SLAM2::Viewer::Run() in Viewer.cc.o
"_glClear", referenced from:
ORB_SLAM2::Viewer::Run() in Viewer.cc.o
"_glClearColor", referenced from:
ORB_SLAM2::Viewer::Run() in Viewer.cc.o
"_glColor3f", referenced from:
ORB_SLAM2::MapDrawer::DrawMapPoints() in MapDrawer.cc.o
ORB_SLAM2::MapDrawer::DrawKeyFrames(bool, bool) in MapDrawer.cc.o
ORB_SLAM2::MapDrawer::DrawCurrentCamera(pangolin::OpenGlMatrix&) in MapDrawer.cc.o
"_glColor4f", referenced from:
ORB_SLAM2::MapDrawer::DrawKeyFrames(bool, bool) in MapDrawer.cc.o
"_glEnable", referenced from:
ORB_SLAM2::Viewer::Run() in Viewer.cc.o
"_glEnd", referenced from:
ORB_SLAM2::MapDrawer::DrawMapPoints() in MapDrawer.cc.o
ORB_SLAM2::MapDrawer::DrawKeyFrames(bool, bool) in MapDrawer.cc.o
ORB_SLAM2::MapDrawer::DrawCurrentCamera(pangolin::OpenGlMatrix&) in MapDrawer.cc.o
"_glLineWidth", referenced from:
ORB_SLAM2::MapDrawer::DrawKeyFrames(bool, bool) in MapDrawer.cc.o
ORB_SLAM2::MapDrawer::DrawCurrentCamera(pangolin::OpenGlMatrix&) in MapDrawer.cc.o
"_glMultMatrixd", referenced from:
ORB_SLAM2::MapDrawer::DrawCurrentCamera(pangolin::OpenGlMatrix&) in MapDrawer.cc.o
"_glMultMatrixf", referenced from:
ORB_SLAM2::MapDrawer::DrawKeyFrames(bool, bool) in MapDrawer.cc.o
"_glPointSize", referenced from:
ORB_SLAM2::MapDrawer::DrawMapPoints() in MapDrawer.cc.o
"_glPopMatrix", referenced from:
ORB_SLAM2::MapDrawer::DrawKeyFrames(bool, bool) in MapDrawer.cc.o
ORB_SLAM2::MapDrawer::DrawCurrentCamera(pangolin::OpenGlMatrix&) in MapDrawer.cc.o
"_glPushMatrix", referenced from:
ORB_SLAM2::MapDrawer::DrawKeyFrames(bool, bool) in MapDrawer.cc.o
ORB_SLAM2::MapDrawer::DrawCurrentCamera(pangolin::OpenGlMatrix&) in MapDrawer.cc.o
"_glVertex3f", referenced from:
ORB_SLAM2::MapDrawer::DrawMapPoints() in MapDrawer.cc.o
ORB_SLAM2::MapDrawer::DrawKeyFrames(bool, bool) in MapDrawer.cc.o
ORB_SLAM2::MapDrawer::DrawCurrentCamera(pangolin::OpenGlMatrix&) in MapDrawer.cc.o
ld: symbol(s) not found for architecture x86_64
adding "-framework OpenGL"
to target_link_libraries in CmakeLists.txt solve above error.
Is there anyone who has managed to do it? Any recommendations?