作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
任何帮助表示赞赏:
我只是想在运行 ubuntu 的虚拟机上安装 Colcon-和
我正在使用这个命令:colcon build --symlink-install
我收到此错误:
Starting >>> sick_scan2
--- stderr: sick_scan2
CMake Error at CMakeLists.txt:24 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this
project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake"
with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< sick_scan2 [ Exited with code 1 ]
Summary: 0 packages finished [0.30s]
1 package failed: sick_scan2
1 package had stderr output: sick_scan2
最佳答案
看来你没有安装一些环境变量。
当我尝试使用 Colcon 构建 ROS2 项目时,我遇到了类似的问题。
但是,当我最初采购我的环境时(类似于 . ~ros2_ws/install/setup.bash)
),它变得很好。
附言如果您的问题也与 ROS 有关,请不要忘记在构建后将已安装的库添加到类路径:. install/setup.bash
.
关于ubuntu - colcon 构建失败 : 'Could not find a package configuration file provided by "ament_cmake"',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56837562/
我是一名优秀的程序员,十分优秀!