在~/catkin_ws# 输入catkin_make,出现错误:

CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_package_xml.cmake:54 (message):

Invoking "make cmake_check_build_system" failed。

CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_package_xml.cmake:54 (message):

分析原因:
 

CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_package_xml.cmake:54 (message):

这里说CMakeLists.txt文件中project(test_pkg)的test_pkg参数与package.xml文件中<name>test</name>不一致,看文件目录下自定义过test_pkg,遂将package.xml文件中<name>test</name>中test修改为<name>test_pkg</name>,并且保存重新catkin_make。

CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_package_xml.cmake:54 (message):

CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_package_xml.cmake:54 (message):

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2021-07-30
  • 2021-07-18
  • 2021-06-14
  • 2022-02-18
  • 2022-12-23
猜你喜欢
  • 2021-06-27
  • 2021-12-28
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
相关资源
相似解决方案