Win10+VS2013+PCL1.8 环境配置

     PCL是一个功能比较齐全的点云处理库,我通过借鉴别人的博客完成了它的配置,现将配置流程和安装完成后遇到的问题整理如下,希望对大家有所帮助。安装之前需要下载安装VS2013,然后再下载PCL(本文使用的是PCL1.8版本)。

第一步

打开安装包进行安装,安装过程中可以一直点击下一步。如果选择不添加PCL到path变量,安装后则需要自己手动添加,所以一般会选择自动添加到系统变量:

Win10+VS2013+PCL1.8 环境配置_第1张图片

选择安装路径(以E盘为例,我是安装在E:\Important Software\下):

Win10+VS2013+PCL1.8 环境配置_第2张图片

安装过程中会弹出安装OpenNI的窗口,选择将其安装在PCL安装目录下的3rdParty\OpenNI2中:

Win10+VS2013+PCL1.8 环境配置_第3张图片

安装完成后,查看系统变量,会增加以下几个变量(因为选择的是自动添加PCL到path变量):

Win10+VS2013+PCL1.8 环境配置_第4张图片

第二步

除了自动添加的环境变量,还需要配置其他的环境变量。打开path进行编辑,手动添加以下变量:

Win10+VS2013+PCL1.8 环境配置_第5张图片

第三步

完成环境变量的配置后,需要对项目工程的属性文件进行配置。首先新建一个win32项目,然后一直点击下一步:

Win10+VS2013+PCL1.8 环境配置_第6张图片

遇到应用程序设置时,选择空项目,完成新工程的建立:

Win10+VS2013+PCL1.8 环境配置_第7张图片

然后将项目设置为64位+debug模式/release模式,在配置管理器中进行设置(选择64位是因为安装的PCL库是64位,且debug模式和release模式需要分别配置)

Win10+VS2013+PCL1.8 环境配置_第8张图片

第四步

切换到属性管理器,为项目工程添加外部依赖项,首先是附加包含目录,需要添加以下几项(根据自己的安装路径进行添加):

Win10+VS2013+PCL1.8 环境配置_第9张图片

接着添加附加库目录:

Win10+VS2013+PCL1.8 环境配置_第10张图片

最后在链接器->输入->附加依赖项中添加以下lib(最麻烦的就是添加这一项,有时候版本对不上也无法配置成功):

Debug模式:

