首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Ubuntu上安装Colcon

在Ubuntu上安装Colcon
EN

Stack Overflow用户
提问于 2019-07-01 22:33:00
回答 1查看 1.7K关注 0票数 1

感谢任何帮助:我只是想在一个运行ubuntu的虚拟机上安装Colcon --我正在使用这个命令:colcon build --symlink-install我得到了这个错误:

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2019-10-24 21:23:07

您似乎没有安装某些环境变量。

当我尝试用Colcon构建ROS2项目时,我也遇到了类似的问题。但是,当我最初开发我的环境时(像. ~ros2_ws/install/setup.bash)这样的东西),它变得很好。

附注:如果在您的案例中这个问题也与ROS有关,那么不要忘记在构建后将已安装的库添加到类路径中:. install/setup.bash

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56837562

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档