Ubuntu16.04安装pcl出现cannot find -lvtkproj4解决办法
2017-08-17 21:33
706 查看
Ubuntu16.04安装pcl,方法是直接执行
运行测试程序时出现以下错误
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libproj.so', needed by 'joinMap'. Stop.
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/joinMap.dir/all' failed
make[1]: *** [CMakeFiles/joinMap.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
*** Failure: Exit code 2 ***
解决方法,执行
再次编译出现以下错误
-- Build files have been written to: /home/wd/code/slambook-master/ch5/joinMap/build
[ 50%] Linking CXX executable joinMap
/usr/bin/ld: cannot find -lvtkproj4
collect2: error: ld returned 1 exit status
CMakeFiles/joinMap.dir/build.make:349: recipe for target 'joinMap' failed
make[2]: *** [joinMap] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/joinMap.dir/all' failed
make[1]: *** [CMakeFiles/joinMap.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
*** Failure: Exit code 2 ***
解决方法,需要在cmakelist中加一条指令修复,即在add_executable语句前面加上list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4")
sudo apt-get install libpcl-dev pcl-tools
运行测试程序时出现以下错误
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libproj.so', needed by 'joinMap'. Stop.
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/joinMap.dir/all' failed
make[1]: *** [CMakeFiles/joinMap.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
*** Failure: Exit code 2 ***
解决方法,执行
sudo apt-get install libproj-dev
再次编译出现以下错误
-- Build files have been written to: /home/wd/code/slambook-master/ch5/joinMap/build
[ 50%] Linking CXX executable joinMap
/usr/bin/ld: cannot find -lvtkproj4
collect2: error: ld returned 1 exit status
CMakeFiles/joinMap.dir/build.make:349: recipe for target 'joinMap' failed
make[2]: *** [joinMap] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/joinMap.dir/all' failed
make[1]: *** [CMakeFiles/joinMap.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
*** Failure: Exit code 2 ***
解决方法,需要在cmakelist中加一条指令修复,即在add_executable语句前面加上list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4")
相关文章推荐
- ubuntu16.04安装PHP ds拓展出现 undefined symbol: php_json_serializable_ce 解决办法
- Ubuntu16.04下在Python2.7安装OpenCV3.2.0出现的问题与解决办法
- 在ubuntu 16.04上安装truffle出现的若干问题及解决办法
- ubuntu16.04下安装wps出现的问题及其解决办法
- ubuntu16.04下安装wps出现的问题及其解决办法
- 【转】Ubuntu 上编译Android出现cannot find -lstdc++解决办法
- 戴尔7559 安装ubuntu16.04 出现BUG soft lockup的解决方法
- ubuntu apt 安装软件时 出现(--configure)时出错解决办法
- ubuntu下面出现无法使用刚安装eclipse的插件的问题,解决办法
- Ubuntu16.04安装遨游浏览器提示依赖关系不满足libgcrypt11的解决办法
- Ubuntu 16.04 安装 Phpmyadmin 出现的问题及解决
- ubuntu安装vmware12出现cannot ope dev/vmmon及modprobe vmmon提示密钥无效的解决办法
- ubuntu安装caffe时出现有关lboost库之类的问题解决办法
- 安装ubuntu出现BUG soft lockup的解决方法(16.04 14.04)
- VMware下安装Ubuntu 11.04不出现图形界面的解决办法(其他版本linux可以借鉴)
- Ubuntu14.04安装cuda7.5出现login loop error解决办法
- vmware workstation 9 安装Ubuntu 12.04 WIN7 64 位 出现问题及解决办法
- Ubuntu16.04上使用Anaconda3的Python3.6的pip安装UWSGI报错解决办法
- ubuntu 12.04 安装deb包出现内部错误解决办法
- Ubuntu 16.04 无法安装软件解决办法