Failure in building ROS2 Rolling via source
When the colcon starts building tf2 the following error pops up. How does one fix this issue and continue build via source?
/home/nithish/ros2_rolling/install/geometry_msgs/include/geometry_msgs/msg/detail/vector3__traits.hpp:28:5: error: ‘value_to_yaml’ was not declared in this scope
28 | value_to_yaml(msg.x, out);
| ^~~~~~~~~~~~~
/home/nithish/ros2_rolling/install/geometry_msgs/include/geometry_msgs/msg/detail/vector3__traits.hpp:38:5: error: ‘value_to_yaml’ was not declared in this scope
38 | value_to_yaml(msg.y, out);
| ^~~~~~~~~~~~~
In order to best help, we would need to know what steps you took to reach this result and what instructions you were following. Also of potential use would be the output of
vcs export --exact src
from your workspace to see which exact versions of ROS packages you are trying to build.I can't promise this is your specific issue, but I've had that issue before when I tried building in a dirty terminal that had already sourced Foxy binaries. When I nuked that workspace's build/log/install and opened a fresh terminal I got it to work again.