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

1 Answer

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 1,758 times

Last updated: Dec 18 '18