ROS2 installation on Raspberry Pi

asked 2021-01-06 04:32:09 -0500

Kanwal gravatar image

updated 2021-01-06 10:59:01 -0500

sloretz gravatar image

Hi, I'm trying to install ROS2 Foxy on Raspberry Pi with OS: Raspbian. I'm get following error message:

make[2]: *** [src/cpp/CMakeFiles/fastrtps.dir/build.make:219: src/cpp/CMakeFiles/fastrtps.dir/rtps/writer/ReaderProxy.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [src/cpp/CMakeFiles/fastrtps.dir/build.make:193: src/cpp/CMakeFiles/fastrtps.dir/rtps/writer/RTPSWriter.cpp.o] Error 1
make[2]: *** [src/cpp/CMakeFiles/fastrtps.dir/build.make:232: src/cpp/CMakeFiles/fastrtps.dir/rtps/writer/StatelessWriter.cpp.o] Error 1
make[2]: *** [src/cpp/CMakeFiles/fastrtps.dir/build.make:206: src/cpp/CMakeFiles/fastrtps.dir/rtps/writer/StatefulWriter.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:987: src/cpp/CMakeFiles/fastrtps.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
Failed   <<< fastrtps [23.2s, exited with code 2]
Finished <<< rmw_implementation_cmake [4.88s]                                                                                                                      
[121.160s] WARNING:asyncio:Unknown child process pid 3121, will report returncode 255
Aborted  <<< spdlog_vendor [1.82s]                                                                                       
Aborted  <<< rosidl_generator_dds_idl [0.45s]

Summary: 68 packages finished [1min 59s]
  1 package failed: fastrtps
  2 packages aborted: rosidl_generator_dds_idl spdlog_vendor
  1 package had stderr output: fastrtps
  197 packages not processed

Any thoughts what i'm doing wrong here.

Thank You in advance

edit retag flag offensive close merge delete


There doesn't seem to be enough output to figure out what's wrong. Are there any error messages higher up?

If not - this page suggests figuring out the command makeis running and trying to execute that:

sloretz gravatar image sloretz  ( 2021-01-06 11:01:19 -0500 )edit


Yes, there are more errors. You can find the complete log here:

The command make seems to be working.

Thank You!

Kanwal gravatar image Kanwal  ( 2021-01-07 03:59:02 -0500 )edit

/home/pi/ros2_foxy/src/eProsima/Fast-DDS/include/fastdds/rtps/attributes/ServerAttributes.h:72:30: error: expected identifier before numeric constant FASTDDS_DEPRECATED_UNTIL(3, "eprosima::fastrtps::rtps:GetEDPPublicationsReader()",

Not sure why it isn't building on Rasbian. I would recommend opening an issue upstream and seeing if it's a known bug

sloretz gravatar image sloretz  ( 2021-01-07 11:55:18 -0500 )edit