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.
相关推荐
深爱水瓶 血影S狂风6 分钟前
Linux.NET学习手记(2)
linux·学习·.net
sg_knight40 分钟前
Codex CLI 安装全攻略:macOS / Linux / Windows(WSL2)三端实战
linux·windows·macos·openai·ai编程·coding·codex
大眼、不聚光1 小时前
9.linux系统管理-ssh免密配置
linux·ssh·github
啦啦啦!1 小时前
虚拟机如何接入Codex并配置中转站(vscode插件版)
linux·vscode·ubuntu·编辑器
love530love1 小时前
Ubuntu系统通过Homebrew安装Lightpanda完整实战教程(含端口占用排坑)
大数据·linux·运维·人工智能·elasticsearch·搜索引擎
j7~1 小时前
【Linux】二十八.线程篇五《Linux多线程编程:线程同步之条件变量》---详解
linux·运维·c++·学习·条件变量·线程同步
似水এ᭄往昔1 小时前
【Linux网络编程】--UDP__SCOKE
linux·计算机网络
小张同学a.2 小时前
LAMP架构4——MySQL高可用
linux·运维·服务器·数据库·mysql·架构·负载均衡
进击切图仔2 小时前
Ubuntu 挂载 XFS 磁盘并免密读写
linux·网络·ubuntu
qetfw2 小时前
Debian Apache2 执行 Shell CGI:动态时间页面配置与验证
linux·运维·debian