Building ROS hydro from source on Ubuntu 13.10 Saucy Salamander

This post will cover the steps I made to build ROS hydro successfully from source on my Ubuntu 13.10 amd64 with German localization settings.

1. Add repositories

http://wiki.ros.org/hydro/Installation/Ubuntu

sudo sh -c
'echo "deb http://packages.ros.org/ros/ubuntu raring main" >
/etc/apt/sources.list.d/ros-latest.list'


wget http://packages.ros.org/ros.key -O - | sudo apt-key add -

sudo apt-get update

2. The basic building procedure is covered in the article below, but I will list all commands/steps I have used from this tutorial as well, together with links to resources which helped me solving problems and how I solved them. If you want to have an explanation of the steps, please refer to the provided links.

http://wiki.ros.org/hydro/Installation/Source

sudo apt-get install python-rosdep python-rosinstall-generator
python-wstool python-rosinstall build-essential

sudo rosdep init
rosdep update

mkdir ~/ros_catkin_ws
cd ~/ros_catkin_ws

rosinstall_generator desktop --rosdistro hydro --deps --wet-only
--tar > hydro-desktop-wet.rosinstall

wstool init -j8 src hydro-desktop-wet.rosinstall

rosdep install --from-paths src --ignore-src --rosdistro hydro -y

3. In order to prevent language problems on a non English system, I used following hint.

http://answers.ros.org/question/124081/unicodeencodeerror-while-installing-ros-on-debian/

export LANG=en_US.UTF-8

4. Resolving another build error:

http://answers.ros.org/question/114386/ros-hydro-from-source-on-ubuntu-1310-make-error-in-qt_gui_cpp/

sudo apt-get purge libshiboken-dev shiboken

5. Finish the build process and install ROS to a custom location.

sudo src/catkin/bin/catkin_make_isolated --install

--force-cmake
--install-space /opt/ros/hydro_custom

6. This command needs to be run every time before you are using ROS. For simplification just add it to your .bashrc

source /opt/ros/hydro_custom/setup.bash

7. Check if the installation was successful by running:

roscore

8. Enjoy…!

About Christopher

See http://www.ceh-photo.de/blog/?page_id=2
This entry was posted in Embedded Systems, Linux and tagged , , . Bookmark the permalink.