ros-visualization/qt_gui_core

Failed to process package 'qt_gui_cpp'

Closed this issue · 5 comments

I'm trying to install ROS Kinetic following this guide, so I get to this command $ ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release, it runs for a while and it finishes processing package 'pluginlib' [69 of 191]. After this package there is 'qt_gui_cpp' and here it gives error and crashes.
This is the output of that last part of execution:

==> Processing catkin package: 'qt_gui_cpp'
==> Building with env: '/home/Giuseppe/ros_catkin_ws/install_isolated/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/Giuseppe/ros_catkin_ws/build_isolated/qt_gui_cpp'
==> make -j4 -l4 in '/home/Giuseppe/ros_catkin_ws/build_isolated/qt_gui_cpp'
[ 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 -l-lpthread
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:38: "/home/Giuseppe/ros_catkin_ws/devel_isolated/qt_gui_cpp/lib/python2.7/site-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/Giuseppe/ros_catkin_ws/devel_isolated/qt_gui_cpp/lib/python2.7/site-packages/qt_gui_cpp/libqt_gui_cpp_sip.so] Error 2
make[1]: *** [CMakeFiles/Makefile2:380: 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 '['/home/Giuseppe/ros_catkin_ws/install_isolated/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2

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

Command failed, exiting.

I've already had problems with -l-lpthread following this and this which solved the issue at the time.
I think the issue is that it tries to find -lpthread but it adds one more '-l' so that it searches for -l-lpthread.

I've already had problems with -l-lpthread following this and this which solved the issue at the time.

Does your workspace contain catkin? If yes, which commit - the latest release from Kinetic or the latest commit on the kinetic-devel branch? You will need the later to get both fixes you referenced.

Also which platform are you building this on?

Thanks for the reply! However I managed to solve the issue following solutions found on some github repo.

However I managed to solve the issue following solutions found on some github repo.

It would be nice to reference the solution you found for future readers.

Also if your question has been resolved please consider closing your ticket.

I know unluckily I do not remember where I've found it.

I had the same issue. This finally made it work: https://github.com/ros-visualization/python_qt_binding/pull/59/files