Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling on ROS kinetic. Cannot find -l-lpththread #186

Closed
lavancig opened this issue Oct 3, 2019 · 3 comments
Closed

Error compiling on ROS kinetic. Cannot find -l-lpththread #186

lavancig opened this issue Oct 3, 2019 · 3 comments

Comments

@lavancig
Copy link

lavancig commented Oct 3, 2019

Getting the following compilation error on ros-kinetic:

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/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: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/pi/ros_catkin_ws/install_isolated/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2

I believe it is a simple typo. By changing the entry "-l-lpthread" to "-lpthread" on
./qt_gui_cpp/sip/qt_gui_cpp_sip/Makefile fixes it for me.

@dirk-thomas
Copy link
Contributor

Please provide more context: what version of qt_gui_core and python_qt_binding are you using? What platform are you building this on?

@lavancig
Copy link
Author

lavancig commented Oct 3, 2019

The versions of qt in use are:
qt_gui_cpp=0.3.11-0
python_qt_binding=0.3.4-0
Compilation Platform: Raspberry Pi 3 B, Debian Buster

Those versions were automatically set to be fetched by rosinstall_generator, desktop version:

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

@dirk-thomas
Copy link
Contributor

ROS Kinetic doesn't target Debian Buster so it isn't surprising that it fails. I assume you will need this upcoming patch: ros/catkin#1021.

I will close this ticket as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants