在一台刚装好Ubuntu系统和ROS的电脑上安装编译运行loam,编译过程在出现问题

安装过程见:添加链接描述
https://blog.csdn.net/weixin_43211438/article/details/87818526
安装pcl时,执行sudo apt-get install libvtk5.10-qt4 libvtk5.10 libvtk5-dev时,会有如下提示:
在这里插入图片描述
当时没有理会,直接继续安装。
等到pcl安装完毕,安装loam,在用catkin编译loam之后,出现如下图所示的报错
在这里插入图片描述

错误提示:

– +++ processing catkin package: ‘loam_velodyne’
– ==> add_subdirectory(loam_velodyne)
– Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
Could not find a package configuration file provided by “pcl_conversions”
with any of the following names:

pcl_conversionsConfig.cmake
pcl_conversions-config.cmake

Add the installation prefix of “pcl_conversions” to CMAKE_PREFIX_PATH or
set “pcl_conversions_DIR” to a directory containing one of the above files.
If “pcl_conversions” provides a separate development package or SDK, be
sure it has been installed.
Call Stack (most recent call first):
loam_velodyne/CMakeLists.txt:4 (find_package)

– Could not find the required component ‘pcl_conversions’. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by “pcl_conversions”
with any of the following names:

pcl_conversionsConfig.cmake
pcl_conversions-config.cmake

Add the installation prefix of “pcl_conversions” to CMAKE_PREFIX_PATH or
set “pcl_conversions_DIR” to a directory containing one of the above files.
If “pcl_conversions” provides a separate development package or SDK, be
sure it has been installed.
Call Stack (most recent call first):
loam_velodyne/CMakeLists.txt:4 (find_package)

– Configuring incomplete, errors occurred!
See also “/home/zxj/catkin_ws/build/CMakeFiles/CMakeOutput.log”.
See also “/home/zxj/catkin_ws/build/CMakeFiles/CMakeError.log”.
Invoking “cmake” failed

解决方法:

执行sudo apt-get install ros-kinetic-pcl-conversions
会有如下提示:
在这里插入图片描述
再次编译loam,编译通过

推测原因:

在安装执行sudo apt-get install libvtk5.10-qt4 libvtk5.10 libvtk5-dev时,卸载了ros-kinetic-pcl-conversions。
尚未测试在安装pcl依赖项时,是否可以跳过执行sudo apt-get install libvtk5.10-qt4 libvtk5.10 libvtk5-dev这句。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值