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

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: https://index.ros.org/doc/ros2/Colcon... .

wget https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos
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:
/home/zhfu/ros2_ws/src/eProsima/Fast-RTPS/src/cpp/ASIO_INCLUDE_DIR
   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
4

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?

https://index.ros.org/doc/ros2/Linux-...

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

edit flag offensive delete link more

Comments

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
0

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

2 followers

Stats

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

Seen: 5,332 times

Last updated: Dec 18 '18