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

Revision history [back]

click to hide/show revision 1
initial version

ROS and catkin packages need to know the installation path when they are built, so the catkin installation process requires that you specify the installation directory when you run catkin_make install. If you don't specify an installation directory, it defaults to the install directory within your workspace.

You can change the destination directory with -DCMAKE_INSTALL_PREFIX:

$ catkin_make -DCMAKE_INSTALL_PREFIX=/opt/ros/<distro> install

You may want to choose an installation directory like /opt/PapaG that doesn't overlap with the system ROS installation, and then instruct you users to install the files in that directory.

The catkin_make wiki page provides more details and examples of how you can use catkin_make and its install command.