ros1 bridge encounter ros2 colcon error

匿名 (未验证) 提交于 2019-12-02 23:32:01
版权声明:本文为博主夏日辉的原创文章,未经博主允许不得转载。 https://blog.csdn.net/shanpenghui/article/details/89948001
--- stderr: qt_gui_cpp                                                                                                                                   make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule. In file included from siplibqt_gui_cpp_sipcmodule.cpp:7:0: sipAPIlibqt_gui_cpp_sip.h:11:17: fatal error: sip.h: No such file or directory compilation terminated. make[3]: *** [siplibqt_gui_cpp_sipcmodule.o] Error 1 make[2]: *** [src/qt_gui_cpp_sip/libqt_gui_cpp_sip.so] Error 2 make[1]: *** [src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [all] Error 2 --- Failed   <<< qt_gui_cpp	[ Exited with code 2 ] Aborted  <<< rviz_rendering Aborted  <<< rmw_fastrtps_shared_cpp Aborted  <<< ament_pep8 [48.195s] ERROR:colcon.colcon_core.event_reactor:Exception in event handler extension 'status': <colcon_core.executor.Job object at 0x7fdb1c00c860> Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/colcon_core/event_reactor.py", line 78, in _notify_observers     retval = observer(event)   File "/usr/lib/python3/dist-packages/colcon_notification/event_handler/status.py", line 109, in __call__     progress = self._running[job].get('progress', []) KeyError: <colcon_core.executor.Job object at 0x7fdb1c00c860> 

解决办法:

sudo apt install python3-sip-dev 

如果还不行,说明你是在编译了ros2之后又重新编译的,系统环境变量已经被ros2的local_setup.bash改变,因此,需要在terminal中

source /opt/ros/<ros_distro>/setup.bash 

然后再重新编译就好啦

最后ros1_bridge终于编译好了。

文章来源: https://blog.csdn.net/shanpenghui/article/details/89948001
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!