ubuntu安装pcl及flann报错,unfinished jobs

pcl依赖vtk,vtk依赖qt

方法一、命令行安装,自动下载pcl所需依赖

sudo apt update
sudo apt install libpcl-dev

安装pcl1.8.1参考另一篇文章https://blog.csdn.net/weixin_44733606/article/details/133017114

方法二、源码安装

1、安装依赖

安装gcc、g++、gdb、cmake、flann

sudo apt-get install build-essential gcc g++ gdb cmake libflann-dev

安装qt5

sudo apt-get install qt5*

下面qt组件可不安装

sudo apt-get install libqt5x11extras5-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qtcreator

安装vtk9

sudo apt-get install libvtk9-dev

 其他

sudo apt-get install libusb-1.0 libusb-dev libudev-dev mpi-default-dev openmpi-bin openmpi-common libpcap-dev libqhull* libgtest-dev freeglut3-dev pkg-config libxmu-dev libxi-dev mono-complete libopenni-dev libopenni2-dev

 2、下载pcl

https://github.com/PointCloudLibrary/pcl

cd pcl
mkdir build
cd build
cmake ..
make -j8
sudo make install

3、验证

cd pcl/test
pcl_viewer car6.pcd

4、错误解决

1)、参考https://blog.csdn.net/fffyyyhhh12/article/details/126889810

2)、The `PATH` argument is required参考https://blog.csdn.net/weixin_45533366/article/details/131525166

三、pcl的flann报错

根据报错文件修改,例如pcl/kdtree/flann.h报错,

//#include <flann/flann.hpp>修改如下
#include </usr/include/flann/flann.hpp>

四、出现unfinished jobs ,减小make -j8线程数,再生成。

回答: 在Ubuntu 20.04安装pcl时,可能会遇到一些报错。其中一个可能的原因是安装的python-pcl库与系统版本不兼容。这可能是因为python-pcl库基本已经停止维护,所以在使用pip install python-pcl安装时会出现版本不适配的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [ubuntu20.04在python中使用pcl库报错:module ‘pcl‘ has no attribute ‘PointCloud](https://blog.csdn.net/qq_46304090/article/details/126469689)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [ubuntu20.04+Vtk 7.1.1+pcl 安装过程中出现的问题](https://blog.csdn.net/m0_48919875/article/details/125439700)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [Ubuntu20.04安装PCL1.8.0编译错误(全网最全~)](https://blog.csdn.net/fffyyyhhh12/article/details/126889810)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值