rtabmap icon indicating copy to clipboard operation
rtabmap copied to clipboard

error when make

Open SrewPython opened this issue 4 years ago • 1 comments

Hi, I'm trying to build the rtabmap , but I'm getting the following make error when building rtabmap from source on ubuntu 18.04 with ROS melodic.

make -j4,and the result as follows:

[ 4%] Built target rtabmap_utilite [ 6%] Built target res_tool [ 6%] Built target imagesJoiner [ 6%] Built target extractObject [ 6%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraRealSense2.cpp.o [ 6%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Transform.cpp.o [ 6%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/GeodeticCoords.cpp.o [ 7%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/util2d.cpp.o [ 7%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/util3d.cpp.o /home/ubuntu/rtabmap/corelib/src/camera/CameraRealSense2.cpp: In member function ‘void rtabmap::CameraRealSense2::close()’: /home/ubuntu/rtabmap/corelib/src/camera/CameraRealSense2.cpp:107:17: error: ‘class rs2::sensor’ has no member named ‘get_active_streams’; did you mean ‘get_option_name’? if(!sensor.get_active_streams().empty()) ^~~~~~~~~~~~~~~~~~ get_option_name /home/ubuntu/rtabmap/corelib/src/camera/CameraRealSense2.cpp: In member function ‘virtual bool rtabmap::CameraRealSense2::init(const string&, const string&)’: /home/ubuntu/rtabmap/corelib/src/camera/CameraRealSense2.cpp:671:42: error: ‘RS2_OPTION_ENABLE_POSE_JUMPING’ is not a member of ‘rs2_option’ sensors.back().set_option(rs2_option::RS2_OPTION_ENABLE_POSE_JUMPING, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/rtabmap/corelib/src/camera/CameraRealSense2.cpp:672:42: error: ‘RS2_OPTION_ENABLE_RELOCALIZATION’ is not a member of ‘rs2_option’ sensors.back().set_option(rs2_option::RS2_OPTION_ENABLE_RELOCALIZATION, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/rtabmap/corelib/src/camera/CameraRealSense2.cpp:1058:59: error: ‘RS2_OPTION_GLOBAL_TIME_ENABLED’ is not a member of ‘rs2_option’ if(globalTimeSync && sensors[i].supports(rs2_option::RS2_OPTION_GLOBAL_TIME_ENABLED)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/rtabmap/corelib/src/camera/CameraRealSense2.cpp:1060:54: error: ‘RS2_OPTION_GLOBAL_TIME_ENABLED’ is not a member of ‘rs2_option’ float value = sensors[i].get_option(rs2_option::RS2_OPTION_GLOBAL_TIME_ENABLED); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/rtabmap/corelib/src/camera/CameraRealSense2.cpp:1062:40: error: ‘RS2_OPTION_GLOBAL_TIME_ENABLED’ is not a member of ‘rs2_option’ sensors[i].set_option(rs2_option::RS2_OPTION_GLOBAL_TIME_ENABLED, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ corelib/src/CMakeFiles/rtabmap_core.dir/build.make:571: recipe for target 'corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraRealSense2.cpp.o' failed make[2]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/camera/CameraRealSense2.cpp.o] Error 1 make[2]: *** 正在等待未完成的任务.... CMakeFiles/Makefile2:2404: recipe for target 'corelib/src/CMakeFiles/rtabmap_core.dir/all' failed make[1]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/all] Error 2 Makefile:162: recipe for target 'all' failed make: *** [all] Error 2

Can i get any help? Think you very much!

SrewPython avatar Jul 08 '21 03:07 SrewPython

which realsense sdk version are you using?

matlabbe avatar Jul 20 '21 20:07 matlabbe