Ubuntu18.04安装PCL1.8以及故障解决

该博客讲述了在Ubuntu系统中安装PCL(Point Cloud Library)库时遇到的依赖冲突问题,以及如何通过手动下载源码并编译来解决这个问题。详细步骤包括更新包列表、安装各种依赖项,特别提到了libvtk7-qt-dev的依赖问题。在尝试安装libvtk7-jni后,建议更换软件源,并提供了从GitHub下载PCL1.8源码进行编译和安装的方法。
摘要由CSDN通过智能技术生成

常规安装步骤如下

sudo apt-get update  
sudo apt-get install git build-essential linux-libc-dev
sudo apt-get install cmake cmake-gui
sudo apt-get install libusb-1.0-0-dev libusb-dev libudev-dev
sudo apt-get install mpi-default-dev openmpi-bin openmpi-common 
sudo apt-get install libflann1.9 libflann-dev 
sudo apt-get install libeigen3-dev 
sudo apt-get install libboost-all-dev
sudo apt-get install libvtk7.1-qt libvtk7.1 libvtk7-qt-dev  
sudo apt-get install libqhull* libgtest-dev
sudo apt-get install freeglut3-dev pkg-config
sudo apt-get install libxmu-dev libxi-dev
sudo apt-get install mono-complete
sudo apt-get install openjdk-8-jdk openjdk-8-jre

出现的错误

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libvtk7.1 is already the newest version (7.1.1+dfsg1-2).
libvtk7.1-qt is already the newest version (7.1.1+dfsg1-2).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libvtk7-qt-dev : Depends: libvtk7-dev (= 7.1.1+dfsg1-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

解决方法

sudo apt-get install libvtk7-jni

这个时候可能会出现源问题,去切换一下源试试。不用梯子,,,,

下载编译

load the PCL1.8 from the link
https://github.com/PointCloudLibrary/pcl/releases/tag/pcl-1.8.1

接下来进行编译

cd pcl 
mkdir release 
cd release
cmake -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_GPU=ON-DBUILD_apps=ON -DBUILD_examples=ON \ -DCMAKE_INSTALL_PREFIX=/usr .. 
make  

编译完成之后

sudo make install
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值