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.
相关推荐
hugerat1 小时前
在AI的帮助下,用C++构造微型http server
linux·c++·人工智能·http·嵌入式·嵌入式linux
ha20428941942 小时前
Linux操作系统学习记录之----自定义协议(网络计算器)
linux·网络·学习
想唱rap2 小时前
MYSQL在ubuntu下的安装
linux·数据库·mysql·ubuntu
糖~醋排骨2 小时前
DHCP服务的搭建
linux·服务器·网络
dust_and_stars2 小时前
ubuntu24使用apt安装VS-code-server code-server
linux·服务器·windows
码农小韩3 小时前
基于Linux的C++学习——循环
linux·c语言·开发语言·c++·算法
ling-453 小时前
Linux-day09 11
linux·运维·服务器
202321336054 刘3 小时前
Linux常用命令分类整理
linux·运维·数据库
南工孙冬梅3 小时前
【久久派】 新世界系统安装
linux
zbguolei3 小时前
Debian提示:“用户名” 不是 sudoers 文件
linux·服务器·debian