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.
相关推荐
未济2 天前
linux 配置环境变量
linux
傲世仙尊2 天前
目录即文件-Ext文件系统收尾篇
linux·c语言
_艾伦 耶格尔.2 天前
进程间通信
linux
Liuqy-052 天前
Linux IO编程——静态库、动态库
linux
彧azz2 天前
Linux 环境下 Redis 学习总结:数据类型、持久化、锁、事务、主从与缓存问题
linux·redis·笔记·学习·面试
-梅2 天前
linux(8) 软硬链接
linux·运维·服务器
AIgorithmGEEK2 天前
[Linux]线程三部曲(上):一个执行流的诞生——从操作系统一路拆到 pthread_create
linux·线程·pid
琥珀色糖2 天前
SimlpeHttp
linux·服务器
qeen872 天前
【Linux】操作系统之进程介绍(二)
linux·笔记·学习·进程
Zenova EdgeOS2 天前
Linux ss 工业边缘网络分析实战
linux·python·边缘计算·工业网关