Last active
February 18, 2025 13:59
Revisions
-
Sam Pfeiffer revised this gist
Dec 15, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -83,7 +83,7 @@ dh: Command not found ``` You need to install: ```bash sudo apt-get install dpkg-dev debhelper ``` In the end you'll get a line like: -
Sam Pfeiffer revised this gist
Dec 15, 2016 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -77,6 +77,15 @@ Having sourced the necessary dependencies (most probably `source /opt/ros/indigo fakeroot debian/rules binary ``` If you get the error: ```bash dh: Command not found ``` You need to install: ```bash sudo apt-get install dpkg-dev ``` In the end you'll get a line like: ``` -
Sam Pfeiffer revised this gist
Dec 15, 2016 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,6 +34,11 @@ the package to be in the same folder where `package.xml` file is. bloom-generate rosdebian --os-name ubuntu --os-version trusty --ros-distro indigo ``` You can also let the tool guess some stuff: ```bash bloom-generate rosdebian --ros-distro indigo ``` You'll get something like this: ```bash -
Sam Pfeiffer revised this gist
Dec 15, 2016 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,14 +3,15 @@ The instructions are based on [this answers.ros.org thread](http://answers.ros.org/question/173804/generate-deb-from-ros-package/). ## Get dependencies You may need the latest pip, follow the [official instructions](https://pip.pypa.io/en/stable/installing/). Install [bloom](http://ros-infrastructure.github.io/bloom/): ```bash sudo apt-get install python-bloom ``` or (recommended) ```bash sudo pip install -U bloom -
Sam Pfeiffer revised this gist
Nov 23, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # How to make a debian from a ROS package The instructions are based on [this answers.ros.org thread](http://answers.ros.org/question/173804/generate-deb-from-ros-package/). -
Sam Pfeiffer revised this gist
Nov 22, 2016 . 1 changed file with 16 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,10 +16,10 @@ or sudo pip install -U bloom ``` Install fakeroot: ```bash sudo apt-get install fakeroot ``` ## Get ready @@ -63,3 +63,17 @@ action assets CMakeLists.txt debian launch package.xml README.md scripts changelog compat control rules source ``` ## Create binary debian Having sourced the necessary dependencies (most probably `source /opt/ros/indigo/setup.bash`) execute: ```bash fakeroot debian/rules binary ``` In the end you'll get a line like: ``` dpkg-deb: building package `ros-indigo-audio-file-player' in `../ros-indigo-audio-file-player_0.0.1-0trusty_amd64.deb'. ``` -
Sam Pfeiffer created this gist
Nov 22, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,65 @@ # How to make a debian from a ROS package and offer it thru launchpad The instructions are based on [this answers.ros.org thread](http://answers.ros.org/question/173804/generate-deb-from-ros-package/). ## Get dependencies Install [bloom](http://ros-infrastructure.github.io/bloom/): ```bash sudo apt-get install python-bloom ``` or ```bash sudo pip install -U bloom ``` Install [checkinstall](https://help.ubuntu.com/community/CheckInstall): ```bash sudo apt-get install checkinstall ``` ## Get ready To make a debian folder structure from the ROS package you must cd into the package to be in the same folder where `package.xml` file is. ## Create debian structure ```bash bloom-generate rosdebian --os-name ubuntu --os-version trusty --ros-distro indigo ``` You'll get something like this: ```bash ~/audio_ws/src/audio_file_player$ bloom-generate rosdebian --os-name ubuntu --os-version trusty --ros-distro indigo ==> Generating debs for ubuntu:trusty for package(s) ['audio_file_player'] No homepage set, defaulting to '' No historical releaser history, using current maintainer name and email for each versioned changelog entry. No CHANGELOG.rst found for package 'audio_file_player' Package 'audio-file-player' has dependencies: Run Dependencies: rosdep key => trusty key rospy => ['ros-indigo-rospy'] actionlib_msgs => ['ros-indigo-actionlib-msgs'] Build and Build Tool Dependencies: rosdep key => trusty key rospy => ['ros-indigo-rospy'] actionlib_msgs => ['ros-indigo-actionlib-msgs'] catkin => ['ros-indigo-catkin'] ==> Placing templates files in the 'debian' folder. ==> In place processing templates in 'debian' folder. Expanding 'debian/control.em' -> 'debian/control' Expanding 'debian/changelog.em' -> 'debian/changelog' Expanding 'debian/compat.em' -> 'debian/compat' Expanding 'debian/rules.em' -> 'debian/rules' ~/audio_ws/src/audio_file_player$ ls action assets CMakeLists.txt debian launch package.xml README.md scripts ~/audio_ws/src/audio_file_player$ ls debian changelog compat control rules source ```