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

后端 未结 3 880
隐瞒了意图╮
隐瞒了意图╮ 2021-02-04 11:27

I\'m trying to get PCL 1.7 (The point cloud library, not the other pcl) working on Ubuntu 16.04. I eventually hope to use for C++ stuff, but right now I\'m just trying to get th

3条回答
  •  [愿得一人]
    2021-02-04 12:02

    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

提交回复
热议问题