pcl_apps_debug.lib 
pcl_common_debug.lib 
pcl_features_debug.lib 
pcl_filters_debug.lib 
pcl_io_ply_debug.lib 
pcl_io_debug.lib 
pcl_kdtree_debug.lib 
pcl_keypoints_debug.lib 
pcl_ml_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_simulation_debug.lib 
pcl_stereo_debug.lib 
pcl_surface_debug.lib 
pcl_tracking_debug.lib 
pcl_visualization_debug.lib 
libboost_atomic-vc120-mt-gd-1_59.lib 
libboost_chrono-vc120-mt-gd-1_59.lib 
libboost_container-vc120-mt-gd-1_59.lib 
libboost_context-vc120-mt-gd-1_59.lib 
libboost_coroutine-vc120-mt-gd-1_59.lib 
libboost_date_time-vc120-mt-gd-1_59.lib 
libboost_exception-vc120-mt-gd-1_59.lib 
libboost_filesystem-vc120-mt-gd-1_59.lib 
libboost_graph-vc120-mt-gd-1_59.lib 
libboost_iostreams-vc120-mt-gd-1_59.lib 
libboost_locale-vc120-mt-gd-1_59.lib 
libboost_log-vc120-mt-gd-1_59.lib 
libboost_log_setup-vc120-mt-gd-1_59.lib 
libboost_math_c99-vc120-mt-gd-1_59.lib 
libboost_math_c99f-vc120-mt-gd-1_59.lib 
libboost_math_c99l-vc120-mt-gd-1_59.lib 
libboost_math_tr1-vc120-mt-gd-1_59.lib 
libboost_math_tr1f-vc120-mt-gd-1_59.lib 
libboost_math_tr1l-vc120-mt-gd-1_59.lib 
libboost_mpi-vc120-mt-gd-1_59.lib 
libboost_prg_exec_monitor-vc120-mt-gd-1_59.lib 
libboost_program_options-vc120-mt-gd-1_59.lib 
libboost_random-vc120-mt-gd-1_59.lib 
libboost_regex-vc120-mt-gd-1_59.lib 
libboost_serialization-vc120-mt-gd-1_59.lib 
libboost_signals-vc120-mt-gd-1_59.lib 
libboost_system-vc120-mt-gd-1_59.lib 
libboost_test_exec_monitor-vc120-mt-gd-1_59.lib 
libboost_thread-vc120-mt-gd-1_59.lib 
libboost_timer-vc120-mt-gd-1_59.lib 
libboost_unit_test_framework-vc120-mt-gd-1_59.lib 
libboost_wave-vc120-mt-gd-1_59.lib 
libboost_wserialization-vc120-mt-gd-1_59.lib 
flann-gd.lib 
flann_cpp_s-gd.lib 
flann_s-gd.lib 
qhull-gd.lib 
qhullcpp-gd.lib 
qhullstatic-gd.lib 
qhullstatic_r-gd.lib 
qhull_p-gd.lib 
qhull_r-gd.lib 
vtkalglib-7.0-gd.lib 
vtkChartsCore-7.0-gd.lib 
vtkCommonColor-7.0-gd.lib 
vtkCommonComputationalGeometry-7.0-gd.lib 
vtkCommonCore-7.0-gd.lib 
vtkCommonDataModel-7.0-gd.lib 
vtkCommonExecutionModel-7.0-gd.lib 
vtkCommonMath-7.0-gd.lib 
vtkCommonMisc-7.0-gd.lib 
vtkCommonSystem-7.0-gd.lib 
vtkCommonTransforms-7.0-gd.lib 
vtkDICOMParser-7.0-gd.lib 
vtkDomainsChemistry-7.0-gd.lib 
vtkDomainsChemistryOpenGL2-7.0-gd.lib 
vtkexoIIc-7.0-gd.lib 
vtkexpat-7.0-gd.lib 
vtkFiltersAMR-7.0-gd.lib 
vtkFiltersCore-7.0-gd.lib 
vtkFiltersExtraction-7.0-gd.lib 
vtkFiltersFlowPaths-7.0-gd.lib 
vtkFiltersGeneral-7.0-gd.lib 
vtkFiltersGeneric-7.0-gd.lib 
vtkFiltersGeometry-7.0-gd.lib 
vtkFiltersHybrid-7.0-gd.lib 
vtkFiltersHyperTree-7.0-gd.lib 
vtkFiltersImaging-7.0-gd.lib 
vtkFiltersModeling-7.0-gd.lib 
vtkFiltersParallel-7.0-gd.lib 
vtkFiltersParallelImaging-7.0-gd.lib 
vtkFiltersProgrammable-7.0-gd.lib 
vtkFiltersSelection-7.0-gd.lib 
vtkFiltersSMP-7.0-gd.lib 
vtkFiltersSources-7.0-gd.lib 
vtkFiltersStatistics-7.0-gd.lib 
vtkFiltersTexture-7.0-gd.lib 
vtkFiltersVerdict-7.0-gd.lib 
vtkfreetype-7.0-gd.lib 
vtkGeovisCore-7.0-gd.lib 
vtkglew-7.0-gd.lib 
vtkGUISupportQt-7.0-gd.lib 
vtkGUISupportQtSQL-7.0-gd.lib 
vtkhdf5-7.0-gd.lib 
vtkhdf5_hl-7.0-gd.lib 
vtkImagingColor-7.0-gd.lib 
vtkImagingCore-7.0-gd.lib 
vtkImagingFourier-7.0-gd.lib 
vtkImagingGeneral-7.0-gd.lib 
vtkImagingHybrid-7.0-gd.lib 
vtkImagingMath-7.0-gd.lib 
vtkImagingMorphological-7.0-gd.lib 
vtkImagingSources-7.0-gd.lib 
vtkImagingStatistics-7.0-gd.lib 
vtkImagingStencil-7.0-gd.lib 
vtkInfovisCore-7.0-gd.lib 
vtkInfovisLayout-7.0-gd.lib 
vtkInteractionImage-7.0-gd.lib 
vtkInteractionStyle-7.0-gd.lib 
vtkInteractionWidgets-7.0-gd.lib 
vtkIOAMR-7.0-gd.lib 
vtkIOCore-7.0-gd.lib 
vtkIOEnSight-7.0-gd.lib 
vtkIOExodus-7.0-gd.lib 
vtkIOExport-7.0-gd.lib 
vtkIOGeometry-7.0-gd.lib 
vtkIOImage-7.0-gd.lib 
vtkIOImport-7.0-gd.lib 
vtkIOInfovis-7.0-gd.lib 
vtkIOLegacy-7.0-gd.lib 
vtkIOLSDyna-7.0-gd.lib 
vtkIOMINC-7.0-gd.lib 
vtkIOMovie-7.0-gd.lib 
vtkIONetCDF-7.0-gd.lib 
vtkIOParallel-7.0-gd.lib 
vtkIOParallelXML-7.0-gd.lib 
vtkIOPLY-7.0-gd.lib 
vtkIOSQL-7.0-gd.lib 
vtkIOVideo-7.0-gd.lib 
vtkIOXML-7.0-gd.lib 
vtkIOXMLParser-7.0-gd.lib 
vtkjpeg-7.0-gd.lib 
vtkjsoncpp-7.0-gd.lib 
vtklibxml2-7.0-gd.lib 
vtkmetaio-7.0-gd.lib 
vtkNetCDF-7.0-gd.lib 
vtkNetCDF_cxx-7.0-gd.lib 
vtkoggtheora-7.0-gd.lib 
vtkParallelCore-7.0-gd.lib 
vtkpng-7.0-gd.lib 
vtkproj4-7.0-gd.lib 
vtkRenderingAnnotation-7.0-gd.lib 
vtkRenderingContext2D-7.0-gd.lib 
vtkRenderingContextOpenGL2-7.0-gd.lib 
vtkRenderingCore-7.0-gd.lib 
vtkRenderingFreeType-7.0-gd.lib 
vtkRenderingImage-7.0-gd.lib 
vtkRenderingLabel-7.0-gd.lib 
vtkRenderingLOD-7.0-gd.lib 
vtkRenderingOpenGL2-7.0-gd.lib 
vtkRenderingQt-7.0-gd.lib 
vtkRenderingVolume-7.0-gd.lib 
vtkRenderingVolumeOpenGL2-7.0-gd.lib 
vtksqlite-7.0-gd.lib 
vtksys-7.0-gd.lib 
vtktiff-7.0-gd.lib 
vtkverdict-7.0-gd.lib 
vtkViewsContext2D-7.0-gd.lib 
vtkViewsCore-7.0-gd.lib 
vtkViewsInfovis-7.0-gd.lib 
vtkViewsQt-7.0-gd.lib
vtkzlib-7.0-gd.lib

