Skip to content

Instantly share code, notes, and snippets.

@mhaberler
Created January 5, 2016 20:52
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mhaberler/621bc9df63a8f5800b64 to your computer and use it in GitHub Desktop.
Save mhaberler/621bc9df63a8f5800b64 to your computer and use it in GitHub Desktop.
installing ROS indigo ROS-comm on beaglebone jessie
# derived from http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Indigo%20on%20Raspberry%20Pi
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu jessie main" > /etc/apt/sources.list.d/ros-latest.list'
wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -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 \
libgtest-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
@b-adkins
Copy link

b-adkins commented Dec 7, 2016

Thanks for putting this together!

@tomek242
Copy link

And what about that case:
`/opt/ros/indigo/include/ros/serialization.h:223:5: note: in expansion of macro ‘ROS_CREATE_SIMPLE_SERIALIZER_ARM’
ROS_CREATE_SIMPLE_SERIALIZER_ARM(double);
^
[ 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/env.sh', '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/env.sh make -j1 -l1

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

@321rose123
Copy link

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