Build from source following README.nd in rtabmap_ros

rtabmap make error

Error 1

make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libpng.so', needed by '../bin/rtabmap-extractObject'.  Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libpng.so', needed by '../bin/librtabmap_core.so.0.19.1'.  Stop.
CMakeFiles/Makefile2:1586: recipe for target 'corelib/src/CMakeFiles/rtabmap_core.dir/all' failed
make[1]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
^Ctools/ExtractObject/CMakeFiles/extractObject.dir/build.make:62: recipe for target 'tools/ExtractObject/CMakeFiles/extractObject.dir/main.cpp.o' failed
make[2]: *** [tools/ExtractObject/CMakeFiles/extractObject.dir/main.cpp.o] Interrupt
CMakeFiles/Makefile2:1970: recipe for target 'tools/ExtractObject/CMakeFiles/extractObject.dir/all' failed
make[1]: *** [tools/ExtractObject/CMakeFiles/extractObject.dir/all] Interrupt
Makefile:160: recipe for target 'all' failed
make: *** [all] Interrupt

Solution 1

locate libpng.so

stat /usr/lib/x86_64-linux-gnu/libpng.so

Of course the file exist.

Output:

File: 'libpng.so' -> 'libpng12.so'
Size: 11 Blocks: 0 IO Block: 4096 symbolic link
Device: 816h/2070d Inode: 6296757 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2019-04-04 10:09:50.543715873 +0800
Modify: 2019-04-04 10:09:50.539715795 +0800
Change: 2019-04-04 10:09:50.539715795 +0800
Birth: -

Copy another libpng.so file from my laptop. Problem fixed.


Error 2

