ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Trouble compiling rviz on Raspberry Pi 2

asked 2015-03-06 08:44:28 -0600

updated 2015-03-06 11:01:04 -0600

Hello, I've been following the directions for installing ROS Indigo on Raspberry Pi and am failing at step 2.3 (building the catkitn workspace). The process fails at step 178 of 185, building rviz. It gets to 2% of that process and then hangs the Pi, which continues to consume 1/4A at 5V but sits there for hours and hours with no progress. The machine also becomes unresponsive to pings, so I think it's totally hosed at that point. Has anyone seen anything like this? Swapping hardware doesn't seem to make a difference. Thanks in advance.

Here's the last screen of data before everything goes down:

<== Finished processing package [177 of 185]: 'robot_state_publisher'

==> Processing catkin package: 'rviz'
==> Building with env: '/opt/ros/indigo/'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/sshamlian/ros_catkin_ws/build_isolated/rviz'
==> make -j4 -l4 in '/home/sshamlian/ros_catkin_ws/build_isolated/rviz'
[  0%] [  1%] Building CXX object src/rviz/CMakeFiles/rviz.dir/visualization_frame.cpp.o
Building CXX object src/rviz/CMakeFiles/rviz.dir/visualization_manager.cpp.o
[  2%] [  2%] Building CXX object src/rviz/CMakeFiles/rviz.dir/view_manager.cpp.o
Building CXX object src/rviz/CMakeFiles/rviz.dir/visualizer_app.cpp.o
edit retag flag offensive close merge delete



This may not solve your problem, but try the build with make -j2 instead of -j4. This will run two sets of jobs concurrently rather than four. The RPi2 doesnt have enough memory for 4 jobs and will thrash quite a bit and then die on large builds but will bld MUCH faster with two.

corb gravatar image corb  ( 2015-03-08 11:08:22 -0600 )edit

This helps, but doesn't completely build. Now, I get to 94% on rviz's build, which is probably worth opening another question for. For the original question, though, this seems to be the answer: make must be invoked with -j2, so the wiki should be modified accordingly.

Shamlian gravatar image Shamlian  ( 2015-03-09 10:13:56 -0600 )edit

Ok; I got rviz to make using the patch suggested in the following question: . I'll update the wiki accordingly if I get catkin_make_isolated --install to complete.

Shamlian gravatar image Shamlian  ( 2015-03-10 13:39:43 -0600 )edit

This worked and the wiki has been updated. I made an answer below that has both of these steps, but I don't have enough "karma" to mark it as correct.

Shamlian gravatar image Shamlian  ( 2015-03-10 18:43:57 -0600 )edit

4 Answers

Sort by ยป oldest newest most voted

answered 2015-03-10 17:25:24 -0600

First, a patch needs to be applied to rviz as described here. Then, as @corb suggested, running make -j2 from .../ros_catkin_ws/build_isolated/rviz will allow the build to succeed; once this is complete, catkin_make_isolated will proceed as normal. I have updated the wiki accordingly, though someone will probably want to check my formatting. Thanks to everyone for all the help! (You can probably run catkin_make_isolated with --make-args -j2 after patching, but I didn't test that.)

edit flag offensive delete link more


when i failed, i running sudo make -j2 from .../ros_catkin_ws/build_isolated/rviz, but i got this "-- Configuring incomplete, errors occurred! Makefile:1030: recipe for target 'cmake_check_build_system' failed make: * [cmake_check_build_system] Error 1 ",please help me.i am a new.

yuwang gravatar image yuwang  ( 2015-05-04 22:38:11 -0600 )edit

I fix it by building rviz alone(remove all the packages from .../ros_catkin_ws/src excpet rviz), then run catkin_make_isolated with --make -j2 -l2.

yuwang gravatar image yuwang  ( 2015-05-05 22:13:34 -0600 )edit

answered 2015-03-07 14:35:20 -0600

ahendrix gravatar image

Unlike the original Raspberry Pi, the Raspberry Pi 2 is a proper ARMv7 processor. Install Ubuntu and use instead.

edit flag offensive delete link more



That was my original intent. However, Snappy Ubuntu Core is the only supported Ubuntu distribution for the Raspberry Pi 2, and it does not support the apt-get package management system, which is called for in the armhf directions. There are unofficial 14.04 installs, but I'd rather not go that way.

Shamlian gravatar image Shamlian  ( 2015-03-07 15:26:08 -0600 )edit

answered 2015-03-08 16:43:21 -0600

Chrimo gravatar image

I'm using ROS INDIGO at my PI2 for some days with Ubuntu 14.04 LTS now... Try this:

edit flag offensive delete link more


what installation guide you use top get ROS. Was it the standard ubuntu or a source?

Mr. CEO gravatar image Mr. CEO  ( 2015-03-09 00:26:53 -0600 )edit

I'm using binary installation

Chrimo gravatar image Chrimo  ( 2015-03-09 03:27:32 -0600 )edit

Right - you're using an unsupported community build of Ubuntu. It does not have the guaranteed security updates that you'd get if you were using the supported LTS version. Not sure this is the best solution to the problem, which is an inability to make using the official scripts.

Shamlian gravatar image Shamlian  ( 2015-03-09 08:10:58 -0600 )edit

thanks for the help

Mr. CEO gravatar image Mr. CEO  ( 2015-03-09 08:11:23 -0600 )edit

@Shamlian Sometimes active communities provide better support than "official" installation paths.

tfoote gravatar image tfoote  ( 2015-03-09 17:05:30 -0600 )edit

@tfoote I don't mean any offense. Point well-received; after all, what is this if not an extremely dedicated and active community. My fear stems from having burned from such efforts in the past, especially when it's a matter of security, as in the install of an OS. That said, I'll give it a try!

Shamlian gravatar image Shamlian  ( 2015-03-10 10:05:34 -0600 )edit

answered 2015-03-08 03:58:49 -0600

Mr. CEO gravatar image

I have gotten as far as you, I came to the conclusion that I should just install comm packages and wait until someone else does the dirty work.

edit flag offensive delete link more

Question Tools


Asked: 2015-03-06 08:44:28 -0600

Seen: 1,923 times

Last updated: Mar 10 '15