撒谎十大博客 2021-05-22 21:43 采纳率: 50%
浏览 2960
已采纳

Makefile:140: Invoking "make -j4 -l4" failed

Base path: /home/ucar/ucar_ws
Source space: /home/ucar/ucar_ws/src
Build space: /home/ucar/ucar_ws/build
Devel space: /home/ucar/ucar_ws/devel
Install space: /home/ucar/ucar_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/ucar/ucar_ws/build"
####
####
#### Running command: "make -j4 -l4" in "/home/ucar/ucar_ws/build"
####
[  0%] Built target geometry_msgs_generate_messages_eus
[  0%] Built target std_msgs_generate_messages_cpp
[  0%] Built target geometry_msgs_generate_messages_py
[  0%] Built target geometry_msgs_generate_messages_cpp
[  0%] Built target std_msgs_generate_messages_nodejs
[  0%] Built target std_msgs_generate_messages_eus
[  0%] Built target std_msgs_generate_messages_py
[  0%] Built target std_msgs_generate_messages_lisp
[  0%] Built target geometry_msgs_generate_messages_lisp
[  0%] Built target geometry_msgs_generate_messages_nodejs
[  0%] Built target actionlib_msgs_generate_messages_eus
[  0%] Built target _tf2_msgs_generate_messages_check_deps_FrameGraph
[  0%] Built target _tf2_msgs_generate_messages_check_deps_LookupTransformActionGoal
[  0%] Built target _tf2_msgs_generate_messages_check_deps_LookupTransformFeedback
[  0%] Built target _tf2_msgs_generate_messages_check_deps_TF2Error
[  0%] Built target _tf2_msgs_generate_messages_check_deps_TFMessage
[  0%] Built target _tf2_msgs_generate_messages_check_deps_LookupTransformAction
[  0%] Built target _tf2_msgs_generate_messages_check_deps_LookupTransformActionResult
[  0%] Built target _tf2_msgs_generate_messages_check_deps_LookupTransformActionFeedback
[  0%] Built target actionlib_msgs_generate_messages_py
[  0%] Built target actionlib_msgs_generate_messages_nodejs
[  0%] Built target actionlib_msgs_generate_messages_lisp
[  0%] Built target actionlib_msgs_generate_messages_cpp
[  0%] Built target _tf2_msgs_generate_messages_check_deps_LookupTransformGoal
[  0%] Built target _catkin_empty_exported_target
[  0%] Built target rosgraph_msgs_generate_messages_py
[  0%] Built target rosgraph_msgs_generate_messages_nodejs
[  0%] Built target _tf2_msgs_generate_messages_check_deps_LookupTransformResult
[  0%] Built target rosgraph_msgs_generate_messages_lisp
[  0%] Built target rosgraph_msgs_generate_messages_eus
[  0%] Built target rosgraph_msgs_generate_messages_cpp
[  0%] Built target roscpp_generate_messages_nodejs
[  0%] Built target roscpp_generate_messages_lisp
[  0%] Built target roscpp_generate_messages_eus
[  0%] Built target roscpp_generate_messages_py
[  0%] Built target actionlib_generate_messages_lisp
[  0%] Built target actionlib_generate_messages_py
[  0%] Built target roscpp_generate_messages_cpp
[  0%] Built target actionlib_generate_messages_cpp
[  0%] Built target actionlib_generate_messages_nodejs
[  0%] Built target actionlib_generate_messages_eus
[  0%] Built target sensor_msgs_generate_messages_cpp
[  0%] Built target sensor_msgs_generate_messages_nodejs
[  0%] Built target sensor_msgs_generate_messages_lisp
[  0%] Built target sensor_msgs_generate_messages_eus
[  0%] Built target _tf_generate_messages_check_deps_tfMessage
[  1%] Built target gtest
[  1%] Built target _tf_generate_messages_check_deps_FrameGraph
[  1%] Built target sensor_msgs_generate_messages_py
[  1%] Built target crc_table_fd
[  2%] Built target crc_table
[  2%] Built target _ucar_controller_generate_messages_check_deps_GetSensorTF
[  2%] Built target _ucar_controller_generate_messages_check_deps_SetLEDMode
[  2%] Built target _ucar_controller_generate_messages_check_deps_GetBatteryInfo
[  2%] Built target _ucar_controller_generate_messages_check_deps_SetMaxVel
[  2%] Built target _ucar_controller_generate_messages_check_deps_SetSensorTF
[  2%] Built target _ucar_controller_generate_messages_check_deps_GetMaxVel
[  2%] Built target _xf_mic_asr_offline_generate_messages_check_deps_Get_Awake_Angle_srv
[  2%] Built target _xf_mic_asr_offline_generate_messages_check_deps_Start_Record_srv
[  2%] Built target _xf_mic_asr_offline_generate_messages_check_deps_Set_Major_Mic_srv
[  2%] Built target _xf_mic_asr_offline_generate_messages_check_deps_Get_Major_Mic_srv
[  2%] Built target _xf_mic_asr_offline_generate_messages_check_deps_Pcm_Msg
[  2%] Built target _xf_mic_asr_offline_generate_messages_check_deps_Set_Awake_Word_srv
[  2%] Built target ydlidar_client
[  2%] Built target _xf_mic_asr_offline_generate_messages_check_deps_Set_Led_On_srv
[  7%] Built target ydlidar_node
[  7%] Built target _xf_mic_asr_offline_generate_messages_check_deps_Get_Offline_Result_srv
[ 10%] Built target eigen_conversions
[ 15%] Built target tf2_msgs_generate_messages_eus
[ 16%] Built target kdl_conversions
[ 22%] Built target tf2_msgs_generate_messages_nodejs
[ 27%] Built target tf2_msgs_generate_messages_py
[ 28%] Generating C++ code from tf2_msgs/TF2Error.msg
[ 29%] Built target tf_generate_messages_nodejs
[ 33%] Built target tf2_msgs_generate_messages_lisp
[ 33%] Generating C++ code from tf/tfMessage.msg
[ 35%] Built target tf_generate_messages_eus
[ 35%] Built target tf_generate_messages_lisp
Scanning dependencies of target ucar_controller_generate_messages_cpp
[ 37%] Built target tf_generate_messages_py
[ 38%] Generating C++ code from ucar_controller/GetMaxVel.srv
Scanning dependencies of target ucar_controller_generate_messages_py
[ 38%] Generating Python code from SRV ucar_controller/GetMaxVel
Traceback (most recent call last):
  File "/opt/ros/melodic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 41, in <module>
    import genmsg.template_tools
  File "/opt/ros/melodic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 39, in <module>
    import em
