Compilation Error for ROS2 Ament-Tutorial on Creating an Overlay [closed]

asked 2018-03-05 12:01:32 -0500

Dr. Love gravatar image

updated 2018-03-05 17:10:14 -0500

jayess gravatar image

I was running through the tutorial at: https://github.com/ros2/ros2/wiki/Ame... . I had no issue building ROS2 from source, but when I created an overlay and tried to build it I saw the following build errors:

image description

It turns out the source code in the subscriber_node.cpp and publisher_node.cpp on https://github.com/ros2/examples.git is slightly different. Specifically, changing register_macro.hpp to class_loader_register_macro.h solves the issue for both files.

image description

I also needed to use -DCMAKE_BUILD_TYPE=Release to successfully compile as noted in https://github.com/ros2/examples/issu... .

Hopefully this helps someone else get up and running a little faster.

edit retag flag offensive reopen merge delete

Closed for the following reason Question does not follow our guidelines for questions. Please see: http://wiki.ros.org/Support for more details. by tfoote
close date 2019-04-07 22:43:43.092037

Comments

Hi, please do not use pictures of text, they cannot be copied, quoted, or searched for on the internet. Please edit your question and replace the pictures with actual text and I'll try to help you after that.

William gravatar image William  ( 2018-03-05 21:15:01 -0500 )edit