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

catkin_make install to /opt/groovy|hydro

asked 2014-07-19 05:29:05 -0500

silgon gravatar image

updated 2022-01-22 16:16:28 -0500

Evgeny gravatar image

According to the catkin tutorial you can define the prefix when using catkin_make install in the following way:

catkin_make -DCMAKE_INSTALL_PREFIX=/opt/ros/groovy install

The question is: how to really install in in my system? because after I do that, the package is installed as catkin_make install without any option. So it stays in the same directory. How can I install it in /opt/ros/groovy?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2014-07-19 10:37:41 -0500

demmeln gravatar image

catkin_make is a fairly thin layer over cmake/make invocations. This means the above command is simply invoking make install on the cmake generated Makefiles. The install prefix is the one for the catkin_make/cmake invocation that generated these make files. If you built your project with catkin_make build ... before and then invoke your command above, cmake will not be rerun to regenerate the files (catkin does not currently keep track of which arguments you passed previously).

In short, the following invocation should probably do the right thing:

catkin_make -DCMAKE_INSTALL_PREFIX=/opt/ros/groovy install --force-cmake
edit flag offensive delete link more

Comments

1

Got it. Cmake was taking the cache. Thanks!

silgon gravatar image silgon  ( 2014-07-19 11:33:50 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-07-19 05:29:05 -0500

Seen: 1,007 times

Last updated: Jul 19 '14