What is the 'install' directory in my catkin workspace?
Recently I observed that my catkin workspace has 4 directories instead of 3 and the fourth one being 'install' It has some bash scripts regarding setup similar to the ones in the devel folder. What exactly is it?
Asked by electrophod on 2019-10-11 01:01:43 UTC
Answers
It's not an issue to have this directory in your catkin workspace. Its name is really self-explanatory : it's the folder where you install your targets once they've been built. You can find this in the catkin wiki.
Now why do you have this folder and if you don't want it anymore is related to your CMakeLists.txt
. If you use the catkin
command catkin_create_pkg
you would get this template of CMakeLists.txt
(only the relevant part) :
## Mark libraries for installation
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_libraries.html
# install(TARGETS ${PROJECT_NAME}
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
# )
It's all commented by default but if you uncomment it then the install folder is created after running make install
. So just check your CMakeLists.txt
to find all the instructions install()
.
See #q253363 for a similar question.
Asked by Delb on 2019-10-11 02:02:06 UTC
Comments
Perhaps a question that provides some more insight: #q253704.
Asked by gvdhoorn on 2019-10-11 03:34:10 UTC
Comments