huhao1216
2021-05-22 21:43
采纳率: 50%
浏览 608

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就行了

    评论
    解决 1 无用
    打赏 举报

相关推荐 更多相似问题