具体的安装步骤参考以下文章:
Ubuntu20.04安装PCL1.12(带GPU)_ubuntu pcl 1.12-CSDN博客
ubuntu20.04下安装pcl_ubuntu20.04安装pcl-CSDN博客
Ubuntu20.04.3&& PCL1.12+VTK7.1.1&&多版本PCL安装_ubuntu20.04 pcl 1.12.1下载-CSDN博客
1、VTK配置时报如下错误:Error in configuration process, project files may be invalid
解决办法:
Search下搜索ver
将VTK_QT_VERSION版本切换为5
再次点击configure,即可完成。
然后点击Generate
完成。
2. aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
/VTK-7.1.1/Rendering/QT目录下
文件1:vtkQtLabelRenderStrategy.cxx
在文件中的头文件位置处加入"#include <QPainterPath>"后保存即可
文件2:vtkQtStringToImage.cxx
在文件中的头文件位置处加入"#include <QPainterPath>"后保存即可
重新编译
cmake -DCMAKE_TYPE=None ..
make -j8
sudo make install
3、error: ‘struct cudaPointerAttributes’ has no member named ‘memoryType’
/usr/local/include/pangolin/image中的memcpy.h文件中,
将:#ifdef HAVE_CUDA改为#ifdef HAVE_CUDA_PANGOLIN
重新编译即可。(不是重新编译pangolin,不然修改的又被改回来了)
4、libvtkglew-7.1.so.1: cannot open shared object file: No such file or directory
sudo gedit /etc/ld.so.conf
在打开的文件中添加:
usr/local/lib
保存然后关闭。最后执行
sudo ldconfig
重新编译即可。