ROB-SLAM2遇到的问题

使用./build.sh编译时出现

/usr/include/c++/8/bits/stl_map.h:122:21: error: static assertion failed: std::map must have the same value_type as its allocator
       static_assert(is_same<typename _Alloc::value_type, value_type>::value,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMakeFiles/ORB_SLAM2.dir/build.make:134: recipe for target 'CMakeFiles/ORB_SLAM2.dir/src/LoopClosing.cc.o' failed

这个错误

具体为build.sh里面的主目录下的cmake ..

有没有哪个大佬知道这个问题怎么解决。

参考https://www.freesion.com/article/96671072666/     make -j出现的问题。