Problem building ROS Kinetic (qt_gui_cpp) Fedora 24

asked 2016-10-23 15:25:03 -0500

Kabe gravatar image

I am a beginner about ROS. I have followed this tutorial to build ROS from source on Fedora 24.

At some point, I have this error:

==> Processing catkin package: 'qt_gui_cpp'
==> Building with env: '/home/user/ros_catkin_ws/install_isolated/'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/user/ros_catkin_ws/build_isolated/qt_gui_cpp'
==> make -j4 -l4 in '/home/user/ros_catkin_ws/build_isolated/qt_gui_cpp'
[ 83%] Built target qt_gui_cpp
[ 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
sip: Unable to find file "QtCore/QtCoremod.sip"
Traceback (most recent call last):
  File "/home/user/ros_catkin_ws/install_isolated/share/python_qt_binding/cmake/", line 76, in <module>
  File "/usr/lib64/python2.7/", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/sip', '-c', '/home/user/ros_catkin_ws/build_isolated/qt_gui_cpp/sip/qt_gui_cpp_sip', '-b', '/home/user/ros_catkin_ws/build_isolated/qt_gui_cpp/sip/qt_gui_cpp_sip/pyqtscripting.sbf', '-I', '/usr/share/sip/PyQt5', '-w', '-x', 'VendorID', '-t', 'WS_X11', '-t', 'Qt_5_6_1', '-x', 'Py_v3', 'qt_gui_cpp.sip']' returned non-zero exit status 1
src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/build.make:89: recipe for target 'sip/qt_gui_cpp_sip/Makefile' failed
make[2]: *** [sip/qt_gui_cpp_sip/Makefile] Error 1
CMakeFiles/Makefile2:374: recipe for target 'src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/all' failed
make[1]: *** [src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'qt_gui_cpp': 
  Command '['/home/user/ros_catkin_ws/install_isolated/', 'make', '-j4', '-l4']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/user/ros_catkin_ws/build_isolated/qt_gui_cpp && /home/user/ros_catkin_ws/install_isolated/ make -j4 -l4

Command failed, exiting.

I have multiple versions of Qt (Qt-3.3, Qt4 and Qt5) installed and I think I have to configure SIP but I don't how and what.

Can someone can help me or point me to the right direction?


edit retag flag offensive close merge delete


Did you had the simlink : sudo ln -s /usr/bin/qmake-qt5 /usr/bin/qmake sudo ln -s /usr/lib64/ /usr/lib64/ for qt5 ? Also, I would advise you to install kinetic on Fedora25 instead. Fedora25 has the needed gazebo version and opencv3 in the repo. Kinetic work on my install

Maya gravatar image Maya  ( 2016-10-25 07:31:55 -0500 )edit

Thanks for your help. I will try your simlink suggestion later. Did you have to build Shiboken2 and PySide2 from source as I see I have the same issue as you but on Fedora 24? Fedora 25 is not an option for now.

Kabe gravatar image Kabe  ( 2016-10-25 15:00:16 -0500 )edit

I tried to add the simlink but now it fails on another error for the same package. I think I will give up and switch to Ubuntu.

Kabe gravatar image Kabe  ( 2016-11-02 04:54:02 -0500 )edit

In case someone else runs into this problem, I had the same issue, and installing the package python-qt5-devel resolved it.

jp-dark gravatar image jp-dark  ( 2017-09-13 18:00:54 -0500 )edit