Ask Your Question
0

What is the 'install' directory in my catkin workspace?

asked 2019-10-11 01:01:43 -0500

electrophod gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-10-11 02:02:06 -0500

Delb gravatar image

updated 2019-10-11 02:08:48 -0500

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.

edit flag offensive delete link more

Comments

1

Perhaps a question that provides some more insight: #q253704.

gvdhoorn gravatar imagegvdhoorn ( 2019-10-11 03:34:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-10-11 01:01:43 -0500

Seen: 24 times

Last updated: Oct 11