cartographer_ros icon indicating copy to clipboard operation
cartographer_ros copied to clipboard

fatal error: <file path>: no such file or directory

Open ugrm opened this issue 8 months ago • 0 comments

In file included from /home/jeahn/catkin_ws/src/sparse-gslam-master/src/sparse_gslam/include/loop_closer/submap_loop_closer.h:2,
                 from /home/jeahn/catkin_ws/src/sparse-gslam-master/src/sparse_gslam/include/drone.h:6,
                 from /home/jeahn/catkin_ws/src/sparse-gslam-master/src/sparse_gslam/src/visualizer.cpp:10:
/home/jeahn/catkin_ws/src/sparse-gslam-master/src/sparse_gslam/include/cartographer_bindings/fast_correlative_scan_matcher_2d.h:32:10: fatal error: cartographer/common/port.h: No such file or directory
   32 | #include "cartographer/common/port.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

When I run catkin_make_isolated -DCMAKE_BUILD_TYPE=Release for a github file I get the error above. cartographer/common/port.h exists, although there are multiple versions (catkin_ws/src/install_isolated/include/cartographer/common/port.h AND catkin_ws/...../cartographer/common/port,h AND MORE). So I specified the path from home like /home//catkin_ws.../port.h and the same error shows up except cartographer/common/port.h is changed to the path I wrote (all of this in fast_correlative_scan_matcher_2d.h:32:10). Any tips?

ugrm avatar Jun 18 '24 06:06 ugrm