CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_package_xml.cmake:54 (message): catkin_package_xml() package name 'plan_cover_path' in '/home/kali/car_test/src/simulation/shaver/planning/CPP/cover_path_plan/package.xml' does not match current PROJECT_NAME 'cover_path_plan'. You must call project() with the same package name before.
时间: 2023-10-15 14:02:15 浏览: 228
linphone-desktop出现Cmake Error at builders/vpx.cmake:89的几个错误文件解决
这个错误是由于你的项目名称与 `package.xml` 中指定的包名称不一致所导致的。你需要在你的 `CMakeLists.txt` 文件中使用 `project()` 函数指定与 `package.xml` 文件中相同的项目名称,例如:
```
cmake_minimum_required(VERSION 3.0.2)
project(plan_cover_path)
find_package(catkin REQUIRED COMPONENTS
roscpp
...
)
```
这样就能够解决这个错误了。
阅读全文