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

后端 未结 3 877
隐瞒了意图╮
隐瞒了意图╮ 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 11:52

    This solved the issue for me:

    sudo apt-get install libproj-dev
    

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

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-04 12:16

    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
    
    0 讨论(0)
提交回复
热议问题