Ask Your Question

How do I build a ROS package?

asked 2011-02-14 09:47:04 -0600

mmwise gravatar image

updated 2014-01-28 17:09:06 -0600

ngrennan gravatar image

I am getting errors when I type make.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2011-02-15 07:00:43 -0600

mwise gravatar image

Use rosmake. It first builds all the package's dependencies, then builds the package itself.

E.g., to build the rviz package:

rosmake rviz

You can do this from anywhere. Alternatively, you can go to the package directory, then run rosmake with no arguments:

roscd rviz
edit flag offensive delete link more

answered 2011-02-15 11:58:01 -0600

joq gravatar image

Packages have two kinds of dependencies: system dependencies, and other ROS packages.

For the system dependencies, you may need to run (for example):

rosdep install rviz

For the ROS package dependencies, run:

rosmake rviz

After you know the dependencies are up to date, then it's OK to run make in the package directory. That is faster during active package development.

edit flag offensive delete link more

answered 2011-02-16 12:37:51 -0600

makokal gravatar image

Also for package dependencies, especially those downloaded packages, its is useful to run

rosmake <package_name> --rosdep-install

Which then tries the much it can to fix dependencies based on the rosdep.yaml files

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


Asked: 2011-02-14 09:47:04 -0600

Seen: 767 times

Last updated: Feb 16 '11