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

1 Answer

Sort by ยป oldest newest most voted
2

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 imageZhoulai Fu ( 2018-12-18 13:57:14 -0500 )edit

Thanks!! worked for me

suab321 gravatar imagesuab321 ( 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

2 followers

Stats

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

Seen: 543 times

Last updated: Dec 18 '18