Error while installing cartographer
Hello, While installing cartographer following the steps in the link below, I have come across an error https://google-cartographer-ros.readthedocs.io/en/latest/compilation.html#building-installation
While running the line " catkinmakeisolated --install --use-ninja " I am getting the following error.
catkinmakeisolated --install --use-ninja Base path: /home/rkd1995/catkinws Source space: /home/rkd1995/catkinws/src Build space: /home/rkd1995/catkinws/buildisolated Devel space: /home/rkd1995/catkinws/develisolated Install space: /home/rkd1995/catkinws/installisolated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ traversing 5 packages in topological order: ~~ - cartographer (plain cmake) ~~ - cartographerrosmsgs ~~ - cartographerros ~~ - cartographerrviz ~~ - jackalcartographernavigation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> Processing plain cmake package: 'cartographer' build.ninja exists, skipping explicit cmake invocation... ==> ninja build.ninja in '/home/rkd1995/catkinws/buildisolated/cartographer/install' ninja: no work to do. ==> ninja -j12 -l12 in '/home/rkd1995/catkinws/buildisolated/cartographer/install' [12/340] Building CXX object CMakeFile...ernal/mappingstateserialization.cc.o FAILED: /usr/bin/c++ -DCLANGSUPPORTDYN_ANNOTATION -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkinws/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/mappingstateserialization.cc.o -MF CMakeFiles/cartographer.dir/cartographer/io/internal/mappingstateserialization.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/io/internal/mappingstateserialization.cc.o -c /home/rkd1995/catkinws/src/cartographer/cartographer/io/internal/mappingstateserialization.cc In file included from /home/rkd1995/catkinws/src/cartographer/cartographer/io/internal/mappingstateserialization.h:20:0, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/internal/mappingstateserialization.cc:17: /home/rkd1995/catkinws/src/cartographer/cartographer/io/protostreaminterface.h:21:37: fatal error: /usr/local/include/google/protobuf/message.h: Permission denied compilation terminated. [12/340] Building CXX object CMakeFile...artographer/mapping/detectfloors.cc.o FAILED: /usr/bin/c++ -DCLANGSUPPORTDYN_ANNOTATION -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkinws/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/detectfloors.cc.o -MF CMakeFiles/cartographer.dir/cartographer/mapping/detectfloors.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/mapping/detectfloors.cc.o -c /home/rkd1995/catkinws/src/cartographer/cartographer/mapping/detectfloors.cc In file included from /home/rkd1995/catkinws/src/cartographer/cartographer/mapping/detectfloors.h:21:0, from /home/rkd1995/catkinws/src/cartographer/cartographer/mapping/detectfloors.cc:17: ./cartographer/mapping/proto/trajectory.pb.h:10:40: fatal error: /usr/local/include/google/protobuf/portdef.inc: Permission denied compilation terminated. [12/340] Building CXX object CMakeFile....dir/cartographer/io/protostream.cc.o FAILED: /usr/bin/c++ -DCLANGSUPPORTDYN_ANNOTATION -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkinws/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/protostream.cc.o -MF CMakeFiles/cartographer.dir/cartographer/io/protostream.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/io/protostream.cc.o -c /home/rkd1995/catkinws/src/cartographer/cartographer/io/protostream.cc In file included from /home/rkd1995/catkinws/src/cartographer/cartographer/io/protostream.h:23:0, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/protostream.cc:17: /home/rkd1995/catkinws/src/cartographer/cartographer/io/protostreaminterface.h:21:37: fatal error: /usr/local/include/google/protobuf/message.h: Permission denied compilation terminated. [12/340] Building CXX object CMakeFile...o/internal/inmemoryprotostream.cc.o FAILED: /usr/bin/c++ -DCLANGSUPPORTDYN_ANNOTATION -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkinws/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/inmemoryprotostream.cc.o -MF CMakeFiles/cartographer.dir/cartographer/io/internal/inmemoryprotostream.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/io/internal/inmemoryprotostream.cc.o -c /home/rkd1995/catkinws/src/cartographer/cartographer/io/internal/inmemoryprotostream.cc In file included from /home/rkd1995/catkinws/src/cartographer/cartographer/io/internal/inmemoryprotostream.h:24:0, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/internal/inmemoryprotostream.cc:17: /home/rkd1995/catkinws/src/cartographer/cartographer/io/protostreaminterface.h:21:37: fatal error: /usr/local/include/google/protobuf/message.h: Permission denied compilation terminated. [12/340] Building CXX object CMakeFile...pher/io/internal/pbstreammigrate.cc.o FAILED: /usr/bin/c++ -DCLANGSUPPORTDYN_ANNOTATION -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkinws/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/pbstreammigrate.cc.o -MF CMakeFiles/cartographer.dir/cartographer/io/internal/pbstreammigrate.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/io/internal/pbstreammigrate.cc.o -c /home/rkd1995/catkinws/src/cartographer/cartographer/io/internal/pbstreammigrate.cc In file included from /home/rkd1995/catkinws/src/cartographer/cartographer/io/protostream.h:23:0, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/internal/pbstreammigrate.cc:19: /home/rkd1995/catkinws/src/cartographer/cartographer/io/protostreaminterface.h:21:37: fatal error: /usr/local/include/google/protobuf/message.h: Permission denied compilation terminated. [12/340] Building CXX object CMakeFile...grapher/io/internal/pbstreaminfo.cc.o FAILED: /usr/bin/c++ -DCLANGSUPPORTDYN_ANNOTATION -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkinws/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/pbstreaminfo.cc.o -MF CMakeFiles/cartographer.dir/cartographer/io/internal/pbstreaminfo.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/io/internal/pbstreaminfo.cc.o -c /home/rkd1995/catkinws/src/cartographer/cartographer/io/internal/pbstreaminfo.cc In file included from /home/rkd1995/catkinws/src/cartographer/cartographer/io/protostream.h:23:0, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/internal/pbstreaminfo.cc:23: /home/rkd1995/catkinws/src/cartographer/cartographer/io/protostreaminterface.h:21:37: fatal error: /usr/local/include/google/protobuf/message.h: Permission denied compilation terminated. [12/340] Building CXX object CMakeFile...cartographer/io/drawtrajectories.cc.o FAILED: /usr/bin/c++ -DCLANGSUPPORTDYN_ANNOTATION -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkinws/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/drawtrajectories.cc.o -MF CMakeFiles/cartographer.dir/cartographer/io/drawtrajectories.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/io/drawtrajectories.cc.o -c /home/rkd1995/catkinws/src/cartographer/cartographer/io/drawtrajectories.cc In file included from /home/rkd1995/catkinws/src/cartographer/cartographer/io/drawtrajectories.h:22:0, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/drawtrajectories.cc:17: ./cartographer/mapping/proto/trajectory.pb.h:10:40: fatal error: /usr/local/include/google/protobuf/portdef.inc: Permission denied compilation terminated. [12/340] Building CXX object CMakeFile...pointsprocessorpipelinebuilder.cc.o FAILED: /usr/bin/c++ -DCLANGSUPPORTDYN_ANNOTATION -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkinws/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/pointsprocessorpipelinebuilder.cc.o -MF CMakeFiles/cartographer.dir/cartographer/io/pointsprocessorpipelinebuilder.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/io/pointsprocessorpipelinebuilder.cc.o -c /home/rkd1995/catkinws/src/cartographer/cartographer/io/pointsprocessorpipelinebuilder.cc In file included from /home/rkd1995/catkinws/src/cartographer/cartographer/sensor/rangefinderpoint.h:23:0, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/pointsbatch.h:28, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/pointsprocessor.h:22, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/pointsprocessorpipelinebuilder.h:26, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/pointsprocessorpipelinebuilder.cc:17: ./cartographer/sensor/proto/sensor.pb.h:10:40: fatal error: /usr/local/include/google/protobuf/portdef.inc: Permission denied compilation terminated. [12/340] Building CXX object CMakeFile...grapher.dir/cartographer/io/image.cc.o FAILED: /usr/bin/c++ -DCLANGSUPPORTDYNANNOTATION__ -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkinws/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/image.cc.o -MF CMakeFiles/cartographer.dir/cartographer/io/image.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/io/image.cc.o -c /home/rkd1995/catkinws/src/cartographer/cartographer/io/image.cc In file included from /home/rkd1995/catkinws/src/cartographer/cartographer/sensor/rangefinderpoint.h:23:0, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/pointsbatch.h:28, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/image.h:27, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/image.cc:1: ./cartographer/sensor/proto/sensor.pb.h:10:40: fatal error: /usr/local/include/google/protobuf/portdef.inc: Permission denied compilation terminated. [12/340] Building CXX object CMakeFile...rangefilteringpointsprocessor.cc.o FAILED: /usr/bin/c++ -DCLANGSUPPORTDYNANNOTATION__ -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkinws/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/verticalrangefilteringpointsprocessor.cc.o -MF CMakeFiles/cartographer.dir/cartographer/io/verticalrangefilteringpointsprocessor.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/io/verticalrangefilteringpointsprocessor.cc.o -c /home/rkd1995/catkinws/src/cartographer/cartographer/io/verticalrangefilteringpointsprocessor.cc In file included from /home/rkd1995/catkinws/src/cartographer/cartographer/sensor/rangefinderpoint.h:23:0, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/pointsbatch.h:28, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/pointsprocessor.h:22, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/verticalrangefilteringpointsprocessor.h:23, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/verticalrangefilteringpointsprocessor.cc:17: ./cartographer/sensor/proto/sensor.pb.h:10:40: fatal error: /usr/local/include/google/protobuf/portdef.inc: Permission denied compilation terminated. [12/340] Building CXX object CMakeFile...dratiosamplingpointsprocessor.cc.o FAILED: /usr/bin/c++ -DCLANGSUPPORTDYNANNOTATION__ -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkinws/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/fixedratiosamplingpointsprocessor.cc.o -MF CMakeFiles/cartographer.dir/cartographer/io/fixedratiosamplingpointsprocessor.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/io/fixedratiosamplingpointsprocessor.cc.o -c /home/rkd1995/catkinws/src/cartographer/cartographer/io/fixedratiosamplingpointsprocessor.cc In file included from /home/rkd1995/catkinws/src/cartographer/cartographer/sensor/rangefinderpoint.h:23:0, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/pointsbatch.h:28, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/pointsprocessor.h:22, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/fixedratiosamplingpointsprocessor.h:24, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/fixedratiosamplingpointsprocessor.cc:17: ./cartographer/sensor/proto/sensor.pb.h:10:40: fatal error: /usr/local/include/google/protobuf/portdef.inc: Permission denied compilation terminated. [12/340] Building CXX object CMakeFile...probabilitygridpointsprocessor.cc.o FAILED: /usr/bin/c++ -DCLANGSUPPORTDYN_ANNOTATION -isystem /usr/include/eigen3 -isystem /usr/local/include -I. -I/home/rkd1995/catkinws/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/probabilitygridpointsprocessor.cc.o -MF CMakeFiles/cartographer.dir/cartographer/io/probabilitygridpointsprocessor.cc.o.d -o CMakeFiles/cartographer.dir/cartographer/io/probabilitygridpointsprocessor.cc.o -c /home/rkd1995/catkinws/src/cartographer/cartographer/io/probabilitygridpointsprocessor.cc In file included from /home/rkd1995/catkinws/src/cartographer/cartographer/sensor/rangefinderpoint.h:23:0, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/pointsbatch.h:28, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/image.h:27, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/probabilitygridpointsprocessor.h:23, from /home/rkd1995/catkinws/src/cartographer/cartographer/io/probabilitygridpointsprocessor.cc:17: ./cartographer/sensor/proto/sensor.pb.h:10:40: fatal error: /usr/local/include/google/protobuf/portdef.inc: Permission denied compilation terminated. ninja: build stopped: subcommand failed. <== Failed to process package 'cartographer': Command '['ninja', '-j12', '-l12']' returned non-zero exit status 1
Reproduce this error by running: ==> cd /home/rkd1995/catkinws/buildisolated/cartographer && ninja -j12 -l12
Command failed, exiting.
Asked by rkd1995 on 2021-02-10 00:29:38 UTC
Comments