Ask Your Question
3

Error building cv_bridge on RaspberryPi

asked 2012-11-03 03:59:30 -0500

Kevin gravatar image

updated 2014-01-28 17:14:09 -0500

ngrennan gravatar image

I am trying to build some libfreenect drivers (for the kinect) and I do a rosmake and it fails in cv_bridge complaining about some image formats (e.g., CV_YUV2RGB_UYVY, see below for more).

  • RaspberryPi (ARM)
  • Raspbian Linux - Debian for RaspberryPi
  • OpenCV 2.3 installed
  • ROS fuerte

What am I doing wrong??

[kevin@raspberrypi freenect_stack]$ CC="distcc arm-unknown-linux-gnueabi-gcc" CXX="distcc arm-unknown-linux-gnueabi-g++" rosmake freenect_stack [ rosmake ] rosmake starting...
[ rosmake ] Packages requested are: ['freenect_stack']
[ rosmake ] Logging to directory /home/kevin/.ros/rosmake/rosmake_output-20121103-133147
[ rosmake ] Expanded args ['freenect_stack'] to: ['freenect_camera', 'freenect_launch', 'libfreenect']
[rosmake-0] Starting >>> roslang [ make ]
[rosmake-0] Finished <<< roslang No Makefile in package roslang
[rosmake-0] Starting >>> rospy [ make ]
[rosmake-0] Finished <<< rospy No Makefile in package rospy
[rosmake-0] Starting >>> roscpp [ make ]
[rosmake-0] Finished <<< roscpp No Makefile in package roscpp
[rosmake-0] Starting >>> rosservice [ make ]
[rosmake-0] Finished <<< rosservice No Makefile in package rosservice
[rosmake-0] Starting >>> dynamic_reconfigure [ make ]
[rosmake-0] Finished <<< dynamic_reconfigure [PASS] [ 45.26 seconds ]
[rosmake-0] Starting >>> geometry_msgs [ make ]
[rosmake-0] Finished <<< geometry_msgs No Makefile in package geometry_msgs
[rosmake-0] Starting >>> sensor_msgs [ make ]
[rosmake-0] Finished <<< sensor_msgs No Makefile in package sensor_msgs
[rosmake-0] Starting >>> rosbuild [ make ]
[rosmake-0] Finished <<< rosbuild No Makefile in package rosbuild
[rosmake-0] Starting >>> roslib [ make ]
[rosmake-0] Finished <<< roslib No Makefile in package roslib
[rosmake-0] Starting >>> rosconsole [ make ]
[rosmake-0] Finished <<< rosconsole No Makefile in package rosconsole
[rosmake-0] Starting >>> pluginlib [ make ]
[rosmake-0] Finished <<< pluginlib [PASS] [ 17.47 seconds ]
[rosmake-0] Starting >>> message_filters [ make ]
[rosmake-0] Finished <<< message_filters No Makefile in package message_filters
[rosmake-0] Starting >>> image_transport [ make ]
[rosmake-0] Finished <<< image_transport [PASS] [ 17.48 seconds ]
[rosmake-0] Starting >>> polled_camera [ make ]
[rosmake-0] Finished <<< polled_camera [PASS] [ 15.69 seconds ]
[rosmake-0] Starting >>> common_rosdeps [ make ]
[rosmake-0] Finished <<< common_rosdeps [PASS] [ 2.14 seconds ]
[rosmake-0] Starting >>> camera_calibration_parsers [ make ]
[rosmake-0] Finished <<< camera_calibration_parsers [PASS] [ 14.33 seconds ]
[rosmake-0] Starting >>> opencv2 [ make ]
[rosmake-0] Finished <<< opencv2 [PASS] [ 0.09 seconds ]
[rosmake-0] Starting >>> cv_bridge [ make ]
[ rosmake ] Last 40 lines_bridge: 49.9 sec ] [ 1 Active 17/50 Complete ] {------------------------------------------------------------------------------- [rosbuild] Including /opt/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project:

  CMAKE_TOOLCHAIN_FILE

-- Build files have been written to: /home/kevin/ros/vision_opencv/cv_bridge/build cd build && make -l1 make[1]: Entering directory /home/kevin/ros/vision_opencv/cv_bridge/build' make[2]: Entering directory/home/kevin/ros/vision_opencv/cv_bridge/build' make[3]: Entering directory /home/kevin/ros/vision_opencv/cv_bridge/build' make[3]: Leaving directory/home/kevin/ros/vision_opencv/cv_bridge/build' [ 0%] Built target rospack_genmsg_libexe make[3]: Entering directory /home/kevin/ros/vision_opencv/cv_bridge/build' make[3]: Leaving directory/home/kevin/ros/vision_opencv/cv_bridge/build' [ 0%] Built target rosbuild_precompile make[3]: Entering directory /home/kevin/ros/vision_opencv/cv_bridge/build' make[3]: Leaving directory/home/kevin/ros/vision_opencv/cv_bridge/build' make[3]: Entering directory /home/kevin/ros/vision_opencv/cv_bridge/build' [100%] Building CXX object CMakeFiles/cv_bridge.dir/src/cv_bridge.o distcc[7294] ERROR: compile /home/kevin/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp on arch failed distcc[7294] (dcc_build_somewhere) Warning: remote compilation of '/home/kevin/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp' failed, retrying locally distcc[7294] Warning: failed to distribute /home/kevin/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp to arch, running locally ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-02-04 13:18:06 -0500

kalectro gravatar image

It just happened to me as well and I thought I would share the solution.

Your OpenCV version is too old. You probably downloaded opencv using the prebuilt binaries which will not work. You will need to compile from source.

edit flag offensive delete link more

Comments

I am also having error with installing cv_bridge on raspbian. About installing opencv from source, are you referring to vision_opencv that comes with ros or the opencv from debian repositories?

prarobo gravatar image prarobo  ( 2013-05-28 05:48:19 -0500 )edit

back then there was no openCV debian ;) You should use the debian package now and everything should work without problems

kalectro gravatar image kalectro  ( 2013-05-29 14:05:38 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2012-11-03 03:59:30 -0500

Seen: 816 times

Last updated: May 28 '13