catkin_make is failing to build with 'Invoking "make -j2 -l2" failed' message when using geometry_msgs/Point32
I am using ROS Melodic, installed on Ubuntu 18.04.
When I include the geometry_msgs/Point32
in my .msg file, the catkin_make fails
catkin_make builds just fine with the following content in the .msg file:
geometry_msgs/Point genericPt
#geometry_msgs/Point32 genericPt
When the Point32 is used in .msg file the catkin_make fails. This fails:
geometry_msgs/Point genericPt
geometry_msgs/Point32 genericPt
I have noticed similar behavior with a few other geometry_msgs, for example geometry_msgs/Accel.msg
works, geometry_msgs/AccelStamped.msg
fails even though both are in the /opt/ros/melodic/share/geometry_msgs/msg directory
I am pretty new to ROS and this is a clean, generic install of both the OS and ROS.
Thanks for any guidance that you can provide.
well, "catkin_make is failing" is not a real error description. If it fails, it will provide some kind of error message. Without this, in most cases, it is impossible to help you with debugging.
For the future, please provide a copy'n'paste of the relevant part of the catkin_make output, i.e. the complete error message, but not any of the regular output.
As for your specific problem here, I guess the problem is from you having two fields called
genericPt
in your message (on ofgeometry_msgs/Point
type, the other ofgeometry_msgs/Point32
). Those names will collide. Change one and you should be fine.But as I said above, without the real error message, this is just a hunch and could be resolved way better with the actual error output.