CMake Error at /opt/ros/noetic/share/catkin/cmake/catkin_package.cmake:108 (message): catkin_package() called with unused arguments: ... Call Stack (most recent call first): /opt/ros/noetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package) precise_land/CMakeLists.txt:15 (catkin_package) -- Configuring incomplete, errors occurred! See also "/home/ros/catkin_ctr/build/CMakeFiles/CMakeOutput.log". See also "/home/ros/catkin_ctr/build/CMakeFiles/CMakeError.log". make: *** [Makefile:3358:cmake_check_build_system] 错误 1 Invoking "make cmake_check_build_system" failed
时间: 2023-08-15 19:40:32 浏览: 174
linphone-desktop出现Cmake Error at builders/vpx.cmake:89的几个错误文件解决
这个错误可能是因为`CMakeLists.txt`中的`catkin_package`宏调用了未使用的参数。你可以检查`CMakeLists.txt`文件中的`catkin_package`宏是否正确添加了需要依赖的消息类型,例如:
```
catkin_package(
...
CATKIN_DEPENDS quadrotor_msgs nav_msgs
...
)
```
如果没有正确添加需要依赖的消息类型,就会出现类似的错误。你可以将`catkin_package`宏中未使用的参数删除或者添加正确的参数,然后重新编译你的ROS程序。
阅读全文