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.
相关推荐
不昀8 小时前
网口Link Up后仍然掉线,怎样区分物理链路和数据通路问题?
linux·以太网
Lhan.zzZ8 小时前
Qt WebEngineView 在 Linux 上无法加载网页:从“看不见 HTML“到“禁用沙箱“
linux·c++·qt
Fcy6489 小时前
Linux下 多路转接select详解
linux·select·多路转接
无足鸟ICT10 小时前
【RHCA+】RPM包命名规则
linux·运维·服务器
Zucker n11 小时前
一款适合研究生科研工作安排的日历
linux·数据库·python
爱吃香菜的初学者11 小时前
十六.Linux——多线程(2)
linux·运维·开发语言
荒--12 小时前
Ubuntu软件包查询,弹框下载文件
运维·服务器·ubuntu
‎ദ്ദിᵔ.˛.ᵔ₎12 小时前
Linux:对有关 SIGCHLD 的深层理解
linux·运维·服务器
aichitang202413 小时前
QCU 2.0.0:补齐 Windows、Linux 与 GNOME Wayland
linux·运维·windows·ai·agent·ai编程