make -j4
[ 4%] Built target rtabmap_utilite
[ 5%] Built target res_tool
[ 5%] Built target imagesJoiner
[ 6%] Built target extractObject
[ 42%] Built target rtabmap_core
[ 42%] Linking CXX executable ../../../bin/rtabmap-stereoEval
[ 42%] Linking CXX executable ../../../bin/rtabmap-console
[ 43%] Linking CXX executable ../../../bin/rtabmap-camera
[ 82%] Built target rtabmap_gui
[ 82%] Linking CXX executable ../../../bin/rtabmap-kitti_dataset
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_pinv'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `loam::MultiScanMapper::getRingForAngle(float const&)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_post'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_calloc'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_malloc'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_nfree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_spfree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_etree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `g2o::csparse_extension::cs_cholsolsymb(cs_sparse const*, double*, cs_symbolic const*, double*, int*)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_symperm'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_schol'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `g2o::csparse_extension::writeCs2Octave(char const*, cs_sparse const*, bool)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_cumsum'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_sfree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_amd'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `g2o::csparse_extension::cs_chol_workspace(cs_sparse const*, cs_symbolic const*, int*, double*)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_free'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_counts'
collect2: error: ld returned 1 exit status
tools/ConsoleApp/CMakeFiles/consoleApp.dir/build.make:741: recipe for target '../bin/rtabmap-console' failed
make[2]: *** [../bin/rtabmap-console] Error 1
CMakeFiles/Makefile2:1860: recipe for target 'tools/ConsoleApp/CMakeFiles/consoleApp.dir/all' failed
make[1]: *** [tools/ConsoleApp/CMakeFiles/consoleApp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_pinv'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_calloc'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_etree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_symperm'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_schol'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `g2o::csparse_extension::writeCs2Octave(char const*, cs_sparse const*, bool)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_cumsum'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_amd'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `g2o::csparse_extension::cs_chol_workspace(cs_sparse const*, cs_symbolic const*, int*, double*)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_free'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `loam::MultiScanMapper::getRingForAngle(float const&)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_post'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_malloc'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_nfree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_spfree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `g2o::csparse_extension::cs_cholsolsymb(cs_sparse const*, double*, cs_symbolic const*, double*, int*)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_sfree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_counts'
collect2: error: ld returned 1 exit status
tools/Camera/CMakeFiles/camera.dir/build.make:741: recipe for target '../bin/rtabmap-camera' failed
make[2]: *** [../bin/rtabmap-camera] Error 1
CMakeFiles/Makefile2:2026: recipe for target 'tools/Camera/CMakeFiles/camera.dir/all' failed
make[1]: *** [tools/Camera/CMakeFiles/camera.dir/all] Error 2
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_pinv'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `loam::MultiScanMapper::getRingForAngle(float const&)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_post'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_calloc'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_malloc'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_nfree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_spfree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_etree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `g2o::csparse_extension::cs_cholsolsymb(cs_sparse const*, double*, cs_symbolic const*, double*, int*)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_symperm'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_schol'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `g2o::csparse_extension::writeCs2Octave(char const*, cs_sparse const*, bool)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_cumsum'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_sfree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_amd'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `g2o::csparse_extension::cs_chol_workspace(cs_sparse const*, cs_symbolic const*, int*, double*)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_free'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_counts'
collect2: error: ld returned 1 exit status
tools/KittiDataset/CMakeFiles/kitti_dataset.dir/build.make:741: recipe for target '../bin/rtabmap-kitti_dataset' failed
make[2]: *** [../bin/rtabmap-kitti_dataset] Error 1
CMakeFiles/Makefile2:2138: recipe for target 'tools/KittiDataset/CMakeFiles/kitti_dataset.dir/all' failed
make[1]: *** [tools/KittiDataset/CMakeFiles/kitti_dataset.dir/all] Error 2
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_pinv'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_calloc'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_etree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_symperm'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_schol'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `g2o::csparse_extension::writeCs2Octave(char const*, cs_sparse const*, bool)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_cumsum'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_amd'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `g2o::csparse_extension::cs_chol_workspace(cs_sparse const*, cs_symbolic const*, int*, double*)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_free'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `loam::MultiScanMapper::getRingForAngle(float const&)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_post'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_malloc'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_nfree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_spfree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `g2o::csparse_extension::cs_cholsolsymb(cs_sparse const*, double*, cs_symbolic const*, double*, int*)'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_sfree'
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `cs_counts'
collect2: error: ld returned 1 exit status
tools/StereoEval/CMakeFiles/stereoEval.dir/build.make:741: recipe for target '../bin/rtabmap-stereoEval' failed
make[2]: *** [../bin/rtabmap-stereoEval] Error 1
CMakeFiles/Makefile2:2082: recipe for target 'tools/StereoEval/CMakeFiles/stereoEval.dir/all' failed
make[1]: *** [tools/StereoEval/CMakeFiles/stereoEval.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Solution 2

Clear the cache

$ cd rtabmap/build
$ rm CMakeCache.txt
$ cmake -DCMAKE_INSTALL_PREFIX=~/catkin_ws/devel ..

Then remove directory EXTERNAL in /usr/local/include

$ sudo rm -rf /usr/local/include/EXTERNAL


Error 3

../../../bin/librtabmap_core.so.0.19.1: undefined reference to `loam::MultiScanMapper::getRingForAngle(float const&)'
collect2: error: ld returned 1 exit status
tools/ConsoleApp/CMakeFiles/consoleApp.dir/build.make:741: recipe for target '../bin/rtabmap-console' failed
make[2]: *** [../bin/rtabmap-console] Error 1
CMakeFiles/Makefile2:1910: recipe for target 'tools/ConsoleApp/CMakeFiles/consoleApp.dir/all' failed
make[1]: *** [tools/ConsoleApp/CMakeFiles/consoleApp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `loam::MultiScanMapper::getRingForAngle(float const&)'
collect2: error: ld returned 1 exit status
tools/Camera/CMakeFiles/camera.dir/build.make:741: recipe for target '../bin/rtabmap-camera' failed
make[2]: *** [../bin/rtabmap-camera] Error 1
CMakeFiles/Makefile2:2096: recipe for target 'tools/Camera/CMakeFiles/camera.dir/all' failed
make[1]: *** [tools/Camera/CMakeFiles/camera.dir/all] Error 2
../../../bin/librtabmap_core.so.0.19.1: undefined reference to `loam::MultiScanMapper::getRingForAngle(float const&)'
collect2: error: ld returned 1 exit status
tools/StereoEval/CMakeFiles/stereoEval.dir/build.make:741: recipe for target '../bin/rtabmap-stereoEval' failed
make[2]: *** [../bin/rtabmap-stereoEval] Error 1
CMakeFiles/Makefile2:2162: recipe for target 'tools/StereoEval/CMakeFiles/stereoEval.dir/all' failed
make[1]: *** [tools/StereoEval/CMakeFiles/stereoEval.dir/all] Error 2
[ 80%] Built target rtabmap_gui
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Solution 3

** reinstall the new version of loam_velodyne **

$ cd ~/catkin_ws/src/
$ git clone https://github.com/laboshinl/loam_velodyne.git
$ cd ~/catkin_ws
$ catkin_make -DCMAKE_BUILD_TYPE=Release
$ source ~/catkin_ws/devel/setup.bash
  • Referrence: (Installation problem for last version of RTAB-Map with loam_velodyne (not in ROS) in Ubuntu 16.04:loam::MultiScanMapper::getRingForAngle(float const&)Undefined references #321)[https://github.com/introlab/rtabmap/issues/321]

catkin_make error

Error 4

/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/MsgConversion.cpp: In function ‘void rtabmap_ros::nodeDataToROS(const rtabmap::Signature&, rtabmap_ros::NodeData&)’:
/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/MsgConversion.cpp:939:71: error: ‘const class rtabmap::LaserScan’ has no member named ‘maxRange’
msg.laserScanMaxRange = signature.sensorData().laserScanCompressed().maxRange();
^
rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/build.make:486: recipe for target 'rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/src/MsgConversion.cpp.o' failed
make[2]: *** [rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/src/MsgConversion.cpp.o] Error 1
CMakeFiles/Makefile2:7795: recipe for target 'rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/all' failed
make[1]: *** [rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Solution 4

$ gedit /home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/MsgConversion.cpp

modifiy ** maxRange ** to ** rangeMax **.

  • Why I can solve this?*
  1. Look for “maxRange” in the directory “~/catkin_ws/devel/include/rtabmap-0.19/rtabmap/core”

grep -rn * -ie maxRange

LaserScan.h:61:			int maxRange = 0,
LaserScan.h:66: float maxRange,
LaserScan.h:76: float maxRange,
LaserScan.h:82: float maxRange,
OctoMap.h:214: void setMaxRange(float value) {rangeMax_ = value;}
util3d_mapping.h:52: float scanMaxRange = 0.0f), "Use interface with \"viewpoint\" parameter to make sure the ray tracing origin is from the sensor and not the base.");
util3d_mapping.h:61: float scanMaxRange = 0.0f), "Use interface with scanHit/scanNoHit parameters: scanNoHit set to null matrix has the same functionality than this method.");
util3d_mapping.h:71: float scanMaxRange = 0.0f); // would be set if unknownSpaceFilled=true
util3d_mapping.h:90: float scanMaxRange = 0.0f), "Use interface with \"viewpoints\" parameter to make sure the ray tracing origin is from the sensor and not the base.");
util3d_mapping.h:100: float scanMaxRange = 0.0f), "Use interface with cv::Mat scans.");
util3d_mapping.h:110: float scanMaxRange = 0.0f); // would be set if unknownSpaceFilled=true

