Open Lincoln-Zhou opened 3 years ago
https://github.com/raulmur/ORB_SLAM2/issues/487#issuecomment-353747129
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;
@zhigangjiang This worked for me, Thanks
When compiling ORB_SLAM3 on macOS Big Sur 11.2 (20D5042d), several errors happened after running
./build.sh
command.Terminal output:
After doing some searching I found some similar issues, some dating back to ORB_SLAM2 and hasn't been solved yet.
For example: https://github.com/raulmur/ORB_SLAM2/issues/78#issuecomment-678144967 https://github.com/tum-vision/LDSO/issues/4 https://github.com/sunbingfeng/ORB-SLAM2-MAC/issues/1
I guess it may due to Apple clang compiler issues, so I changed to the compiler to gcc and g++ in build.sh by adding parameters
-DCMAKE_CXX_COMPILER=/usr/bin/g++
and-DCMAKE_C_COMPILER=/usr/bin/gcc
, not worked though. It seems that most errors are related to project file/src/LoopClosing.cc
, but with my limited C++ knowledge it's hard to tell which part is wrong.Could anyone review this issue and offer some help? Thanks in advance.