Error while installing cartographer

asked 2021-02-09 23:29:38 -0600

rkd1995 gravatar image

Hello, While installing cartographer following the steps in the link below, I have come across an error https://google-cartographer-ros.readt...

While running the line " catkin_make_isolated --install --use-ninja " I am getting the following error.

catkin_make_isolated --install --use-ninja Base path: /home/rkd1995/catkin_ws Source space: /home/rkd1995/catkin_ws/src Build space: /home/rkd1995/catkin_ws/build_isolated Devel space: /home/rkd1995/catkin_ws/devel_isolated Install space: /home/rkd1995/catkin_ws/install_isolated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ traversing 5 packages in topological order: ~~ - cartographer (plain cmake) ~~ - cartographer_ros_msgs ~~ - cartographer_ros ~~ - cartographer_rviz ~~ - jackal_cartographer_navigation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

==> Processing plain cmake package: 'cartographer' build.ninja exists, skipping explicit cmake invocation... ==> ninja build.ninja in '/home/rkd1995/catkin_ws/build_isolated/cartographer/install' ninja: no work to do. ==> ninja -j12 -l12 in '/home/rkd1995/catkin_ws/build_isolated/cartographer/install' [12/340] Building CXX object CMakeFile...ernal/mapping_state_serialization.cc.o FAILED: /usr/bin/c++ -D__CLANG_SUPPORT_DYN_ANNOTATION__ -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkin_ws/src/cartographer -O3 -DNDEBUG -pthread -fPIC -std=c++11 -Wall -Wpedantic -Werror=format-security -Werror=missing-braces -Werror=reorder -Werror=return-type -Werror=switch -Werror=uninitialized -O3 -DNDEBUG -MMD -MT CMakeFiles/cartographer.dir/cartographer/io/internal/mapping_state_serialization.cc.o -MF CMakeFiles/cartographer.dir/cartographer/io/internal/mapping_state_serialization.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/io/internal/mapping_state_serialization.cc.o -c /home/rkd1995/catkin_ws/src/cartographer/cartographer/io/internal/mapping_state_serialization.cc In file included from /home/rkd1995/catkin_ws/src/cartographer/cartographer/io/internal/mapping_state_serialization.h:20:0, from /home/rkd1995/catkin_ws/src/cartographer/cartographer/io/internal/mapping_state_serialization.cc:17: /home/rkd1995/catkin_ws/src/cartographer/cartographer/io/proto_stream_interface.h:21:37: fatal error: /usr/local/include/google/protobuf/message.h: Permission denied compilation terminated. [12/340] Building CXX object CMakeFile...artographer/mapping/detect_floors.cc.o FAILED: /usr/bin/c++ -D__CLANG_SUPPORT_DYN_ANNOTATION__ -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkin_ws/src/cartographer -O3 -DNDEBUG -pthread -fPIC -std=c++11 -Wall -Wpedantic -Werror=format-security -Werror=missing-braces -Werror=reorder -Werror=return-type -Werror=switch -Werror=uninitialized -O3 -DNDEBUG -MMD -MT CMakeFiles/cartographer.dir/cartographer/mapping/detect_floors.cc.o -MF CMakeFiles/cartographer.dir/cartographer/mapping/detect_floors.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/mapping/detect_floors.cc.o -c /home/rkd1995/catkin_ws/src/cartographer/cartographer/mapping/detect_floors.cc In file included from /home/rkd1995/catkin_ws/src/cartographer/cartographer/mapping/detect_floors.h:21:0, from /home/rkd1995/catkin_ws/src/cartographer/cartographer/mapping/detect_floors.cc:17: ./cartographer/mapping/proto/trajectory.pb.h:10:40: fatal error: /usr/local/include/google/protobuf/port_def.inc: Permission denied compilation terminated. [12/340] Building CXX object CMakeFile....dir/cartographer/io/proto_stream.cc.o FAILED: /usr/bin/c++ -D__CLANG_SUPPORT_DYN_ANNOTATION__ -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkin_ws/src/cartographer -O3 -DNDEBUG -pthread -fPIC -std=c++11 -Wall -Wpedantic -Werror=format-security -Werror=missing-braces -Werror=reorder -Werror=return-type -Werror=switch -Werror=uninitialized -O3 -DNDEBUG -MMD -MT CMakeFiles/cartographer.dir/cartographer/io/proto_stream.cc.o -MF CMakeFiles/cartographer.dir/cartographer/io/proto_stream.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/io/proto_stream.cc.o -c /home/rkd1995/catkin_ws/src/cartographer/cartographer/io/proto_stream.cc ... (more)

edit retag flag offensive close merge delete