Invoking “make cmake_check_build_system“ failed 系列一

文件名错误:

今天运行:

$ camke_make

突然出现下面错误:

cst@cst-virtual-machine:~/catkin_ws$ catkin_make Base path: /home/cst/catkin_ws Source space: /home/cst/catkin_ws/src Build space: /home/cst/catkin_ws/build Devel space: /home/cst/catkin_ws/devel Install space: /home/cst/catkin_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/cst/catkin_ws/build" #### -- Using CATKIN_DEVEL_PREFIX: /home/cst/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /home/cst/catkin_ws/devel;/opt/ros/noetic -- This workspace overlays: /home/cst/catkin_ws/devel;/opt/ros/noetic -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3") -- Using PYTHON_EXECUTABLE: /usr/bin/python3 -- Using Debian Python package layout -- Using empy: /usr/lib/python3/dist-packages/em.py -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/cst/catkin_ws/build/test_results -- Forcing gtest/gmock from source, though one was otherwise available. -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python3 (found version "3.8.10") -- Using Python nosetests: /usr/bin/nosetests3 -- catkin 0.8.10 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 3 packages in topological order: -- ~~ - service_client_pkg -- ~~ - actionlib_example_pkg -- ~~ - turtle_vel_ctrl_pkg -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'service_client_pkg' -- ==> add_subdirectory(service_client_pkg) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- service_client_pkg: 0 messages, 1 services CMake Warning at /opt/ros/noetic/share/catkin/cmake/catkin_package.cmake:166 (message): catkin_package() DEPENDS on 'system_lib' but neither 'system_lib_INCLUDE_DIRS' nor 'system_lib_LIBRARIES' is defined. Call Stack (most recent call first): /opt/ros/noetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package) service_client_pkg/CMakeLists.txt:106 (catkin_package) -- +++ processing catkin package: 'actionlib_example_pkg' -- ==> add_subdirectory(actionlib_example_pkg) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy CMake Error at /opt/ros/noetic/share/catkin/cmake/assert.cmake:20 (message): Assertion failed: file '/home/cst/catkin_ws/src/actionlib_example_pkg/action/action/ActionlibExMsg.action' does not exist. Message: action file not found Call Stack (most recent call first): /opt/ros/noetic/share/actionlib_msgs/cmake/actionlib_msgs-extras.cmake:35 (assert_file_exists) actionlib_example_pkg/CMakeLists.txt:64 (add_action_files) -- Configuring incomplete, errors occurred! See also "/home/cst/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/cst/catkin_ws/build/CMakeFiles/CMakeError.log". make: *** [Makefile:880:cmake_check_build_system] 错误 1 Invoking "make cmake_check_build_system" failed 上

从红字中我们可以看到 CMake 在查找动作文件时遇到了问题,因为它无法在指定的路径中找到动作文件 ActionlibExMsg.action

仔细检查发现:

在action文件目录下的文件ActionlibMsg.action文件和在CMakeLists.txt中定义的 第66行的 ActionlibExMsg.action文件名不一样导致了上面的错误

 

修改之后就把错误改正过来了。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值