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: . 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 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 .

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: for more details. by tfoote
close date 2019-04-07 22:43:43.092037


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 imageWilliam ( 2018-03-05 21:15:01 -0500 )edit