关于高博视觉slam十四讲第5讲中PCL编译的问题

   ubuntu16.04使用apt install安装的pcl在编译joinMap过程中,会出现一个bug,编译失败。
-- Found OpenNI2: /usr/lib/libOpenNI2.so  
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
-- The imported target "vtkRenderingPythonTkWidgets" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   " /usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
    but not all the files it references.
通过查询我的错误,发现这是一个属于ubuntu16.04的bug,通过 https://stackoverflow.com/questions/37369369/compiling-pcl-1-7-on-ubuntu-16-04-errors-in-cmake-generated-makefile 这篇的作者,发现少一个依赖项,终端加上sudo apt-get install libproj-dev ,再加上高博视频课中所讲的在CMakeList.txt中修正的一个链接错误list (REMOVE_ITEM PCL_LIBRARIES "vtkproj4"),成功的解决了问题。

你可能感兴趣的:(十四讲学习过程,slam学习)