pcl1.7.2+vs2013环境配置

本文档是VS2013+PCL1.7.2的环境配置

1、首先注意,以下所有软件都装32位的!

2、关掉360安全卫士,否则将会出现很多安装提示

3、安装OpenNI,必须在PCL官网下载的;(建议装在D:\Program Files

提供下载地址:https://yunpan.cn/cP4ZTUyM3v7Ni (提取码:3526)   (已更新下载地址)

4安装QT安装在默认路径C:\Qt不要修改!

提供下载地址:在前面那个云盘文件夹

5安装PCL-1.7.2-AllInOne-msvc2013-win32弹出的对话框中选择第三个for current user随后会提示OpenNI已经安装,点击OK即可;(建议装在D:\Program Files

提供下载地址:在前面那个云盘文件夹

6、配置环境变量,OpenNI的环境变量已经在安装它时配置好了,PCL_ROOT也在PCL安装时配置好,只用在系统变量Path后面添加PCL第三方库相应地址,在Path变量后面添加地址如下:

1. D:\Program Files\OpenNI\Bin;%PCL_ROOT%\bin;%PCL_ROOT%\3rdParty\FLANN\bin;%PCL_ROOT%\3rdParty\Qhull\bin;

OpenNI路径根据自己所装软件地址进行修改)

7、新建Win32控制台工程,找云盘里面的example.cpp例子来练习一下,拷贝其中example.cpp和1.pcd文件到工程目录,把.cpp文件添加到源文件。

8、(后面有更简单操作)项目→项目属性→配置属性→VC++目录→“包含目录”添加地址:

$(PCL_ROOT)\include\pcl-1.7;$(PCL_ROOT)\3rdParty\Boost\include\boost-1_57;$(PCL_ROOT)\3rdParty\Eigen\eigen3;$(PCL_ROOT)\3rdParty\FLANN\include;$(PCL_ROOT)\3rdParty\QHull\include;$(PCL_ROOT)\3rdParty\VTK\include\vtk-6.2;D:\Program Files\OpenNI\Include;

 

在“库目录”中添加地址:

$(PCL_ROOT)\lib;$(PCL_ROOT)\3rdParty\Boost\lib;$(PCL_ROOT)\3rdParty\FLANN\lib;$(PCL_ROOT)\3rdParty\QHull\lib;$(PCL_ROOT)\3rdParty\VTK\lib;D:\Program Files\OpenNI\Lib;

 

9、配置外部依赖项,右键单击工程名,属性—debug—链接器—输入—附加依赖项,添加的附加依赖项如下:

pcl_common_debug.lib;pcl_features_debug.lib;pcl_filters_debug.lib;pcl_io_debug.lib;pcl_io_ply_debug.lib;pcl_kdtree_debug.lib;pcl_keypoints_debug.lib;pcl_octree_debug.lib;pcl_outofcore_debug.lib;pcl_people_debug.lib;pcl_recognition_debug.lib;pcl_registration_debug.lib;pcl_sample_consensus_debug.lib;pcl_search_debug.lib;pcl_segmentation_debug.lib;pcl_surface_debug.lib;pcl_tracking_debug.lib;pcl_visualization_debug.lib;libboost_atomic-vc120-mt-gd-1_57.lib;libboost_chrono-vc120-mt-gd-1_57.lib;libboost_container-vc120-mt-gd-1_57.lib;libboost_context-vc120-mt-gd-1_57.lib;libboost_coroutine-vc120-mt-gd-1_57.lib;libboost_date_time-vc120-mt-gd-1_57.lib;libboost_exception-vc120-mt-gd-1_57.lib;libboost_filesystem-vc120-mt-gd-1_57.lib;libboost_graph-vc120-mt-gd-1_57.lib;libboost_iostreams-vc120-mt-gd-1_57.lib;libboost_locale-vc120-mt-gd-1_57.lib;libboost_log-vc120-mt-gd-1_57.lib;libboost_log_setup-vc120-mt-gd-1_57.lib;libboost_math_c99-vc120-mt-gd-1_57.lib;libboost_math_c99f-vc120-mt-gd-1_57.lib;libboost_math_c99l-vc120-mt-gd-1_57.lib;libboost_math_tr1-vc120-mt-gd-1_57.lib;libboost_math_tr1f-vc120-mt-gd-1_57.lib;libboost_math_tr1l-vc120-mt-gd-1_57.lib;libboost_mpi-vc120-mt-gd-1_57.lib;libboost_prg_exec_monitor-vc120-mt-gd-1_57.lib;libboost_program_options-vc120-mt-gd-1_57.lib;libboost_random-vc120-mt-gd-1_57.lib;libboost_regex-vc120-mt-gd-1_57.lib;libboost_serialization-vc120-mt-gd-1_57.lib;libboost_signals-vc120-mt-gd-1_57.lib;libboost_system-vc120-mt-gd-1_57.lib;libboost_test_exec_monitor-vc120-mt-gd-1_57.lib;libboost_thread-vc120-mt-gd-1_57.lib;libboost_timer-vc120-mt-gd-1_57.lib;libboost_unit_test_framework-vc120-mt-gd-1_57.lib;libboost_wave-vc120-mt-gd-1_57.lib;libboost_wserialization-vc120-mt-gd-1_57.lib;flann_cpp_s-gd.lib;qhullstatic_d.lib;vtkalglib-6.2-gd.lib;vtkChartsCore-6.2-gd.lib;vtkCommonColor-6.2-gd.lib;vtkCommonComputationalGeometry-6.2-gd.lib;vtkCommonCore-6.2-gd.lib;vtkCommonDataModel-6.2-gd.lib;vtkCommonExecutionModel-6.2-gd.lib;vtkCommonMath-6.2-gd.lib;vtkCommonMisc-6.2-gd.lib;vtkCommonSystem-6.2-gd.lib;vtkCommonTransforms-6.2-gd.lib;vtkDICOMParser-6.2-gd.lib;vtkDomainsChemistry-6.2-gd.lib;vtkexoIIc-6.2-gd.lib;vtkexpat-6.2-gd.lib;vtkFiltersAMR-6.2-gd.lib;vtkFiltersCore-6.2-gd.lib;vtkFiltersExtraction-6.2-gd.lib;vtkFiltersFlowPaths-6.2-gd.lib;vtkFiltersGeneral-6.2-gd.lib;vtkFiltersGeneric-6.2-gd.lib;vtkFiltersGeometry-6.2-gd.lib;vtkFiltersHybrid-6.2-gd.lib;vtkFiltersHyperTree-6.2-gd.lib;vtkFiltersImaging-6.2-gd.lib;vtkFiltersModeling-6.2-gd.lib;vtkFiltersParallel-6.2-gd.lib;vtkFiltersParallelImaging-6.2-gd.lib;vtkFiltersProgrammable-6.2-gd.lib;vtkFiltersSelection-6.2-gd.lib;vtkFiltersSMP-6.2-gd.lib;vtkFiltersSources-6.2-gd.lib;vtkFiltersStatistics-6.2-gd.lib;vtkFiltersTexture-6.2-gd.lib;vtkFiltersVerdict-6.2-gd.lib;vtkfreetype-6.2-gd.lib;vtkftgl-6.2-gd.lib;vtkGeovisCore-6.2-gd.lib;vtkgl2ps-6.2-gd.lib;vtkhdf5-6.2-gd.lib;vtkhdf5_hl-6.2-gd.lib;vtkImagingColor-6.2-gd.lib;vtkImagingCore-6.2-gd.lib;vtkImagingFourier-6.2-gd.lib;vtkImagingGeneral-6.2-gd.lib;vtkImagingHybrid-6.2-gd.lib;vtkImagingMath-6.2-gd.lib;vtkImagingMorphological-6.2-gd.lib;vtkImagingSources-6.2-gd.lib;vtkImagingStatistics-6.2-gd.lib;vtkImagingStencil-6.2-gd.lib;vtkInfovisCore-6.2-gd.lib;vtkInfovisLayout-6.2-gd.lib;vtkInteractionImage-6.2-gd.lib;vtkInteractionStyle-6.2-gd.lib;vtkInteractionWidgets-6.2-gd.lib;vtkIOAMR-6.2-gd.lib;vtkIOCore-6.2-gd.lib;vtkIOEnSight-6.2-gd.lib;vtkIOExodus-6.2-gd.lib;vtkIOExport-6.2-gd.lib;vtkIOGeometry-6.2-gd.lib;vtkIOImage-6.2-gd.lib;vtkIOImport-6.2-gd.lib;vtkIOInfovis-6.2-gd.lib;vtkIOLegacy-6.2-gd.lib;vtkIOLSDyna-6.2-gd.lib;vtkIOMINC-6.2-gd.lib;vtkIOMovie-6.2-gd.lib;vtkIONetCDF-6.2-gd.lib;vtkIOParallel-6.2-gd.lib;vtkIOParallelXML-6.2-gd.lib;vtkIOPLY-6.2-gd.lib;vtkIOSQL-6.2-gd.lib;vtkIOVideo-6.2-gd.lib;vtkIOXML-6.2-gd.lib;vtkIOXMLParser-6.2-gd.lib;vtkjpeg-6.2-gd.lib;vtkjsoncpp-6.2-gd.lib;vtklibxml2-6.2-gd.lib;vtkmetaio-6.2-gd.lib;vtkNetCDF-6.2-gd.lib;vtkNetCDF_cxx-6.2-gd.lib;vtkoggtheora-6.2-gd.lib;vtkParallelCore-6.2-gd.lib;vtkpng-6.2-gd.lib;vtkproj4-6.2-gd.lib;vtkRenderingAnnotation-6.2-gd.lib;vtkRenderingContext2D-6.2-gd.lib;vtkRenderingContextOpenGL-6.2-gd.lib;vtkRenderingCore-6.2-gd.lib;vtkRenderingFreeType-6.2-gd.lib;vtkRenderingFreeTypeOpenGL-6.2-gd.lib;vtkRenderingGL2PS-6.2-gd.lib;vtkRenderingImage-6.2-gd.lib;vtkRenderingLabel-6.2-gd.lib;vtkRenderingLIC-6.2-gd.lib;vtkRenderingLOD-6.2-gd.lib;vtkRenderingOpenGL-6.2-gd.lib;vtkRenderingVolume-6.2-gd.lib;vtkRenderingVolumeOpenGL-6.2-gd.lib;vtksqlite-6.2-gd.lib;vtksys-6.2-gd.lib;vtktiff-6.2-gd.lib;vtkverdict-6.2-gd.lib;vtkViewsContext2D-6.2-gd.lib;vtkViewsCore-6.2-gd.lib;vtkViewsInfovis-6.2-gd.lib;vtkzlib-6.2-gd.lib;

注意:89步可自定义为一个props文件,在每次新建项目的时候在属性管理器的Dubug|Win32下添加PCL172.props即可。提供我的版本的props下载,里面OpenNI可以根据自己的路径进行修改即可用。

提供下载地址:在前面那个云盘文件夹

 

10、试着编译程序看能不能用吧。

 

 

你可能感兴趣的:(计算机视觉)