做电影网站能不能赚钱,wordpress知更鸟,dw做网站地图,wordpress小工具推荐目录 0. 背景1. apt安装的版本2. 更新apt源3. apt安装命令4. 测试 0. 背景
使用源码安装pcl较为麻烦#xff0c;因为存在依赖库vtk#xff0c;flann#xff0c;boost#xff0c;eigen等#xff0c;都不太好安装#xff0c;因此采用apt方式安装。
下面内容主要参考博客《… 目录 0. 背景1. apt安装的版本2. 更新apt源3. apt安装命令4. 测试 0. 背景
使用源码安装pcl较为麻烦因为存在依赖库vtkflannboosteigen等都不太好安装因此采用apt方式安装。
下面内容主要参考博客《【Ubuntu】Ubuntu安装PCL(安装PCL/卸载PCL/查看PCL版本/PCL报错处理相关操作)史上最详细》
1. apt安装的版本
使用如下命令查看当前ubuntu版本使用apt安装的最高pcl版本ubuntu 20最高只能安装pcl 1.10版本
sudo apt-get install libpcl-dev结果如下
2. 更新apt源
一般可以忽略这一步但是如果你发现没法apt install pcl那么考虑源的问题我的源注意我是ubuntu 20其他版本的ubuntu请自行寻找对应的源很简单的如下
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
sudo vim /etc/apt/sources.list将下面的源保存
deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse# deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse更新操作如下
sudo apt-get update3. apt安装命令
sudo apt-get install build-essential
sudo apt-get install libpcl-dev4. 测试
apt-cache show libpcl-dev如果是没有问题的话如下是1.10版本