错误日志
python导入PCL时报错找不到libpcl
ImportError: libpcl_keypoints.so.1.7: cannot open shared object file: No such file or directory
错误原因 用以下命令查找libpcl_keypoints版本
sudo find / -name '*libpcl_key*'
发现目前libpcl版本为1.8
出现该问题的原因是使用pip install python_pcl的版本为0.3.0a1,只能使用libpcl=1.7,而ubuntu18安装依赖包libpcl-dev的版本为1.8
问题解决
使用0.3.0rc1的python_pcl包
git clone https://github.com/barrygxwan/Python-PCL-Ubuntu18.04.git
cd Python-PCL-Ubuntu18.04
pip install python_pcl-0.3.0rc1-cp27-cp27mu-linux_x86_64.whl
问题解决