ubuntu16.04使用apt install安装的pcl在编译joinMap过程中,会出现一个bug,编译失败。 卸载PC后L重装问题

第一类:

转载

https://blog.csdn.net/weixin_38358435/article/details/79165117

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"),成功的解决了问题。

 

第二类

 

  1. 自己手贱把pcl1.9.0卸载了,然后一些程序跑不动了,想哭啊,然后找了各种方式,安装了版本1.7版本1.8 各种出问题,各种装载不上;最后是找了版本1.9.1,所以最后瞎猫碰死耗子找个高版本的安装,没想到成功了

  2. https://github.com/PointCloudLibrary/pcl/releases  PointCloudLibrary/pcl

  3. 
    tar xvfj pcl-pcl-1.9.1.tar.gz
    cd pcl-pcl-1.7.2 && mkdir build && cd build
    cmake -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_GPU=ON - 
       DBUILD_apps=ON -DBUILD_examples=ON -DCMAKE_INSTALL_PREFIX=/usr ..
    make
    
    如果make时报错: make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libproj.so', needed by 'lib/libpcl_io.so.1.9.1.99'。 停止。CMakeFiles/Makefile2:499: recipe for target 'io/CMakeFiles/pcl_io.dir/all' failed
    
    建立软连接, 终端中输入: sudo ln -s /usr/lib/x86_64-linux-gnu/libproj.so.9 /usr/lib/x86_64-linux-gnu/libproj.so
    
    之后重新make
    
    make成功后, 在终端输入: sudo make install
    
    完成安装. 
    
    
  4. 安装过程 http://www.manongjc.com/article/57209.html
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值