ModuleNotFoundError: No module named 'em'
Traceback (most recent call last):
  File "/opt/ros/melodic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 41, in <module>
    import genmsg.template_tools
  File "/opt/ros/melodic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 39, in <module>
    import em
ModuleNotFoundError: No module named 'em'
geometry2/tf2_msgs/CMakeFiles/tf2_msgs_generate_messages_cpp.dir/build.make:71: recipe for target '/home/ucar/ucar_ws/devel/include/tf2_msgs/TF2Error.h' failed
make[2]: *** [/home/ucar/ucar_ws/devel/include/tf2_msgs/TF2Error.h] Error 1
CMakeFiles/Makefile2:1238: recipe for target 'geometry2/tf2_msgs/CMakeFiles/tf2_msgs_generate_messages_cpp.dir/all' failed
make[1]: *** [geometry2/tf2_msgs/CMakeFiles/tf2_msgs_generate_messages_cpp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 40%] Generating Python code from SRV ucar_controller/SetMaxVel
geometry/tf/CMakeFiles/tf_generate_messages_cpp.dir/build.make:68: recipe for target '/home/ucar/ucar_ws/devel/include/tf/tfMessage.h' failed
make[2]: *** [/home/ucar/ucar_ws/devel/include/tf/tfMessage.h] Error 1
CMakeFiles/Makefile2:6707: recipe for target 'geometry/tf/CMakeFiles/tf_generate_messages_cpp.dir/all' failed
make[1]: *** [geometry/tf/CMakeFiles/tf_generate_messages_cpp.dir/all] Error 2
[ 40%] Generating Python code from SRV ucar_controller/GetSensorTF
[ 41%] Generating Python code from SRV ucar_controller/SetSensorTF
Traceback (most recent call last):
  File "/opt/ros/melodic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 41, in <module>
    import genmsg.template_tools
  File "/opt/ros/melodic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 39, in <module>
    import em
ModuleNotFoundError: No module named 'em'
ucar_controller/CMakeFiles/ucar_controller_generate_messages_cpp.dir/build.make:68: recipe for target '/home/ucar/ucar_ws/devel/include/ucar_controller/GetMaxVel.h' failed
make[2]: *** [/home/ucar/ucar_ws/devel/include/ucar_controller/GetMaxVel.h] Error 1
CMakeFiles/Makefile2:10815: recipe for target 'ucar_controller/CMakeFiles/ucar_controller_generate_messages_cpp.dir/all' failed
make[1]: *** [ucar_controller/CMakeFiles/ucar_controller_generate_messages_cpp.dir/all] Error 2
[ 41%] Generating Python code from SRV ucar_controller/GetBatteryInfo
[ 41%] Generating Python code from SRV ucar_controller/SetLEDMode
[ 42%] Generating Python srv __init__.py for ucar_controller
[ 42%] Built target ucar_controller_generate_messages_py
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
 

  • 写回答

1条回答 默认 最新

  • 对象被抛出 2021-05-22 22:48
    关注

    ROS吧, 需要empty这个库的, 看样子是import em出错了, 也就是没有empty这个库

    pip install empty就行了

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Android STD快速启动
  • ¥15 如何使用simulink建立一个永磁同步直线电机模型?
  • ¥30 天体光谱图的的绘制并得到星表
  • ¥15 PointNet++的onnx模型只能使用一次
  • ¥20 西南科技大学数字信号处理
  • ¥15 有两个非常“自以为是”烦人的问题急期待大家解决!
  • ¥30 STM32 INMP441无法读取数据
  • ¥15 R语言绘制密度图,一个密度曲线内fill不同颜色如何实现
  • ¥100 求汇川机器人IRCB300控制器和示教器同版本升级固件文件升级包
  • ¥15 用visualstudio2022创建vue项目后无法启动