ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

CMake Error while installing ROS2 packages with colcon

asked 2018-12-18 05:48:53 -0500

updated 2018-12-18 13:10:42 -0500

I am following the colcon tutorial: .

vcs import ~/ros2_ws/src < ros2.repos
colcon build --symlink-install

I got an error message below. How would I fix it? Thanks.

 Starting >>> fastrtps
--- stderr: fastrtps                                             
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
   used as include directory in directory /home/zhfu/ros2_ws/src/eProsima/Fast-RTPS/src/cpp

Failed   <<< fastrtps   [ Exited with code 1 ]
Aborted  <<< ament_copyright                                

Summary: 17 packages finished [4.84s]
  1 package failed: fastrtps
  1 package aborted: ament_copyright
  1 package had stderr output: fastrtps
  209 packages not processed
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-12-18 13:43:37 -0500

tfoote gravatar image

That sounds like you're missing a dependency or two. Have you installed all the system dependencies for installing from source?

In particular the libasio-dev package, but you should make sure all the dependencies are available.

edit flag offensive delete link more


Yeah. Thanks. Missing libasio-dev. The colcon document did mention it.

Zhoulai Fu gravatar image Zhoulai Fu  ( 2018-12-18 13:57:14 -0500 )edit

Thanks!! worked for me

suab321 gravatar image suab321  ( 2019-06-23 14:56:57 -0500 )edit

answered 2021-04-21 21:06:53 -0500

Anthony Phan gravatar image

I also experience the same issue when following the ROS2 installation guide. Under the heading "Install development tools and ROS tools" the author provides several lines of commands to install dependent packages. Turns out copy and pasting the entire commands will not install all of them, rather you have to copy and paste each individual section.

edit flag offensive delete link more

Question Tools



Asked: 2018-12-18 05:48:53 -0500

Seen: 4,703 times

Last updated: Dec 18 '18