windows下编译安装python pcl
环境
VS2015
Python3.7
pcl1.8.1
安装pcl1.8.1
方式1:在pcl官网下载all in one安装包安装https://github.com/PointCloudLibrary/pcl/releases/tag/pcl-1.8.1
方式2:github上下载源码自己编译
https://github.com/PointCloudLibrary/pcl
下载python-pcl源码和gtk,安装cython
https://github.com/strawlab/python-pcl
http://www.tarnyko.net/dl/gtk.htm
pip3 install cython
将解压后的GTK bin目录的所有内容复制到python-pcl目录下的pkg-config文件夹中
进入python-pcl目录,编译python-pcl
python .\setup.py build_ext -i
python setup.py install
import pcl报错
from ._pcl import * ImportError: DLL load failed:
解决:添加环境变量
Now,I have solved the problem.Just missing C:\Program Files\OpenNI2\Samples\Bin\OpenNI2.dll.Copy OpenNI2.dll to Lib\site-packages\python_pcl-0.3-py3.6-win-amd64.egg\pcl