ubuntu16.04使用prebuilt binaries 方法安装点云库PCL
网上的许多PCL安装教程都提到网络原因导致按官网教程无法成功安装PCL,因而提出使用源码安装之。不久前在服务器上成功用prebuilt文件安装了PCL,今天在另一台电脑上却装不上。
思来想去可能是更换了软件源的原因(更换软件源的方法网上很多,这里不再叙述),做了个简单的实验测试,实验见下文。得出结论官网(源网址http://pointclouds.org/downloads/linux.html)所示用prebuilt安装的方法可行。
当我选用以下阿里云软件源时,/etc/apt/sources.list
内容如下
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
输入命令,如安装PCL依赖库的命令之一sudo apt-get install libvtk5.10-qt4 libvtk5.10 libvtk5-dev
,显示结果如下图
当我仅将软件源修改为如下ubuntu 16.04系统预置的软件源时(更换软件源时请注意备份^_^)
#deb cdrom:[Ubuntu 16.04.6 LTS _Xenial Xerus_ - Release amd64 (20190227)]/ xenial main restricted# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial universe
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partnerdeb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
输入相同命令,显示结果如下
出现了下载对应软件模块的界面(忽略截图中的无用内容,当时没截到有用信息)
修改好软件源后,安装过程见下文
官网列出的ubuntu14.04的PCL所需命令如下。
sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl
sudo apt-get update
sudo apt-get install libpcl-all
在安装过程中则提示了ubuntu16.04安装输入的命令与14.04略有不同,列如下。
sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl
sudo apt-get update
sudo apt-get install libpcl-dev
输入上文的官网命令可以直接一步完成PCL安装。
PCL安装过程中遇到的其他问题
一、库文件libGL.so或libEGL.so无法链接
解决问题可分为以下几部分
1.寻找该文件是否存在。
ls /usr/lib/x86_64-linux-gnu | grep -i libegl
2.若存在损坏的libGL.so文件,删除之。
3.将libGL.so.1文件链接到libGL.so文件上。
输入命令ls -l /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGL.so.1
即可解决问题。
二、Ubuntu16.04安装pcl出现cannot find -lvtkproj4错误
在CMakeList.txt文件的add_excutable(..)
语句前添加如下语句
list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4")
ubuntu16.04使用prebuilt binaries 方法安装点云库PCL相关推荐
- Ubuntu16.04 64位系统下安装百度云管家
root权限下面: apt-get install wine winetricks wininet wine BaiduNetdisk_5.6.2.exe 安装完成后,登录界面输入用户名和密码会看不见 ...
- Windows/Ubuntu16.04双系统和ros安装方法及可能出现的问题
Windows/Ubuntu16.04双系统和ros安装方法及可能出现的问题 双系统安装(Ubuntu16.04) 正常安装步骤 可能会遇到的问题 ros安装 安装步骤 测试ROS是否安装成功 ros ...
- Docker在Ubuntu16.04和Windows10家庭版上安装操作步骤
之前在 https://blog.csdn.net/fengbingchun/article/details/109559500 中对Docker作了简单的介绍,这里介绍下Docker在Ubuntu1 ...
- Ubuntu16.04下Mongodb官网安装部署步骤(图文详解)(博主推荐)
不多说,直接上干货! 在这篇博客里,我采用了非官网的安装步骤,来进行安装.走了弯路,同时,也是不建议.因为在大数据领域和实际生产里,还是要走正规的为好. Ubuntu16.04下Mongodb(离线安 ...
- Ubuntu16.04下ROS Kinetic的安装(2022)
文章目录 Ubuntu16.04下ROS Kinetic的安装(2022) 一.Ubuntu16.04配置 二.ROS Kinetic安装过程 1.软件中心配置 2.ROS的下载安装 2.1添加源和密 ...
- ubuntu16.04 Intel Realsense D435i 环境安装
ubuntu16.04 Intel D435i 开发 背景 intel Realsense D435i 环境配置 安装realsense D435i SDK以及realsense-ros 安装libr ...
- ubuntu16.04在英文状态下安装中文语言包的过程(法一:图形界面的方式) 以及 安装中文语言包后无法选择汉语问题的解决
ubuntu16.04在英文状态下安装中文语言包的过程(法一:图形界面的方式) 以及 安装中文语言包后无法选择汉语问题的解决 参考文章: (1)ubuntu16.04在英文状态下安装中文语言包的过程( ...
- python3.8.3下载不了nltk_在ubuntu16.04+python3.5情况下安装nltk,以及gensim时pip3安装不成功的解决办法...
在ubuntu16.04+python3.5情况下安装nltk,以及gensim时pip3安装不成功的解决办法,我刚开始因为不太会用linux命令,所以一直依赖于python 的pip命令,可是怎么都 ...
- Ubuntu16.04 Flash Player播放插件安装
Ubuntu16.04 Flash Player播放插件安装 ## Ubuntu16.04 Flash Player播放插件安装 记录在学习过程中的遇到的困难 ## Ubuntu16.04 Flash ...
最新文章
- Srping Boot日志输出(转)
- Android 利用url获取Bitmap图片
- linux——shell 中常用的控制语句 for、while、if、case、expect、exit、break、continue
- c++将int转换成string_Integer与int的区别 (== 与 equal)
- Diskpart命令安装系统小结
- 执行NET 命令无法使用超过20个字符的组名或用户名
- jeditorpane java_如何使用Java浏览器JEditorPane
- Java 多线程详解(三)------线程的同步
- 41.Linux/Unix 系统编程手册(下) -- 共享库基础
- Python 3.65 安装geopandas
- linux学习——文件系统结构
- 不用代码趣讲 ZooKeeper 集群
- 河北画报杂志河北画报杂志社河北画报编辑部2022年第20期目录
- vue条形码生成插件vue-barcode
- 施努卡:机器视觉公司排名(机器人视觉系统)
- 阿里云ECS七天训练营-搭建FTP
- 北大计算机所孙俊教授,教育部人工智能咨询专家孙俊:科技怎样赋能智慧教育?...
- 数据为王,聚数学院引领大数据新时代
- go实践二十 web开发--表单唯一token 表单验证 防止xss攻击 上传文件 cookie处理
- 解决Ubuntu16.04卡在开机画面