1. qt4:Ubuntu 20.04 LTS 安装qt4 library_ubuntu20.04安装qt4
2.本文下载过程可参考1:ubuntu20.04下安装pcl_ubuntu安装pcl_Yuannau_jk的博客-CSDN博客
参考2:Ubuntu 20.04.05安装PCL-1.12.0_no package 'metslib' found_zhiTjun的博客-CSDN博客
VTK下载:VTK-7.1.1.zip
报错:
OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for compatibility with CMake 3.10 and below the legacy GL library will be used. Call Stack (most recent call first): CMake/vtkOpenGL.cmake:77 (find_package) Rendering/OpenGL2/CMakeLi
解决:在/VTK-7.1.1/CMakeLists.txt文件中加入下面内容。
错误:
CMake Deprecation Warning at ThirdParty/libproj4/vtklibproj4/cmake/policies.cmake:2 (cmake_policy):
The OLD behavior for policy CMP0022 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
ThirdParty/libproj4/vtklibproj4/CMakeLists.txt:43 (include)
解决:在 /VTK-7.1.1/ThirdParty/libproj4/vtklibproj4/cmake/policies.cmake修改如下
最终结果:configure后框里没有任何红色报错。
PCL
参考:Ubuntu18.04安装PCL 1.9.1_振华OPPO的博客
PCL编译出错参考:Ubuntu20.04安装PCL1.8.0编译错误_小方只会百度的博客
1.下载地址: Release PCL 1.12.0 · PointCloudLibrary/pcl · GitHub