ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

what's difference between rosmake & makefile?

asked 2011-07-05 01:30:34 -0600

sam gravatar image

If I didn't change any source file and run rosmake twice, I found that rosmake will also remake again. In this case it takes 2.66 sec,but in other it may cause longer. What's happened?

here is the log:

[rosmake-1] Starting >>> robot_setup_tf [ make ]
[rosmake-1] Finished <<< robot_setup_tf [PASS] [ 2.66 seconds ]

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2011-07-05 04:01:05 -0600

seanarm gravatar image

Let me see if I understand what you're asking: Why does ROS remake unchanged code when you perform two rosmakes in sequence?

The short answer-- it just does. rosmake acts the same as make, with some extras. It cycles through all your package's dependencies (and the package itself) to check if anything has changed.

'rosmake -s' will only build the package you specify, and not its dependencies. 'rosmake --pre-clean' will clean the specified package and all its dependencies before remaking all of them. 'rosmake -s --pre-clean' will clean and remake only the specified package.

edit flag offensive delete link more

answered 2011-07-05 08:57:21 -0600

Most likely it didn't actually build anything the second time. It takes a few seconds for it to figure out that it doesn't need to build again. That's probably what you are seeing.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-07-05 01:30:34 -0600

Seen: 374 times

Last updated: Jul 05 '11