Ask Your Question
0

Build specific package using catkin_make

asked 2016-03-29 04:46:54 -0500

AnandGeorge gravatar image

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 catkin_make, all the packages in the src is getting complied. I want to make only one package. I tried catkin_make --pkg package and catkin_make -DCATKIN_WHITELIST_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 - build_isolated, devel_isolated and external_src. Why do we need them?

Thanks in advance.

edit retag flag offensive close merge delete

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?

DavidN gravatar image DavidN  ( 2016-03-29 23:07:16 -0500 )edit

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"####
DavidN gravatar image DavidN  ( 2016-03-29 23:08:00 -0500 )edit

Yeah. Its working. :)

AnandGeorge gravatar image AnandGeorge  ( 2016-03-31 13:24:31 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-03-29 10:09:45 -0500

joq gravatar image

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

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

1 follower

Stats

Asked: 2016-03-29 04:46:54 -0500

Seen: 2,049 times

Last updated: Mar 29 '16