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

Revision history [back]

It seems like you are executing cmake . in some ros packages. That's something you should never ever do since for a few reasons:

  1. Calling cmake will overwrite the ROS Makefile with a platform-specific auto-generated Makefile.

  2. With cmake you normally do out-of-source builds, i.e. you do something like mkdir build; cd build; cmake .. This allows for easily removing all generated files by just removing the build directory. The standard ROS makefile does exactly this.

Also, it seems like something is wrong with your ros configuration. I suggest using rosws to manage local checkouts of repositories instead of checking them out manually. I cannot see where you add your local checkouts to the ROS_PACAKGE_PATH and where you set ROS_WORKSPACE. Both is required to build your packages.

It seems like you are executing cmake . in some ros packages. That's something you should never ever do since for a few reasons:

  1. Calling cmake will overwrite the ROS Makefile with a platform-specific auto-generated Makefile.

  2. With cmake you normally do out-of-source builds, i.e. you do something like mkdir build; cd build; cmake .. This allows for easily removing all generated files by just removing the build directory. The standard ROS makefile does exactly this.

Also, it seems like something is wrong with your ros configuration. I suggest using rosws to manage local checkouts of repositories instead of checking them out manually. I cannot see where you add your local checkouts to the ROS_PACAKGE_PATH and where you set ROS_WORKSPACE. Both is required to build your packages.

Edit: Check out this question for a quick introduction on how to create a ros workspace and add repositories to it. The rosws tutorial is much more detailed though.