Orb_slam2: xocde build error

Created on 8 Dec 2017  路  1Comment  路  Source: raulmur/ORB_SLAM2

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

Most helpful comment

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;

>All comments

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;
Was this page helpful?
0 / 5 - 0 ratings

Related issues

nik13 picture nik13  路  5Comments

akashshar picture akashshar  路  4Comments

AbnerCSZ picture AbnerCSZ  路  4Comments

Zico2017 picture Zico2017  路  3Comments

angussmitchell picture angussmitchell  路  5Comments