[Documentation] [TitleIndex] [WordIndex

Building and Installing ROS Tools from source

Install from source requires that you download and compile the source code on your own. Beware it will take while to compile the Ros Tools and you will have to fix a few things described in the respective section. This has to built in this order so that they will install because of dependancies.

ROS Tool Build

Setup

Now to install some of the OS packages that we need for ROS.

ROS Tool Build

Start by building the core ROS Tools packages.

First move to the area in the directories that we will be using:

Create a catkin_pkg .deb file

Next get the sources from github.com

git clone http://github.com/ros-infrastructure/catkin_pkg.git

Next move into the directory and verify that the release of the OS we are using is in the "Suite:" line

cd catkin_pkg
more stdeb.cfg

The output should look like this:

[DEFAULT]
Package: python-catkin-pkg
Depends: python
Suite: lucid oneiric precise quantal wheezy
XS-Python-Version: >= 2.6

If not add your release to the "Suite:" line

Now issue the command that will build the python .deb package for you

python setup.py --command-packages=stdeb.command bdist_deb

This process will build the package at the end it will end with the line and it is not an error

dpkg-buildpackage: binary only upload (no source included)

After the build completes move to where the .deb files exists

cd deb_dist

You should have a listing like this:

drwxr-xr-x 9 root root  4096 Jan 28 20:48 catkin-pkg-0.1.9
-rw-r--r-- 1 root root   822 Jan 28 20:49 catkin-pkg_0.1.9-1_armhf.changes
-rw-r--r-- 1 root root   703 Jan 28 20:48 catkin-pkg_0.1.9-1.debian.tar.gz
-rw-r--r-- 1 root root   835 Jan 28 20:48 catkin-pkg_0.1.9-1.dsc
-rw-r--r-- 1 root root 20936 Jan 28 20:48 catkin-pkg_0.1.9.orig.tar.gz
-rw-r--r-- 1 root root 17514 Jan 28 20:49 python-catkin-pkg_0.1.9-1_all.deb

With this complete you can now install the .deb file on your local machine

dpkg -i python-catkin-pkg_0.1.9-1_all.deb

And after installation you can validate that it has been installed like this:

 apt-cache show python-catkin-pkg

And it should display an entry like this:

Package: python-catkin-pkg
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 156
Maintainer: Dirk Thomas <dthomas@willowgarage.com>
Architecture: all
Source: catkin-pkg
Version: 0.1.9-1
Depends: python2.7 | python2.6, python (>= 2.6.6-7~), python (<< 2.8)
Description: catkin package library
 Library for retrieving information about catkin packages.

Create a vcstools .deb file

Next get the sources from github.com

git clone http://github.com/vcstools/vcstools.git

Next move into the directory and verify that the release of the OS we are using is in the "Suite:" line

cd vcstools
more stdeb.cfg

The output should look like this:

[DEFAULT]
Depends: subversion, mercurial, git-core, bzr, python-yaml
Suite: lucid oneiric precise quantal wheezy
XS-Python-Version: >= 2.6

If not add your release to the "Suite:" line

Now issue the command that will build the python .deb package for you

python setup.py --command-packages=stdeb.command bdist_deb

This process will build the package at the end it will end with the line and it is not an error

dpkg-buildpackage: binary only upload (no source included)

After the build completes move to where the .deb files exists

cd deb_dist

You should have a listing like this:

-rw-r--r-- 1 root root 24708 Jan 27 16:21 python-vcstools_0.1.26-1_all.deb
drwxr-xr-x 8 root root  4096 Jan 27 16:20 vcstools-0.1.26
-rw-r--r-- 1 root root   901 Jan 27 16:21 vcstools_0.1.26-1_armhf.changes
-rw-r--r-- 1 root root   809 Jan 27 16:20 vcstools_0.1.26-1.debian.tar.gz
-rw-r--r-- 1 root root   877 Jan 27 16:20 vcstools_0.1.26-1.dsc
-rw-r--r-- 1 root root 46340 Jan 27 16:19 vcstools_0.1.26.orig.tar.gz

With this complete you can now install the .deb file on your local machine

dpkg -i python-vcstools_0.1.26-1_all.deb

And after installation you can validate that it has been installed like this:

 apt-cache show python-vcstools

And it should display an entry like this:

Package: python-vcstools
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 173
Maintainer: Tully Foote, Thibault Kruse, Ken Conley <tfoote@willowgarage.com>
Architecture: all
Source: vcstools
Version: 0.1.26-1
Depends: python2.7 | python2.6, python (>= 2.6.6-7~), python (<< 2.8), python-yaml, python-dateutil, subversion, mercurial, git-core, bzr
Description: VCS/SCM source control library for svn, git, hg, and bzr
 Library for managing source code trees from multiple version control systems.
 Current supports svn, git, hg, and bzr.

Create a rosinstall .deb file

Next get the sources from github.com

git clone http://github.com/vcstools/rosinstall.git

Next move into the directory and verify that the release of the OS we are using is in the "Suite:" line

cd rosinstall
more stdeb.cfg

The output should look like this:

[DEFAULT]
Depends: subversion, mercurial, git-core, bzr, python-yaml, python-vcstools
Suite: lucid oneiric precise quantal wheezy
XS-Python-Version: >= 2.6

If not add your release to the "Suite:" line

Now issue the command that will build the python .deb package for you

python setup.py --command-packages=stdeb.command bdist_deb

This process will build the package at the end it will end with the line and it is not an error

dpkg-buildpackage: binary only upload (no source included)

After the build completes move to where the .deb files exists

cd deb_dist

You should have a listing like this:

-rw-r--r-- 1 root root  53130 Jan 27 16:44 python-rosinstall_0.6.22-1_all.deb
drwxr-xr-x 9 root root   4096 Jan 27 16:43 rosinstall-0.6.22
-rw-r--r-- 1 root root    824 Jan 27 16:44 rosinstall_0.6.22-1_armhf.changes
-rw-r--r-- 1 root root    729 Jan 27 16:43 rosinstall_0.6.22-1.debian.tar.gz
-rw-r--r-- 1 root root    874 Jan 27 16:43 rosinstall_0.6.22-1.dsc
-rw-r--r-- 1 root root 110414 Jan 27 16:43 rosinstall_0.6.22.orig.tar.gz

With this complete you can now install the .deb file on your local machine

dpkg -i python-rosinstall_0.6.22-1_all.deb

And after installation you can validate that it has been installed like this:

 apt-cache show python-rosinstall

And it should display an entry like this:

Package: python-rosinstall
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 309
Maintainer: Tully Foote <tfoote@willowgarage.com>
Architecture: all
Source: rosinstall
Version: 0.6.22-1
Depends: python2.7 | python2.6, python (>= 2.6.6-7~), python (<< 2.8), python-vcstools, python-yaml, subversion, mercurial, git-core, bzr
Description: The installer for ROS
 The installer for ROS

Create a rospkg .deb file

Next get the sources from github.com

git clone http://github.com/ros/rospkg.git

Next move into the directory and verify that the release of the OS we are using is in the "Suite:" line

cd rospkg
more stdeb.cfg

The output should look like this:

[DEFAULT]
Depends: python-yaml, lsb-release
Suite: lucid oneiric precise quantal wheezy
XS-Python-Version: >= 2.6

If not add your release to the "Suite:" line

Now issue the command that will build the python .deb package for you

python setup.py --command-packages=stdeb.command bdist_deb

This process will build the package at the end it will end with the line and it is not an error

dpkg-buildpackage: binary only upload (no source included)

After the build completes move to where the .deb files exists

cd deb_dist

You should have a listing like this:

-rw-r--r-- 1 root root 24652 Jan 27 16:50 python-rospkg_1.0.18-1_all.deb
drwxr-xr-x 9 root root  4096 Jan 27 16:49 rospkg-1.0.18
-rw-r--r-- 1 root root   786 Jan 27 16:50 rospkg_1.0.18-1_armhf.changes
-rw-r--r-- 1 root root   738 Jan 27 16:49 rospkg_1.0.18-1.debian.tar.gz
-rw-r--r-- 1 root root   831 Jan 27 16:49 rospkg_1.0.18-1.dsc
-rw-r--r-- 1 root root 89958 Jan 27 16:48 rospkg_1.0.18.orig.tar.gz

With this complete you can now install the .deb file on your local machine

dpkg -i python-rospkg_1.0.18-1_all.deb

And after installation you can validate that it has been installed like this:

 apt-cache show python-rospkg

And it should display an entry like this:

Package: python-rospkg
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 177
Maintainer: Ken Conley <kwc@willowgarage.com>
Architecture: all
Source: rospkg
Version: 1.0.18-1
Depends: python2.7 | python2.6, python (>= 2.6.6-7~), python (<< 2.8), python-yaml, lsb-release
Description: ROS package library
 Library for retrieving information about ROS packages and stacks.

Create a rosdep .deb file

Next get the sources from github.com

git clone http://github.com/ros/rosdep.git

Next move into the directory and verify that the release of the OS we are using is in the "Suite:" line

cd rospkg
more stdeb.cfg

The output should look like this:

[DEFAULT]
Depends: python-rospkg, python-yaml, python-catkin-pkg
Suite: lucid oneiric precise quantal wheezy
XS-Python-Version: >= 2.6

If not add your release to the "Suite:" line

Now issue the command that will build the python .deb package for you

python setup.py --command-packages=stdeb.command bdist_deb

This process will build the package at the end it will end with the line and it is not an error

dpkg-buildpackage: binary only upload (no source included)

After the build completes move to where the .deb files exists

cd deb_dist

You should have a listing like this:

-rw-r--r-- 1 root root 45040 Jan 27 17:26 python-rosdep_0.10.12-1_all.deb
drwxr-xr-x 9 root root  4096 Jan 27 17:25 rosdep-0.10.12
-rw-r--r-- 1 root root   892 Jan 27 17:26 rosdep_0.10.12-1_armhf.changes
-rw-r--r-- 1 root root   782 Jan 27 17:24 rosdep_0.10.12-1.debian.tar.gz
-rw-r--r-- 1 root root   875 Jan 27 17:24 rosdep_0.10.12-1.dsc
-rw-r--r-- 1 root root 98942 Jan 27 17:24 rosdep_0.10.12.orig.tar.gz

With this complete you can now install the .deb file on your local machine

dpkg -i python-rosdep_0.10.12-1_all.deb

And after installation you can validate that it has been installed like this:

 apt-cache show python-rosdep

And it should display an entry like this:

Package: python-rosdep
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 286
Maintainer: Tully Foote, Ken Conley <foote@willowgarage.com, kwc@willowgarage.com>
Architecture: all
Source: rosdep
Version: 0.10.12-1
Depends: python2.7 | python2.6, python (>= 2.6.6-7~), python (<< 2.8), python-catkin-pkg, python-rospkg, python-yaml
Description: rosdep package manager abstrction tool for ROS
 Command-line tool for installing system dependencies on a variety of platforms.

You MUST install the pip tool for this command to work correctly on your machine.

apt-get install python-pip

Create a wstool .deb file

Next get the sources from github.com

git clone http://github.com/vcstools/wstool.git

Next move into the directory and verify that the release of the OS we are using is in the "Suite:" line

cd rospkg
more stdeb.cfg

The output should look like this:

[DEFAULT]
Depends: subversion, mercurial, git-core, bzr, python-yaml, python-vcstools, pyt
hon-rosinstall
Suite: lucid oneiric precise quantal wheezy
XS-Python-Version: >= 2.6

If not add your release to the "Suite:" line

Now issue the command that will build the python .deb package for you

python setup.py --command-packages=stdeb.command bdist_deb

This process will build the package at the end it will end with the line and it is not an error

dpkg-buildpackage: binary only upload (no source included)

After the build completes move to where the .deb files exists

cd deb_dist

You should have a listing like this:

-rw-r--r-- 1 root root 7368 Jan 27 17:34 python-wstool_0.0.2-1_all.deb
drwxr-xr-x 8 root root 4096 Jan 27 17:33 wstool-0.0.2
-rw-r--r-- 1 root root  795 Jan 27 17:35 wstool_0.0.2-1_armhf.changes
-rw-r--r-- 1 root root  782 Jan 27 17:33 wstool_0.0.2-1.debian.tar.gz
-rw-r--r-- 1 root root  825 Jan 27 17:33 wstool_0.0.2-1.dsc
-rw-r--r-- 1 root root 6939 Jan 27 17:33 wstool_0.0.2.orig.tar.gz

With this complete you can now install the .deb file on your local machine

dpkg -i python-wstool_0.0.2-1_all.deb

And after installation you can validate that it has been installed like this:

 apt-cache show python-wstool

And it should display an entry like this:

Package: python-wstool
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 94
Maintainer: Tully Foote <tfoote@willowgarage.com>
Architecture: all
Source: wstool
Version: 0.0.2-1
Depends: python2.7 | python2.6, python (>= 2.6.6-7~), python (<< 2.8), python-vcstools, python-yaml, python-rosinstall, subversion, mercurial, git-core, bzr
Description: workspace multi-SCM commands
 A tool for managing a workspace of multiple heterogenous SCM repositories

2024-11-09 14:32