and in "~/catkin_ws/src/rtabmap_ros-kinetic-devel"

msg/NodeData.msg:40:float32 laserScanMaxRange
src/MsgConversion.cpp:880: msg.laserScanMaxRange,
src/MsgConversion.cpp:892: msg.laserScanMaxRange,
src/MsgConversion.cpp:939: msg.laserScanMaxRange = signature.sensorData().laserScanCompressed().maxRange();

Obviously, there is nothing related to maxRange. So We can see another same file MsgConversion.cpp in branch * "master" *. Search for * " signature.sensorData().laserScanCompressed() " *, and we can see it's rangeMax() but not maxRange()


Error 5

/home/william/catkin_ws/src/rtabmap_ros/src/MapsManager.cpp: In member function ‘std::map<int, rtabmap::Transform> MapsManager::updateMapCaches(const std::map<int, rtabmap::Transform>&, const rtabmap::Memory*, bool, bool, const std::map<int, rtabmap::Signature>&)’:
/home/william/catkin_ws/src/rtabmap_ros/src/MapsManager.cpp:713:17: error: void value not ignored as it ought to be
gridUpdated_ = occupancyGrid_->update(filteredPoses);
^
/home/william/catkin_ws/src/rtabmap_ros/src/MapsManager.cpp:721:20: error: void value not ignored as it ought to be
octomapUpdated_ = octomap_->update(filteredPoses);
^
rtabmap_ros/CMakeFiles/rtabmap_ros.dir/build.make:86: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/MapsManager.cpp.o' failed
make[2]: *** [rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/MapsManager.cpp.o] Error 1
CMakeFiles/Makefile2:7883: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_ros.dir/all' failed
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_ros.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1" failed
/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/CoreWrapper.cpp: In member function ‘void rtabmap_ros::CoreWrapper::publishStats(const ros::Time&)’:
/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/CoreWrapper.cpp:2604:10: error: ‘const class rtabmap::Statistics’ has no member named ‘getSignatures’
stats.getSignatures(),
^
/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/CoreWrapper.cpp:2630:36: error: ‘const class rtabmap::Statistics’ has no member named ‘getSignatures’
if(stats.poses().size() && stats.getSignatures().size())
^
/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/CoreWrapper.cpp:2639:60: error: ‘const class rtabmap::Statistics’ has no member named ‘getSignatures’
for(std::map<int, Signature>::const_iterator iter=stats.getSignatures().begin();
^
/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/CoreWrapper.cpp:2640:17: error: ‘const class rtabmap::Statistics’ has no member named ‘getSignatures’
iter!=stats.getSignatures().end();
^
rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/build.make:558: recipe for target 'rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/src/CoreWrapper.cpp.o' failed
make[2]: *** [rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/src/CoreWrapper.cpp.o] Error 1
CMakeFiles/Makefile2:7795: recipe for target 'rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/all' failed
make[1]: *** [rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/CoreWrapper.cpp: In member function ‘void rtabmap_ros::CoreWrapper::publishStats(const ros::Time&)’:
/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/CoreWrapper.cpp:2604:10: error: ‘const class rtabmap::Statistics’ has no member named ‘getSignatures’
stats.getSignatures(),
^
/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/CoreWrapper.cpp:2630:36: error: ‘const class rtabmap::Statistics’ has no member named ‘getSignatures’
if(stats.poses().size() && stats.getSignatures().size())
^
/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/CoreWrapper.cpp:2639:60: error: ‘const class rtabmap::Statistics’ has no member named ‘getSignatures’
for(std::map<int, Signature>::const_iterator iter=stats.getSignatures().begin();
^
/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/CoreWrapper.cpp:2640:17: error: ‘const class rtabmap::Statistics’ has no member named ‘getSignatures’
iter!=stats.getSignatures().end();
^
rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/build.make:558: recipe for target 'rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/src/CoreWrapper.cpp.o' failed
make[2]: *** [rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/src/CoreWrapper.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
^CTraceback (most recent call last):
File "/opt/ros/kinetic/bin/catkin_make", line 296, in <module>
sys.exit(main())
File "/opt/ros/kinetic/bin/catkin_make", line 240, in main
run_command(cmd, make_path)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/catkin/builder.py", line 239, in run_command
make[2]: *** wait: No child processes. Stop.
CMakeFiles/Makefile2:7795: recipe for target 'rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/all' failed
make[1]: *** [rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Interrupt
proc.wait()
File "/usr/lib/python2.7/subprocess.py", line 1392, in wait
pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
File "/usr/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
return func(*args)

Solution 5 * ( in a weird way ) *

** Replace the source file from another one which had been built completely successful.**


Error 6

make[2]: *** No rule to make target '/usr/local/lib/libpcl_kdtree.so', needed by '/home/william/catkin_ws/devel/lib/rtabmap_ros/rgbd_sync'.  Stop.
CMakeFiles/Makefile2:6324: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_rgbd_sync.dir/all' failed
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_rgbd_sync.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '/usr/local/lib/libpcl_kdtree.so', needed by '/home/william/catkin_ws/devel/lib/rtabmap_ros/icp_odometry'. Stop.
CMakeFiles/Makefile2:6361: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_icp_odometry.dir/all' failed
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_icp_odometry.dir/all] Error 2
make[2]: *** No rule to make target '/usr/local/lib/libpcl_kdtree.so', needed by '/home/william/catkin_ws/devel/lib/rtabmap_ros/rgbdicp_odometry'. Stop.
CMakeFiles/Makefile2:6398: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_rgbdicp_odometry.dir/all' failed
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_rgbdicp_odometry.dir/all] Error 2
make[2]: *** No rule to make target '/usr/local/lib/libpcl_kdtree.so', needed by '/home/william/catkin_ws/devel/lib/rtabmap_ros/stereo_odometry'. Stop.
CMakeFiles/Makefile2:6435: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_stereo_odometry.dir/all' failed
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_stereo_odometry.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make VERBOS=1 -j4 -l4" failed
Scanning dependencies of target rtabmap_rgbd_sync
Scanning dependencies of target rtabmap_icp_odometry
[ 15%] Built target _rtabmap_ros_generate_messages_check_deps_Link
Scanning dependencies of target rtabmap_rgbdicp_odometry
Scanning dependencies of target rtabmap_stereo_odometry
make[2]: *** No rule to make target '/usr/local/lib/libpcl_kdtree.so', needed by '/home/william/catkin_ws/devel/lib/rtabmap_ros/rgbd_sync'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 15%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_rgbd_sync.dir/src/RGBDSyncNode.cpp.o
make[2]: *** No rule to make target '/usr/local/lib/libpcl_kdtree.so', needed by '/home/william/catkin_ws/devel/lib/rtabmap_ros/rgbdicp_odometry'. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '/usr/local/lib/libpcl_kdtree.so', needed by '/home/william/catkin_ws/devel/lib/rtabmap_ros/icp_odometry'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 16%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_icp_odometry.dir/src/ICPOdometryNode.cpp.o
[ 17%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_rgbdicp_odometry.dir/src/RGBDICPOdometryNode.cpp.o
make[2]: *** No rule to make target '/usr/local/lib/libpcl_kdtree.so', needed by '/home/william/catkin_ws/devel/lib/rtabmap_ros/stereo_odometry'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 17%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_stereo_odometry.dir/src/StereoOdometryNode.cpp.o
CMakeFiles/Makefile2:6324: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_rgbd_sync.dir/all' failed
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_rgbd_sync.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:6361: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_icp_odometry.dir/all' failed
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_icp_odometry.dir/all] Error 2
CMakeFiles/Makefile2:6398: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_rgbdicp_odometry.dir/all' failed
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_rgbdicp_odometry.dir/all] Error 2
CMakeFiles/Makefile2:6435: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_stereo_odometry.dir/all' failed
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_stereo_odometry.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Solution 6

Copy the whole lib files in the directory of * pcl * to * /usr/local/lib * .


Error 7

/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/OdometryROS.cpp:40:38: fatal error: rtabmap/core/OdometryF2M.h: No such file or directory
compilation terminated.
rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/build.make:462: recipe for target 'rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/src/OdometryROS.cpp.o' failed
make[2]: *** [rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/src/OdometryROS.cpp.o] Error 1
CMakeFiles/Makefile2:7795: recipe for target 'rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/all' failed
make[1]: *** [rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1" failed
/home/william/catkin_ws/src/rtabmap_ros-kinetic-devel/src/OdometryROS.cpp:41:38: fatal error: rtabmap/core/OdometryF2F.h: No such file or directory
compilation terminated.
rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/build.make:462: recipe for target 'rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/src/OdometryROS.cpp.o' failed
make[2]: *** [rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/src/OdometryROS.cpp.o] Error 1
CMakeFiles/Makefile2:7795: recipe for target 'rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/all' failed
make[1]: *** [rtabmap_ros-kinetic-devel/CMakeFiles/rtabmap_ros.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1" failed

Solution 7

$ cd /home/william/catkin_ws/devel/include/rtabmap-0.19/rtabmap/core/
$ sudo cp /home/william/Documents/program_files/rtabmap/corelib/include/rtabmap/core/odometry/OdometryF2M.h OdometryF2M.h
$ sudo cp /home/william/Documents/program_files/rtabmap/corelib/include/rtabmap/core/odometry/OdometryF2F.h OdometryF2F.h

Error 8

[ 32%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryVINS.cpp.o
/home/william/rtabmap/corelib/src/odometry/OdometryVINS.cpp:39:33: fatal error: estimator/estimator.h: No such file or directory
compilation terminated.
corelib/src/CMakeFiles/rtabmap_core.dir/build.make:1795: recipe for target 'corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryVINS.cpp.o' failed
make[2]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/odometry/OdometryVINS.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:2386: recipe for target 'corelib/src/CMakeFiles/rtabmap_core.dir/all' failed
make[1]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Solution 8

rtabmap and rtabmap_ros make error(rtabmap编译错误)的更多相关文章

  1. VS2010出现FileTracker : error FTK1011编译错误的解决办法

    VS2010出现FileTracker : error FTK1011不知道是不是vs2010的一个bug,反正有人提交了. FileTracker : error FTK1011编译错误的解决办法有 ...

  2. FileTracker:error FTK1011编译错误的原因和解决办法

    原因: 今天创建好项目名字完成关了VS,后感觉文件夹名字不太对改了一下,后来程序就调试不了出现FileTracker:error FTK1011编译错误0.0,经过网络查询应该是路径问题 解决方法: ...

  3. VC6的工程转到VC2010或更高版本出现fatal error C1189编译错误的解决方法

    以前也遇到过,当时解决了没写下来,这次正好又遇到了,就顺手写一下吧,别下次又忘记了. 当VC6的工程转到VC2010或更高版本时编译出现如下错误: c:\program files\microsoft ...

  4. go error=216编译错误

    CreateProcess error=216, 该版本的 %1 与您运行的 Windows 版本不兼容.请查看计算机的系统信息,了解是否需要 x86 (32 位)或 x64 (64 位)版本的程序, ...

  5. Ubuntu12.04安装64位系统出现编译错误error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir

    问题: Ubuntu12.04安装64位系统出现编译错误error while loading shared libraries: libz.so.1: cannot open shared obje ...

  6. 编译错误:error: multi-line comment

    编译错误:error: multi-line comment  这其实是有宏定义的地方的问题. 原因是宏定义非一行,在宏定义的行尾使用 '\' 连接符导致的. 所以这个地方的注释使用 /*   */ ...

  7. C++编译错误syntax error : identifier 'THIS_FILE' 解决方法

    你到代码里搜索 THIS_FILE看是不是它定义在别的头文件前面了,如果是,把它们的头文件紧跟到Stdafx.h后面 我遇到过这问题,这样搞定的 今天遇到个编译错误:..\vc98\include\n ...

  8. VS2110。VC++编译错误"error LNK2005: 已经在 XXX.obj 中定义的问题"

    有时候我们会在头文件当中定义一些全局变量或者全局函数,这种做法会比较方便,但有时候会出现“编译错误"error LNK2005: 已经在 XXX.obj 中定义的问题"的链接问题. ...

  9. Thrift-0.10.0 CenOS 7 编译错误 error: expected ')' before 'PRIu32'

    Thrift-0.10.0 CenOS 7 编译错误 error: expected ')' before 'PRIu32' 在编译Thrift的时候,无论是Apache官网tar包,还是Github ...

随机推荐

  1. python学习(十五) 屏幕抓取

    15.1 屏幕抓取 15.1.1 Tidy和XHTML解析 Tidy:用来修复不规范且随意的HTML文档的工具. 为什么用XHTML: 和旧版本的HTML之间最主要的区别:HTML可能只用一个开始标签 ...

  2. 0004-程序流程2之ui-router大意

    按照传统的操作方式,一般是点击某个按钮或者某个菜单项,我们将页面通过指定URL的方式跳转, 在HTML中,使用的是传统的a标签的href属性作跳转,在使用ui-router的情况下,我们对一个按钮 添 ...

  3. python's ninteenth day for me 类的组合,继承。

    组合: 表示一个类的对象作为另一个类对象的属性. 实例化的过程: 1,创建一个对象. 2,__init__ 给对象添加一些属性,对象默认的名字为self. 3,将self所指向的内存空间返回给实例化他 ...

  4. Python Twisted系列教程10:增强defer功能的客户端

    作者:dave@http://krondo.com/an-introduction-to-asynchronous-programming-and-twisted/ 译者:杨晓伟(采用意译) 可以从这 ...

  5. List对象中的组合、查询、扩展

    var Pnts = segs.Select( c =>                                             pntTsLst.Where           ...

  6. python与桶排序

    问题提出: 将以下数据: 6, 8, 2, 3, 4, 0, 9, 1, 5,1 按从小到达排列. 桶排序原理: 桶排序也叫计数排序,简单来说,就是将数据集里面所有元素按顺序列举出来,然后统计元素出现 ...

  7. Mycat实战之连续分片

    1 按照日期(天)分片: 从开始日期算起,按照天数来分片 例如,从2017-11-01,每10天一个分片且可以指定结束日期 注意事项:需要提前将分片规划好,建好,否则有可能日期超出实际配置分片数 1. ...

  8. SSH免密登陆配置过程和原理解析

    SSH免密登陆配置过程和原理解析 SSH免密登陆配置过很多次,但是对它的认识只限于配置,对它认证的过程和基本的原理并没有什么认识,最近又看了一下,这里对学习的结果进行记录. 提纲: 1.SSH免密登陆 ...

  9. 【bzoj1602】[Usaco2008 Oct]牧场行走

    1602: [Usaco2008 Oct]牧场行走 Time Limit: 5 Sec  Memory Limit: 64 MBSubmit: 1793  Solved: 935[Submit][St ...

  10. Tensorflow CPU mask-rcnn 训练模型

    基于cpu版的tensorflow ,使用mask_rcnn训练识别箱子的模型 代码参考(https://blog.csdn.net/disiwei1012/article/details/79928 ...