Release模式:

pcl_apps_release.lib 
pcl_common_release.lib 
pcl_features_release.lib 
pcl_filters_release.lib 
pcl_io_ply_release.lib 
pcl_io_release.lib 
pcl_kdtree_release.lib 
pcl_keypoints_release.lib 
pcl_ml_release.lib 
pcl_octree_release.lib 
pcl_outofcore_release.lib 
pcl_people_release.lib 
pcl_recognition_release.lib 
pcl_registration_release.lib 
pcl_sample_consensus_release.lib 
pcl_search_release.lib 
pcl_segmentation_release.lib 
pcl_simulation_release.lib 
pcl_stereo_release.lib 
pcl_surface_release.lib 
pcl_tracking_release.lib 
pcl_visualization_release.lib 
libboost_atomic-vc120-mt-1_59.lib 
libboost_chrono-vc120-mt-1_59.lib 
libboost_container-vc120-mt-1_59.lib 
libboost_context-vc120-mt-1_59.lib 
libboost_coroutine-vc120-mt-1_59.lib 
libboost_date_time-vc120-mt-1_59.lib 
libboost_exception-vc120-mt-1_59.lib 
libboost_filesystem-vc120-mt-1_59.lib 
libboost_graph-vc120-mt-1_59.lib 
libboost_iostreams-vc120-mt-1_59.lib 
libboost_locale-vc120-mt-1_59.lib 
libboost_log-vc120-mt-1_59.lib 
libboost_log_setup-vc120-mt-1_59.lib 
libboost_math_c99-vc120-mt-1_59.lib 
libboost_math_c99f-vc120-mt-1_59.lib 
libboost_math_c99l-vc120-mt-1_59.lib 
libboost_math_tr1-vc120-mt-1_59.lib 
libboost_math_tr1f-vc120-mt-1_59.lib 
libboost_math_tr1l-vc120-mt-1_59.lib 
libboost_mpi-vc120-mt-1_59.lib 
libboost_prg_exec_monitor-vc120-mt-1_59.lib 
libboost_program_options-vc120-mt-1_59.lib 
libboost_random-vc120-mt-1_59.lib 
libboost_regex-vc120-mt-1_59.lib 
libboost_serialization-vc120-mt-1_59.lib 
libboost_signals-vc120-mt-1_59.lib 
libboost_system-vc120-mt-1_59.lib 
libboost_test_exec_monitor-vc120-mt-1_59.lib 
libboost_thread-vc120-mt-1_59.lib 
libboost_timer-vc120-mt-1_59.lib 
libboost_unit_test_framework-vc120-mt-1_59.lib 
libboost_wave-vc120-mt-1_59.lib 
libboost_wserialization-vc120-mt-1_59.lib 
flann.lib 
flann_cpp_s.lib 
flann_s.lib 
qhull.lib 
qhullcpp.lib 
qhullstatic.lib 
qhullstatic_r.lib 
qhull_p.lib 
qhull_r.lib 
vtkalglib-7.0.lib 
vtkChartsCore-7.0.lib 
vtkCommonColor-7.0.lib 
vtkCommonComputationalGeometry-7.0.lib 
vtkCommonCore-7.0.lib 
vtkCommonDataModel-7.0.lib 
vtkCommonExecutionModel-7.0.lib 
vtkCommonMath-7.0.lib 
vtkCommonMisc-7.0.lib 
vtkCommonSystem-7.0.lib 
vtkCommonTransforms-7.0.lib 
vtkDICOMParser-7.0.lib 
vtkDomainsChemistry-7.0.lib 
vtkDomainsChemistryOpenGL2-7.0.lib 
vtkexoIIc-7.0.lib 
vtkexpat-7.0.lib 
vtkFiltersAMR-7.0.lib 
vtkFiltersCore-7.0.lib 
vtkFiltersExtraction-7.0.lib 
vtkFiltersFlowPaths-7.0.lib 
vtkFiltersGeneral-7.0.lib 
vtkFiltersGeneric-7.0.lib 
vtkFiltersGeometry-7.0.lib 
vtkFiltersHybrid-7.0.lib 
vtkFiltersHyperTree-7.0.lib 
vtkFiltersImaging-7.0.lib 
vtkFiltersModeling-7.0.lib 
vtkFiltersParallel-7.0.lib 
vtkFiltersParallelImaging-7.0.lib 
vtkFiltersProgrammable-7.0.lib 
vtkFiltersSelection-7.0.lib 
vtkFiltersSMP-7.0.lib 
vtkFiltersSources-7.0.lib 
vtkFiltersStatistics-7.0.lib 
vtkFiltersTexture-7.0.lib 
vtkFiltersVerdict-7.0.lib 
vtkfreetype-7.0.lib 
vtkGeovisCore-7.0.lib 
vtkglew-7.0.lib 
vtkGUISupportQt-7.0.lib 
vtkGUISupportQtSQL-7.0.lib 
vtkhdf5-7.0.lib 
vtkhdf5_hl-7.0.lib 
vtkImagingColor-7.0.lib 
vtkImagingCore-7.0.lib 
vtkImagingFourier-7.0.lib 
vtkImagingGeneral-7.0.lib 
vtkImagingHybrid-7.0.lib 
vtkImagingMath-7.0.lib 
vtkImagingMorphological-7.0.lib 
vtkImagingSources-7.0.lib 
vtkImagingStatistics-7.0.lib 
vtkImagingStencil-7.0.lib 
vtkInfovisCore-7.0.lib 
vtkInfovisLayout-7.0.lib 
vtkInteractionImage-7.0.lib 
vtkInteractionStyle-7.0.lib 
vtkInteractionWidgets-7.0.lib 
vtkIOAMR-7.0.lib 
vtkIOCore-7.0.lib 
vtkIOEnSight-7.0.lib 
vtkIOExodus-7.0.lib 
vtkIOExport-7.0.lib 
vtkIOGeometry-7.0.lib 
vtkIOImage-7.0.lib 
vtkIOImport-7.0.lib 
vtkIOInfovis-7.0.lib 
vtkIOLegacy-7.0.lib 
vtkIOLSDyna-7.0.lib 
vtkIOMINC-7.0.lib 
vtkIOMovie-7.0.lib 
vtkIONetCDF-7.0.lib 
vtkIOParallel-7.0.lib 
vtkIOParallelXML-7.0.lib 
vtkIOPLY-7.0.lib 
vtkIOSQL-7.0.lib 
vtkIOVideo-7.0.lib 
vtkIOXML-7.0.lib 
vtkIOXMLParser-7.0.lib 
vtkjpeg-7.0.lib 
vtkjsoncpp-7.0.lib 
vtklibxml2-7.0.lib 
vtkmetaio-7.0.lib 
vtkNetCDF-7.0.lib 
vtkNetCDF_cxx-7.0.lib 
vtkoggtheora-7.0.lib 
vtkParallelCore-7.0.lib 
vtkpng-7.0.lib 
vtkproj4-7.0.lib 
vtkRenderingAnnotation-7.0.lib 
vtkRenderingContext2D-7.0.lib 
vtkRenderingContextOpenGL2-7.0.lib 
vtkRenderingCore-7.0.lib 
vtkRenderingFreeType-7.0.lib 
vtkRenderingImage-7.0.lib 
vtkRenderingLabel-7.0.lib 
vtkRenderingLOD-7.0.lib 
vtkRenderingOpenGL2-7.0.lib 
vtkRenderingQt-7.0.lib 
vtkRenderingVolume-7.0.lib 
vtkRenderingVolumeOpenGL2-7.0.lib 
vtksqlite-7.0.lib 
vtksys-7.0.lib 
vtktiff-7.0.lib 
vtkverdict-7.0.lib 
vtkViewsContext2D-7.0.lib 
vtkViewsCore-7.0.lib 
vtkViewsInfovis-7.0.lib 
vtkViewsQt-7.0.lib
vtkzlib-7.0.lib

至此已完成PCL的所有配置,但依旧会遇到一些问题:

错误提示一:


解决方法:在预处理器中添加_SCL_SECURE_NO_WARNINGS(_CRT_SECURE_NO_WARNINGS的解决方法类似)

Win10+VS2013+PCL1.8 环境配置_第11张图片

错误提示二:

解决方案:将系统中的子系统设置为未设置

Win10+VS2013+PCL1.8 环境配置_第12张图片

错误提示三:

我还遇到过提示电脑缺少OpenNI2.dll

解决方法:在调试中设置环境的变量值PATH=$(PCL_ROOT)\bin;$(PCL_ROOT)\3rdParty\FLANN\bin;$(PCL_ROOT)\3rdParty\VTK\bin;$(PCL_ROOT)\Qhull\bin;$(PCL_ROOT)\3rdParty\OpenNI2\Tools;$(PATH)

Win10+VS2013+PCL1.8 环境配置_第13张图片









你可能感兴趣的:(点云重建)