Robotics StackExchange | Archived questions

Build specific package using catkin_make

Hi there,
I'm running ROS Indigo on Raspberry Pi 2 model B. I need to build some packages of my own. Whenever I do catkinmake, all the packages in the src is getting complied. I want to make only one package. I tried **catkinmake --pkg package** and catkinmake -DCATKINWHITELIST_PACKAGES="package". Still every packages are getting build. Is there any other method to do this? Also why there are some extra folders in the workspace - buildisolated, develisolated and external_src. Why do we need them?

Thanks in advance.

Asked by AnandGeorge on 2016-03-29 04:46:54 UTC

Comments

I could run catkin_make -DCATKIN_WHITELIST_PACKAGES="package" and only the package specified gets compiled. Could you post the first few lines after you run the command, especially the actual running command?

Asked by DavidN on 2016-03-29 23:07:16 UTC

Mine is

#### Running command: "cmake /home/davidn/catkin_ws/src -DCATKIN_WHITELIST_PACKAGES=my_package -DCATKIN_DEVEL_PREFIX=/home/davidn/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/davidn/catkin_ws/install -G Unix Makefiles" in "/home/davidn/catkin_ws/build"####

Asked by DavidN on 2016-03-29 23:08:00 UTC

Yeah. Its working. :)

Asked by AnandGeorge on 2016-03-31 13:24:31 UTC

Answers

At this point, the best alternative is probably to use the catkin build command of the catkin_tools package.

Asked by joq on 2016-03-29 10:09:45 UTC

Comments