rosmake doesn't create binaries
I'm following the ROSNodeTutorialC++ (here). I've previously installed ROS indigo on ubuntu 14.04 and done some others tutorials.
When I run cmake .
in the folder node_example some suspicious warnings appear (see this ROS question, unanswered), and then when I run rosmake
, following the tutorial's instructions, lots of messages about "No Makefile in package ..." are printed off (which apparently is fine, according to this answer) but the usual messages expected from a make
call don't appear at all. This is the extract that deals with node_example:
[rosmake-7] Starting >>> node_example [ make ]
[rosmake-7] Finished <<< node_example ROS_NOBUILD in package node_example
Consequently, no binaries are generated.
If I run though make
, the compilation proceeds normally and the binaries are generated just fine.
Am I doing something wrong with rosmake
? Why is it not working as expected?
P.S. By the way, the environmental path ROSPACKAGEPATH contains conveniently the path to the folder node _example
Asked by capstayn on 2016-04-06 06:28:19 UTC
Answers
It appears that you have a ROS_NOBUILD
file in your node_example
package.
Try removing that (presumably empty) file.
Asked by joq on 2016-04-06 13:15:35 UTC
Comments
is there a reason why you use rosmake and not catkin_make like in this tutorial
Asked by Mehdi. on 2016-04-06 08:05:08 UTC
Oh, none, other than that was the instruction given in the ROSNodeTutorialC++. Just created a catking workspace and used catkin_make, and worked like a charm, thanks. So perhaps the tutorial I was following should be updated...
Asked by capstayn on 2016-04-06 09:54:11 UTC
I think rosbuild is deprecated and not recommended starting from ROS Indigo. But it is true that this page misses a yellow box warning users that they should use the catkin tutorial instead.
Asked by Mehdi. on 2016-04-06 10:32:34 UTC
Rosbuild is still supported for building from source in both Indigo and Jade. The limitation is that one cannot release rosbuild binary packages via the build farm.
Asked by joq on 2016-04-06 13:13:12 UTC