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

Rebuilding single package with catkin

asked 2013-12-29 22:49:42 -0500

AStudent gravatar image

updated 2014-01-28 17:04:56 -0500

ngrennan gravatar image

I have a catkin workspace with a lot of packages. Now, if I make changes to CMakeLists.txt in one of the packages, how do I rebuild only that single package, provided my changes do not concern any other package (e.g. other packages need not to be rebuilt)?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-12-30 01:25:28 -0500

catkin_make --pkg [YOUR_PACKAGE]

should do what you are asking for.

edit flag offensive delete link more
1

answered 2019-09-25 14:19:31 -0500

bigbellmercy gravatar image

Yes it rebuild only the package but it does not rebuild actually because any change has not been done. How can I rebuild one package from the beginning as like it is a new one? catkin clean PKG command does not work.

edit flag offensive delete link more

Comments

If you're just looking to get changes to CMakeLists.txt picked up, you could add --force-cmake to your catkin_make invocation.

gvdhoorn gravatar image gvdhoorn  ( 2019-09-25 14:49:34 -0500 )edit

Thanks, it works as you told!

catkin_make --pkg <YOUR_PACKAGE> --force-cmake
bigbellmercy gravatar image bigbellmercy  ( 2019-09-25 16:21:58 -0500 )edit

Question Tools

Stats

Asked: 2013-12-29 22:49:42 -0500

Seen: 5,932 times

Last updated: Sep 25 '19