Catkin install destination
I'm trying to figure out where my files should be installed by the Cmake install() macro (ROS melodic on Ubuntu 18.04). I found this list of catkin environment variables which are relative to the CMAKE_INSTALL_PREFIX
. But how can I actually find the path of the install destinations to check if my files were successfully installed? I tried echo $CATKIN_GLOBAL_INCLUDE_DESTINATION
or echo $CMAKE_INSTALL_PREFIX
which both output an empty line.
I'm also wondering why I never had an install folder in my workspace yet. Should I change my CMAKE_INSTALL_PREFIX
path when using ROS? I never read anything about this before. Some packages are even missing the install macro completely and work fine anyway.
Running
catkin_make install
should create aninstall
folder in your workspace. If our packages contain install directives.A good explanation can be found here: https://wiki.ros.org/catkin/Tutorials...
For which variables you should use, and how, you'll want to take a look at the catkin 0.7.20 documentation » How to do common tasks » Package format 2 (recommended). Specifically the Building and installing targets section.
There are conventions for where files should end up and they are documented in those articles.
Do I also need to source the install space?
Yes.