Ros Kinetic raspberry pi4 error

asked 2020-02-18 09:54:25 -0500

jackkj gravatar image

updated 2020-02-18 09:55:33 -0500

gvdhoorn gravatar image

I'm trying to install ros kinetic on a Pi4 rasbian buster, but this error appeared.

[ 83%] Built target qt_gui_cpp
Scanning dependencies of target libqt_gui_cpp_sip
[ 88%] Running SIP generator for qt_gui_cpp_sip Python bindings...
sip: Deprecation warning: qt_gui_cpp.sip:1: %Module version number should be specified using the 'version' argument
[ 94%] Compiling generated code for qt_gui_cpp_sip Python bindings...
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
/usr/bin/ld: cannot find -lcatkin::rosconsole::wrapped-linker-option0
/usr/bin/ld: cannot find -lcatkin::rostime::wrapped-linker-option0
/usr/bin/ld: cannot find -l-lpthread
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:38: "/home/pi/ros_catkin_ws/devel_isolated/qt_gui_cpp/lib/python2.7/dist-packages/qt_gui_cpp/libqt_gui_cpp_sip".so] Error 1
make[2]: *** [src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/build.make:61: /home/pi/ros_catkin_ws/devel_isolated/qt_gui_cpp/lib/python2.7/dist-packages/qt_gui_cpp/libqt_gui_cpp_sip.so] Error 2
make[1]: *** [CMakeFiles/Makefile2:566: src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
<== Failed to process package 'qt_gui_cpp': 
  Command '['/opt/ros/kinetic/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2

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

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

Comments

I think I ran into this once. My recollection is that I had to go into the qt_gui_cpp directory and sudo /opt/ros/kinetic/env.sh make -j4 -l4. I think catkin usually sudos, but for some reason on the Pi this gets lost on one package.

Besides trying that, if you do like it says and cd into qt_gui_cpp and run the make command, what does it do?

stuart marshall gravatar image stuart marshall  ( 2020-02-18 10:28:12 -0500 )edit

this is the result of the cd into qt_gui_cpp

pi@raspberrypi:~/ros_catkin_ws $ cd /home/pi/ros_catkin_ws/build_isolated/qt_gui_cpp && /opt/ros/kinetic/env.sh make -j4 -l4 [ 94%] Built target qt_gui_cpp [ 94%] Compiling generated code for qt_gui_cpp_sip Python bindings... make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. /bin/sh: 1: cannot create /home/pi/ros_catkin_ws/devel_isolated/qt_gui_cpp/lib/python2.7/dist-packages/qt_gui_cpp/libqt_gui_cpp_sip.exp: Permission denied make[3]: * [Makefile:37: "/home/pi/ros_catkin_ws/devel_isolated/qt_gui_cpp/lib/python2.7/dist-packages/qt_gui_cpp/libqt_gui_cpp_sip".so] Error 2 make[2]: [src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/build.make:61: /home/pi/ros_catkin_ws/devel_isolated/qt_gui_cpp/lib/python2.7/dist-packages/qt_gui_cpp/libqt_gui_cpp_sip.so] Error 2 make[1]: [CMakeFiles/Makefile2:566: src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/all] Error 2 make: * [Makefile:141: all] Error 2

jackkj gravatar image jackkj  ( 2020-02-18 21:32:11 -0500 )edit

thanks for your reply but after following your instructions i still get an error

pi@raspberrypi:~/ros_catkin_ws $ cd build_isolated/qt_gui_cpp pi@raspberrypi:~/ros_catkin_ws/build_isolated/qt_gui_cpp $ sudo /opt/ros/kinetic/env.sh make -j4 -l4 [ 83%] Built target qt_gui_cpp [ 88%] Compiling generated code for qt_gui_cpp_sip Python bindings... make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. /usr/bin/ld: cannot find -lcatkin::class_loader::wrapped-linker-option0 /usr/bin/ld: cannot find -lcatkin::rosconsole::wrapped-linker-option0 /usr/bin/ld: cannot find -lcatkin::rostime::wrapped-linker-option0 /usr/bin/ld: cannot find -lcatkin::cpp_common::wrapped-linker-option0 collect2: error: ld returned 1 exit status make[3]: * [Makefile:38: "/home/pi/ros_catkin_ws/devel_isolated/qt_gui_cpp/lib/python2.7/dist-packages/qt_gui_cpp/libqt_gui_cpp_sip".so] Error 1 make[2]: * [src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/build.make:61: /home/pi/ros_catkin_ws

jackkj gravatar image jackkj  ( 2020-02-18 21:34:57 -0500 )edit

Hmm, so running with sudo replaced the permission denied with a cannot find error? TBH, I don't think I have any other solid tips for you. Increasing verbosity of the build can sometimes reveal a specific step that is failing and why. With catkin the syntax seems to be "catkin build -v". With make there appears to be a --debug=v option, but from the documentation it's not clear if that applies just to make or also to other processes like ld.

stuart marshall gravatar image stuart marshall  ( 2020-02-18 23:50:43 -0500 )edit