windows7_64+vs2013_32位配置PCL_1.6.0
下载安装包并安装
安装包官网下载地址:http://pointclouds.org/downloads/windows.html
建议下载32位的,因为我们测试程序是win32控制台程序,(Win32控制台程序是什么:http://blog.csdn.net/wh991/article/details/7422239)
然后将pcl安装到
D:\Program Files\PCL 1.6.0
同时安装的路径下有:
D:\Program Files\OpenNI
D:\Program Files\PrimeSense
环境变量配置
添加系统环境变量PCL_ROOT
D:\Program Files\PCL 1.6.0
然后在path环境变量下添加
D:\Program Files\OpenNI\Bin;%PCL_ROOT%\bin;%PCL_ROOT%\3rdParty\FLANN\bin;%PCL_ROOT%\3rdParty\Qhull\bin;
VS2013中的配置
在vs中新建win32控制台程序
注意,不要勾选安全开发声明周期。
之后就可以新建.h和.cpp开始写代码了,但是我们还需一些工程配置。打开项目属性管理器
项目—>属性—>配置属性—>vc++目录
包含目配置:
D:\Program Files\PCL\3rdParty\Boost\include;
D:\Program Files\PCL\3rdParty\Eigen\include;
D:\Program Files\PCL\3rdParty\Flann\include;
D:\Program Files\PCL\3rdParty\Qhull\include;
D:\Program Files\PCL\3rdParty\VTK\include\vtk-5.8;
D:\Program Files\OpenNI\Include;
D:\Program Files\PCL\include\pcl-1.6;
库目录配置:
D:\Program Files\PCL\3rdParty\Boost\lib;
D:\Program Files\PCL\3rdParty\Qhull\lib;
D:\Program Files\PCL\3rdParty\FLANN\lib;
D:\Program Files\PCL\3rdParty\VTK\lib\vtk-5.8;
D:\Program Files\PCL\lib;
D:\Program Files\OpenNI\Lib;
dubug模式,链接器->输入->附加依赖项 添加:
opengl32.lib
pcl_kdtree_debug.lib
pcl_io_debug.lib
pcl_search_debug.lib
pcl_segmentation_debug.lib
pcl_apps_debug.lib
pcl_features_debug.lib
pcl_filters_debug.lib
pcl_visualization_debug.lib
pcl_common_debug.lib
flann_cpp_s-gd.lib
libboost_system-vc100-mt-gd-1_47.lib
libboost_filesystem-vc100-mt-gd-1_47.lib
libboost_thread-vc100-mt-gd-1_47.lib
libboost_date_time-vc100-mt-gd-1_47.lib
libboost_iostreams-vc100-mt-gd-1_47.lib
vtkalglib-gd.lib
vtkCharts-gd.lib
vtkCommon-gd.lib
vtkDICOMParser-gd.lib
vtkexoIIc-gd.lib
vtkexpat-gd.lib
vtkFiltering-gd.lib
vtkfreetype-gd.lib
vtkftgl-gd.lib
vtkGenericFiltering-gd.lib
vtkGeovis-gd.lib
vtkGraphics-gd.lib
vtkhdf5-gd.lib
vtkHybrid-gd.lib
vtkImaging-gd.lib
vtkInfovis-gd.lib
vtkIO-gd.lib
vtkjpeg-gd.lib
vtklibxml2-gd.lib
vtkmetaio-gd.lib
vtkNetCDF-gd.lib
vtkNetCDF_cxx-gd.lib
vtkpng-gd.lib
vtkproj4-gd.lib
vtkRendering-gd.lib
vtksqlite-gd.lib
vtksys-gd.lib
vtktiff-gd.lib
vtkverdict-gd.lib
vtkViews-gd.lib
vtkVolumeRendering-gd.lib
vtkWidgets-gd.lib
vtkzlib-gd.lib
此时环境已经搭建完毕,你也可以通过我的测试程序测试你的环境是否搭建成功。
测试程序 http://download.csdn.net/detail/a_cainiao_a/9439723
将我的测试程序编译运行成功的话,利用PCL 1.6.0\bin\pcd_viewer就可以看到程序运行的结果。
你需要将测试程序生成的.pcd文件传递给pcd_viewer_release.exe
结果:
参考文献
VS2010+PCL配置 http://www.cnblogs.com/newpanderking/articles/4022322.html
PCL库初步使用(1):小试牛刀 http://blog.csdn.net/vbskj/article/details/7819828
end