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

Creation of debian installer from source for custom package [closed]

asked 2022-07-04 07:58:48 -0500

shouvik1984 gravatar image

Greetings,

I am trying to create the debian package installer for release process of our custom packages. I am able to create the .deb packages and install them. rospack find <pkg_name> is able to find it in /opt/ros/noetic/share/<pkg_name>. I can see all the custom message files and source headers are present as well. However, the launch files, param files, and even the compiled binary is not found. Neither I am able to use roslaunch or rosrun to run the package.

To create the deb installer I have followed the steps as mentioned below

  • bloom-generate rosdebian --ros-distro noetic #ran in the folder containig package.xml
  • fakeroot debian/rules binary #created the .deb installer one level up

Ros-distro: Noetic OS: Ubuntu 20.04

Please let me know what step was missed.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by shouvik1984
close date 2023-03-15 07:00:31.427655

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-07-06 04:59:40 -0500

shouvik1984 gravatar image

I was able to fix it by adding the following lines in the CMakeList.txt

install(TARGETS ${PROJECT_NAME}_node
  RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

## 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}
)

## Mark cpp header files for installation
install(DIRECTORY include/${PROJECT_NAME}/
  DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
  FILES_MATCHING PATTERN "*.h"
  PATTERN ".svn" EXCLUDE
)

## Mark other files for installation (e.g. launch and bag files, etc.)
install(DIRECTORY launch/ 
  # myfile1
  # myfile2
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)

## Mark other files for installation (e.g. launch and bag files, etc.)
install(DIRECTORY param/ 
  # myfile1
  # myfile2
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/param
)
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-07-04 07:58:48 -0500

Seen: 67 times

Last updated: Jul 06 '22