How do I build a ROS package?
I am getting errors when I type make.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
I am getting errors when I type make.
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
rosmake
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.
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
Asked: 2011-02-14 09:47:04 -0600
Seen: 917 times
Last updated: Feb 16 '11
How can I get involved in ROS community?
How do I install a missing ROS package?
ROS Packages vs. Linux Packages
What is a Package, Stack, Repository?
What are the best practices for tagging questions?
Is ROS Answers an Alternative to the [ros-users] Mailing List?
What are the units and coordinate conventions in ROS?
How to get notified of new questions with a certain tag by email?