Ask Your Question
0

Skip OpenCV in ROS Kinetic install?

asked 2019-10-01 21:50:13 -0500

cjk11091 gravatar image

updated 2019-10-04 08:02:55 -0500

gvdhoorn gravatar image

I'm trying to install ROS Kinetic on my Raspberry Pi 4 (4gb) running Rasbian Buster. It fails every time when it gets to installing OpenCV. Is there a way I skip OpenCV during the ROS install? The error I get is the following:

It's the same issue seen here: https://www.raspberrypi.org/forums/vi....

The error is:

^~~~~~~~~~~~~~~~~~~~~~~~~~

make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/build.make:63: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1

make[1]: *** [CMakeFiles/Makefile2:8425: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2

make: *** [Makefile:163: all] Error 2

<== Failed to process package 'opencv3':

Command '['/opt/ros/kinetic/env.sh', 'make', '-j1']' returned non-zero exit status 2

Reproduce this error by running:

==> cd /home/pi/ros_catkin_ws/build_isolated/opencv3 && /opt/ros/kinetic/env.sh make -j1

Command failed, exiting.
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-10-02 02:43:59 -0500

Hello,

For installing ROS on raspberry, you should follow this tutorial : http://wiki.ros.org/ROSberryPi/Instal...

The main this to do is to use ROS-base or ROS-Comm (ros-kinetic-base or ros-kinetic-core) when installing ROS as it do not have any graphical dependencies : https://www.ros.org/reps/rep-0142.htm...

edit flag offensive delete link more

Comments

That's exactly the installation guide I was using. I've tried multiple times and it fails at the OpenCV part which is why I would like to install without OpenCV if possible. It's the same issue seen here:

https://www.raspberrypi.org/forums/vi....

The error is:

^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: * [modules/python3/CMakeFiles/opencv_python3.dir/build.make:63: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:8425: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2 make: ** [Makefile:163: all] Error 2 <== Failed to process package 'opencv3': Command '['/opt/ros/kinetic/env.sh', 'make', '-j1']' returned non-zero exit status 2

Reproduce this error by running: ==> cd /home/pi/ros_catkin_ws/build_isolated/opencv3 && /opt/ros/kinetic/env.sh make -j1

Command failed, exiting.

cjk11091 gravatar imagecjk11091 ( 2019-10-02 21:27:49 -0500 )edit

Can you look at the output of the command cat *.rosinstall | grep opencv in your ros_catkin_ws ? there should not be any mention of "opencv3" if you installed ros_comm.

If there is a opencv3 package mention, make sure to redo the step 3 of the installation by creating a new workspace and use :

rosinstall_generator ros_comm --rosdistro kinetic --deps --wet-only --tar > kinetic-ros_comm-wet.rosinstall

wstool init src kinetic-ros_comm-wet.rosinstall

If there is no opencv3 mention, you can try to delete the package ros_catkin_ws/src/opencv3 and ros_catkin_ws/src/vision_opencv, but it would be better to create a new workspace with a clean src/.

lmathieu gravatar imagelmathieu ( 2019-10-03 02:25:51 -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

1 follower

Stats

Asked: 2019-10-01 21:50:13 -0500

Seen: 43 times

Last updated: Oct 04