ubuntu18.04安装PCL1.14

简化版说明

1. 安装依赖库:

(1) boost1.84 (https://www.boost.org/releases/1.84.0/

cpp 复制代码
tar vxf boost_xxx.tar.gz
./bootstrap.sh --prefix=/usr/local/
./b2
sudo ./b2 install

(2) vtk9.1.0 (https://vtk.org/files/release/9.1/

cpp 复制代码
创建build

在build文件夹执行cmake  ../

make -j4

sudo make install

编译时在CMakeLists里注释掉下面几行,否则会提示找不到./clang-tidy

cpp 复制代码
# Some generated code has some warnings that we need to exclude for now.
#configure_file(
 # "${VTK_SOURCE_DIR}/.clang-tidy"
  #"${VTK_BINARY_DIR}/.clang-tidy"
  #COPYONLY)

2. 安装pcl1.14 (https://github.com/PointCloudLibrary/pcl)

git clone --recursive https://github.com/PointCloudLibrary/pcl.git

注意安装vtk9.3.0版本在使用pcl的viewer显示时会报错:

cpp 复制代码
malloc.c:2401: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
相关推荐
Wang's Blog16 小时前
Linux小课堂: 网络配置详解之DHCP动态分配与静态IP地址设置
linux·网络·tcp/ip
CS Beginner18 小时前
【Linux】Tomcat基本配置
linux·运维·tomcat
黑翼杰克斯19 小时前
如何裁剪u-boot,保留其必要功能,使体积尽可能小
linux·1024程序员节
jingshaoyou1 天前
ubuntu 搭建SVN服务器
服务器·ubuntu·svn
cellurw1 天前
Day69 SQLite3动态库移植 + BMP图像解析显示 + 进度条控件设计与动态文本管理
linux
nono牛1 天前
Linux基础指令大全(快速上手)
linux·服务器·windows·智能手机
<但凡.1 天前
Linux修炼:库制作与原理(一)
linux·运维·服务器
Maple_land1 天前
编译器的“隐形约定”与本地变量:解锁Linux变量体系的关键密码
linux·运维·服务器·c++·centos
深思慎考1 天前
微服务即时通讯系统(服务端)——Speech 语音模块开发(2)
linux·c++·微服务·云原生·架构·语音识别·聊天室项目
小蜜蜂爱编程1 天前
Ubuntu无法开机Failed to activate swap /swapfile
linux·运维·ubuntu