raulmur / ORB_SLAM2

Real-Time SLAM for Monocular, Stereo and RGB-D Cameras, with Loop Detection and Relocalization Capabilities
Other
9.46k stars 4.7k forks source link

xocde build error #487

Open wuzhentao opened 6 years ago

wuzhentao commented 6 years ago

in Xcode9 build ,this error "Allocator::value_type must be same type as value_type"

seantempesta commented 6 years ago

In include/LoopClosing.h, change lines 49 and 50 to:

typedef map<KeyFrame*,g2o::Sim3,std::less<KeyFrame*>,
        Eigen::aligned_allocator<std::pair<KeyFrame* const, g2o::Sim3> > > KeyFrameAndPose;