ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Cleaning up when moving a stack/package to a different directory so rosmake won't complain

asked 2011-02-17 15:22:53 -0500

updated 2011-02-17 19:00:11 -0500

Background: I just had some difficulty rebuilding a stack (openni) after copying it to a new directory, and the failures were due to the old path being cached somehow, even when using rosmake --pre-clean. The solution seems to have been to do 'make wipe' in the affected packages. Is there something like rosmake --wipe? Was there a better way to do this?

(edit: question title was originally "Should I always use rosmake or can I use make sometimes?" but I went on a bit of a tangent in the body. The new title is a bit better I think.)

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2011-02-17 17:31:16 -0500

Straszheim gravatar image

I think you want:

find -name CMakeCache.txt -delete

I'm guessing it is the cmake generated makefiles that are problematic (they don't like being moved around). The missing CMakeCache.txt will force regeneration.

edit flag offensive delete link more
1

answered 2011-02-17 16:09:06 -0500

kwc gravatar image

Not sure how to answer this as the title is different from the background...

You don't need to always use rosmake. rosmake is just there to help you build your package's dependencies. I find myself typing make much more often than rosmake as it is much, much faster if you are just making a local modification that you need to test.

This may change in the future as we bring rosmake and the 'make' level build system closer together, but, for now, that's my answer.

edit flag offensive delete link more

Comments

Sorry if the question was a bit confusing. What I was getting at was that, there seemed to be something I could do (make wipe) only with make and not with rosmake--making me wonder if maybe it could be done with rosmake and I just couldn't see how.
Patrick Bouffard gravatar image Patrick Bouffard  ( 2011-02-17 16:32:35 -0500 )edit
'wipe' is currently not a builtin target of rosmake. There is the custom --target command, but that isn't quite the same.
kwc gravatar image kwc  ( 2011-02-17 16:35:04 -0500 )edit
So another way to put it (and maybe I should make this a new question): what is the best command to use to clear out all of the stuff that is generated by rosmake, in particular, the stuff that causes rosmake to barf if you move the directory?
Patrick Bouffard gravatar image Patrick Bouffard  ( 2011-02-17 16:48:35 -0500 )edit
This is really is a problem with the openni Makefiles in that the clean should be enough but isn't.
tfoote gravatar image tfoote  ( 2011-02-17 17:56:32 -0500 )edit

Question Tools

Stats

Asked: 2011-02-17 15:22:53 -0500

Seen: 1,309 times

Last updated: Feb 17 '11