Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
installing ROS indigo ROS-comm on beaglebone jessie
# derived from
sudo sh -c 'echo "deb jessie main" > /etc/apt/sources.list.d/ros-latest.list'
wget -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-pip python-setuptools python-yaml python-distribute python-docutils python-dateutil python-six
sudo pip install rosdep rosinstall_generator wstool rosinstall
# assorted deps which were found to be MIA along the way,
# no idea why those are not caught by rosdep install and related incantations:
sudo apt-get install \
libconsole-bridge-dev liblz4-dev checkinstall cmake \
python-empy python-nose libbz2-dev \
libboost-test-dev libboost-dev libboost-program-options-dev \
libboost-regex-dev libboost-signals-dev \
libtinyxml-dev libboost-filesystem-dev libxml2-dev \
sudo rosdep init
rosdep update
mkdir ~/ros_catkin_ws
cd ~/ros_catkin_ws
rosinstall_generator ros_comm --rosdistro indigo --deps --wet-only --exclude roslisp --tar > indigo-ros_comm-wet.rosinstall
wstool init src indigo-ros_comm-wet.rosinstall
# roscpp fails with oom error
# I added 4GB USB flash as swap space
rosdep install --from-paths src --ignore-src --rosdistro indigo -y -r --os=debian:jessie
sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/indigo
# that's it.
# add to .bashrc as seen fit:
# source /opt/ros/indigo/setup.bash
# needed when mDNS/Avahi is used:
# export ROS_HOSTNAME=`hostname`.local
# no need for lisp bindings
# export ROS_LANG_DISABLE=genlisp
#cd catkin_ws/
#. devel/setup.bash

This comment has been minimized.

Copy link

commented Dec 7, 2016

Thanks for putting this together!


This comment has been minimized.

Copy link

commented Mar 16, 2018

And what about that case:
`/opt/ros/indigo/include/ros/serialization.h:223:5: note: in expansion of macro ‘ROS_CREATE_SIMPLE_SERIALIZER_ARM’
[ 941.604842] Out of memory: Kill process 10224 (cc1plus) score 656 or sacrifice child
[ 941.612816] Killed process 10224 (cc1plus) total-vm:358340kB, anon-rss:335844kB, file-rss:232kB
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-4.9/README.Bugs for instructions.
CMakeFiles/roscpp.dir/build.make:158: recipe for target 'CMakeFiles/roscpp.dir/src/libros/publisher_link.cpp.o' failed
make[2]: *** [CMakeFiles/roscpp.dir/src/libros/publisher_link.cpp.o] Error 4
CMakeFiles/Makefile2:76: recipe for target 'CMakeFiles/roscpp.dir/all' failed
make[1]: *** [CMakeFiles/roscpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'roscpp':
Command '['/opt/ros/indigo/', 'make', '-j1', '-l1']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /root/ros_catkin_ws/build_isolated/roscpp && /opt/ros/indigo/ make -j1 -l1

Command failed, exiting.
What its going on???
Greetings Tom


This comment has been minimized.

Copy link

commented Jan 11, 2019

Hi tomek242, have you been able to resolve this? I got the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.