sp_orb_slam icon indicating copy to clipboard operation
sp_orb_slam copied to clipboard

Question with my workspace

Open star0w opened this issue 3 years ago • 2 comments

hello, I have met difficulties when using this code in my computer. Hope u can help! Maybe this is related to gcc version or C++ 17? Could you share more information about the version of cmake and gcc? thx!:)

EXAMPLE/CATKIN/WORK_SPACE/src/sp_orb_slam/orb_slam2/src/type/mappoint.cpp:177:44: error: no matching function for call to ‘std::shared_lock<std::shared_mutex>::shared_lock(std::shared_timed_mutex&)’ shared_lock<shared_mutex> lock2(mMutexPos); error: no matching function for call to ‘std::shared_lock<std::shared_mutex>::shared_lock(std::shared_timed_mutex&)’ shared_lock<shared_mutex> lock2(mMutexPos); ^ /EXAMPLE/CATKIN/WORK_SPACE/src/sp_orb_slam/orb_slam2/include/orb_slam/viz/../type/keyframe.h:265:8: error: ‘shared_mutex’ in namespace ‘std’ does not name a type std::shared_mutex mMutexPose; ^~~~~~~~~~~~

star0w avatar Mar 20 '21 03:03 star0w

Yes, it seems to me is related to gcc version. shared_mutex is available in g++-7 and newer version.

HyHuang1995 avatar Mar 20 '21 06:03 HyHuang1995

Yes, it seems to me is related to gcc version. shared_mutex is available in g++-7 and newer version.

Sure. I tried to update my gcc /g++ version from 5.8 to 7.5, however, it seems to be useless. Are there any other possible solutions for this? :( THX!

star0w avatar Mar 20 '21 06:03 star0w