Compiling PCL 1.7 on Ubuntu 16.04 , errors in CMake generated Makefile

半城伤御伤魂 提交于 2019-12-03 06:06:54

This bug is still in 16.04, but there is a workaround.

  1. sudo apt install libproj-dev

  2. add the following line to your CMakeLists.txt file:
    list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4")

The first provides the necessary libproj.so, and the second fixes errors when linking against a nonexistent (and unnecessary) libvtkproj4.

The other errors about referenced files not existing appear to be harmless (or at least my project compiles despite having the same errors).

for more information, see:
https://bugs.launchpad.net/ubuntu/+source/pcl/+bug/1573174
https://bugs.launchpad.net/ubuntu/+source/vtk6/+bug/1573234

This solved the issue for me:

sudo apt-get install libproj-dev

Source: https://github.com/PointCloudLibrary/pcl/issues/1828

There seems to be an issue with the installation with vtk6

described here : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819741

quick and dirty fix: make a symbolic link libproj.so in the requested directory:

sudo ln -s  /usr/lib/x86_64-linux-gnu/libproj.so.<your-version> /usr/lib/x86_64-linux-gnu/libproj.so
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!