PCL1.8.0+win732位+vs2013配置

下载:

把你需要安装的PCL版本及属性表都下载下来。然后解压。
百度网盘:http://pan.baidu.com/s/1ge7vUCj

安装

1.在安装PCL一键安装包时,勾选上Add PCL to system PATH for all users。安装过程中,会弹出OpenNI的安装程序,更改OpenNI的安装路径为你安装的PCL路径下的3rdParty文件夹下的OpenNI2文件夹中。

2.拷贝与你安装PCL版本对应的PDB压缩包解压后的PDB文件,到你PCL安装路径下的bin文件夹,就是里面有pcl开头的dll的那个文件夹。
注意:安装完成后重启下电脑。

安装之后,得到下图

PCL1.8.0+win732位+vs2013配置_第1张图片


然后添加环境变量:

注意全部添加,包括第三方库:

PCL1.8.0+win732位+vs2013配置_第2张图片


2. VS2013中配置PCL

第一种方法:

新建工程,在

VC++目录,添加包含目录 
PCL1.8.0+win732位+vs2013配置_第3张图片
VC++目录,添加库目录 
PCL1.8.0+win732位+vs2013配置_第4张图片
连接器,输入,附加依赖项

直接拷贝我的代码即可:

[html]  view plain  copy
 
  1. pcl_common_debug.lib  
  2. pcl_features_debug.lib  
  3. pcl_filters_debug.lib  
  4. pcl_io_debug.lib  
  5. pcl_io_ply_debug.lib  
  6. pcl_kdtree_debug.lib  
  7. pcl_keypoints_debug.lib  
  8. pcl_ml_debug.lib  
  9. pcl_octree_debug.lib  
  10. pcl_outofcore_debug.lib  
  11. pcl_people_debug.lib  
  12. pcl_recognition_debug.lib  
  13. pcl_registration_debug.lib  
  14. pcl_sample_consensus_debug.lib  
  15. pcl_search_debug.lib  
  16. pcl_segmentation_debug.lib   
  17. pcl_stereo_debug.lib  
  18. pcl_surface_debug.lib  
  19. pcl_tracking_debug.lib  
  20. pcl_visualization_debug.lib  
  21. libboost_atomic-vc120-mt-gd-1_59.lib  
  22. libboost_chrono-vc120-mt-gd-1_59.lib  
  23. libboost_container-vc120-mt-gd-1_59.lib  
  24. libboost_context-vc120-mt-gd-1_59.lib  
  25. libboost_coroutine-vc120-mt-gd-1_59.lib  
  26. libboost_date_time-vc120-mt-gd-1_59.lib  
  27. libboost_exception-vc120-mt-gd-1_59.lib  
  28. libboost_filesystem-vc120-mt-gd-1_59.lib  
  29. libboost_graph-vc120-mt-gd-1_59.lib  
  30. libboost_iostreams-vc120-mt-gd-1_59.lib  
  31. libboost_locale-vc120-mt-gd-1_59.lib  
  32. libboost_log-vc120-mt-gd-1_59.lib  
  33. libboost_log_setup-vc120-mt-gd-1_59.lib  
  34. libboost_math_c99-vc120-mt-gd-1_59.lib  
  35. libboost_math_c99f-vc120-mt-gd-1_59.lib  
  36. libboost_math_c99l-vc120-mt-gd-1_59.lib  
  37. libboost_math_tr1-vc120-mt-gd-1_59.lib  
  38. libboost_math_tr1f-vc120-mt-gd-1_59.lib  
  39. libboost_math_tr1l-vc120-mt-gd-1_59.lib  
  40. libboost_mpi-vc120-mt-gd-1_59.lib  
  41. libboost_prg_exec_monitor-vc120-mt-gd-1_59.lib  
  42. libboost_program_options-vc120-mt-gd-1_59.lib  
  43. libboost_random-vc120-mt-gd-1_59.lib  
  44. libboost_regex-vc120-mt-gd-1_59.lib  
  45. libboost_serialization-vc120-mt-gd-1_59.lib  
  46. libboost_signals-vc120-mt-gd-1_59.lib  
  47. libboost_system-vc120-mt-gd-1_59.lib  
  48. libboost_test_exec_monitor-vc120-mt-gd-1_59.lib  
  49. libboost_thread-vc120-mt-gd-1_59.lib  
  50. libboost_timer-vc120-mt-gd-1_59.lib  
  51. libboost_unit_test_framework-vc120-mt-gd-1_59.lib  
  52. libboost_wave-vc120-mt-gd-1_59.lib  
  53. libboost_wserialization-vc120-mt-gd-1_59.lib  
  54. flann_cpp_s-gd.lib  
  55. flann_s-gd.lib  
  56. flann-gd.lib  
  57. OpenNI2.lib  
  58. qhullstatic_r-gd.lib  
  59. qhull_p-gd.lib  
  60. qhull_r-gd.lib  
  61. qhullcpp-gd.lib  
  62. qhull-gd.lib  
  63. qhullstatic-gd.lib  
  64.  vtkalglib-7.0-gd.lib  
  65.  vtkChartsCore-7.0-gd.lib  
  66.  vtkCommonColor-7.0-gd.lib  
  67.  vtkCommonComputationalGeometry-7.0-gd.lib  
  68. vtkCommonCore-7.0-gd.lib  
  69. vtkCommonDataModel-7.0-gd.lib  
  70.  vtkCommonExecutionModel-7.0-gd.lib  
  71.  vtkCommonMath-7.0-gd.lib  
  72.  vtkCommonMisc-7.0-gd.lib  
  73.  vtkCommonSystem-7.0-gd.lib  
  74.  vtkCommonTransforms-7.0-gd.lib  
  75.  vtkDICOMParser-7.0-gd.lib  
  76.  vtkDomainsChemistry-7.0-gd.lib  
  77.  vtkDomainsChemistryOpenGL2-7.0-gd.lib  
  78.  vtkexoIIc-7.0-gd.lib  
  79.  vtkexpat-7.0-gd.lib  
  80.  vtkFiltersAMR-7.0-gd.lib  
  81. vtkFiltersCore-7.0-gd.lib  
  82.  vtkFiltersExtraction-7.0-gd.lib  
  83.  vtkFiltersFlowPaths-7.0-gd.lib  
  84. vtkFiltersGeneral-7.0-gd.lib  
  85.  vtkFiltersGeneric-7.0-gd.lib  
  86.  vtkFiltersGeometry-7.0-gd.lib  
  87.  vtkFiltersHybrid-7.0-gd.lib  
  88.  vtkFiltersHyperTree-7.0-gd.lib  
  89.  vtkFiltersImaging-7.0-gd.lib  
  90.  vtkFiltersModeling-7.0-gd.lib  
  91.  vtkFiltersParallel-7.0-gd.lib  
  92.  vtkFiltersParallelImaging-7.0-gd.lib  
  93.  vtkFiltersProgrammable-7.0-gd.lib  
  94.  vtkFiltersSelection-7.0-gd.lib  
  95.  vtkFiltersSMP-7.0-gd.lib  
  96.  vtkFiltersSources-7.0-gd.lib  
  97.  vtkFiltersStatistics-7.0-gd.lib  
  98.  vtkFiltersTexture-7.0-gd.lib  
  99.  vtkFiltersVerdict-7.0-gd.lib  
  100.  vtkfreetype-7.0-gd.lib  
  101.  vtkGeovisCore-7.0-gd.lib  
  102.  vtkglew-7.0-gd.lib  
  103.  vtkGUISupportQt-7.0-gd.lib  
  104.  vtkGUISupportQtSQL-7.0-gd.lib  
  105.  vtkhdf5-7.0-gd.lib  
  106.  vtkhdf5_hl-7.0-gd.lib  
  107.  vtkImagingColor-7.0-gd.lib  
  108.  vtkImagingCore-7.0-gd.lib  
  109.  vtkImagingFourier-7.0-gd.lib  
  110.  vtkImagingGeneral-7.0-gd.lib  
  111.  vtkImagingHybrid-7.0-gd.lib  
  112.  vtkImagingMath-7.0-gd.lib  
  113.  vtkImagingMorphological-7.0-gd.lib  
  114.  vtkImagingSources-7.0-gd.lib  
  115.  vtkImagingStatistics-7.0-gd.lib  
  116.  vtkImagingStencil-7.0-gd.lib  
  117.  vtkInfovisCore-7.0-gd.lib  
  118.  vtkInfovisLayout-7.0-gd.lib  
  119.  vtkInteractionImage-7.0-gd.lib  
  120.  vtkInteractionStyle-7.0-gd.lib  
  121. vtkInteractionWidgets-7.0-gd.lib  
  122.  vtkIOAMR-7.0-gd.lib  
  123.  vtkIOCore-7.0-gd.lib  
  124.  vtkIOEnSight-7.0-gd.lib  
  125.  vtkIOExodus-7.0-gd.lib  
  126.  vtkIOExport-7.0-gd.lib  
  127.  vtkIOGeometry-7.0-gd.lib  
  128.  vtkIOImage-7.0-gd.lib  
  129.  vtkIOImport-7.0-gd.lib  
  130.  vtkIOInfovis-7.0-gd.lib  
  131.  vtkIOLegacy-7.0-gd.lib  
  132.  vtkIOLSDyna-7.0-gd.lib  
  133.  vtkIOMINC-7.0-gd.lib  
  134.  vtkIOMovie-7.0-gd.lib  
  135.  vtkIONetCDF-7.0-gd.lib  
  136.  vtkIOParallel-7.0-gd.lib  
  137. vtkIOParallelXML-7.0-gd.lib  
  138. vtkIOPLY-7.0-gd.lib  
  139. vtkIOSQL-7.0-gd.lib  
  140. vtkIOVideo-7.0-gd.lib  
  141. vtkIOXML-7.0-gd.lib  
  142. vtkIOXMLParser-7.0-gd.lib  
  143. vtkjpeg-7.0-gd.lib  
  144. vtkjsoncpp-7.0-gd.lib  
  145. vtklibxml2-7.0-gd.lib  
  146. vtkmetaio-7.0-gd.lib  
  147. vtkNetCDF-7.0-gd.lib  
  148. vtkNetCDF_cxx-7.0-gd.lib  
  149. vtkoggtheora-7.0-gd.lib  
  150. vtkParallelCore-7.0-gd.lib  
  151. vtkpng-7.0-gd.lib  
  152.  vtkproj4-7.0-gd.lib  
  153.  vtkRenderingAnnotation-7.0-gd.lib  
  154.  vtkRenderingContext2D-7.0-gd.lib  
  155.  vtkRenderingContextOpenGL2-7.0-gd.lib  
  156. vtkRenderingCore-7.0-gd.lib  
  157.  vtkRenderingFreeType-7.0-gd.lib  
  158.  vtkRenderingImage-7.0-gd.lib  
  159.  vtkRenderingLabel-7.0-gd.lib  
  160.  vtkRenderingLOD-7.0-gd.lib  
  161.  vtkRenderingOpenGL2-7.0-gd.lib  
  162.  vtkRenderingQt-7.0-gd.lib  
  163.  vtkRenderingVolume-7.0-gd.lib  
  164.  vtkRenderingVolumeOpenGL2-7.0-gd.lib  
  165. vtksqlite-7.0-gd.lib  
  166.  vtksys-7.0-gd.lib  
  167.  vtktiff-7.0-gd.lib  
  168.  vtkverdict-7.0-gd.lib  
  169.  vtkViewsContext2D-7.0-gd.lib  
  170.  vtkViewsCore-7.0-gd.lib  
  171.  vtkViewsInfovis-7.0-gd.lib  
  172.  vtkViewsQt-7.0-gd.lib  
  173.  vtkzlib-7.0-gd.lib  

第二种:

1.打开VS新建一个控制台程序。
如果安装的是64位PCL,界面有个运行项,后面有个debug,在后面有个叫解决方案平台的下拉框,其值默认为win32,需要把win32,改成x64,方法是,点win32的箭头,点配置管理器,点活动解决方案平台,点新建,把键入或选择新平台,这一项,切换为x64,然后确定,此时,原来的win32已变为x64。

2.在解决方案管理器里找到你新建的项目,右键点属性,弹出属性页窗口。
点击配置属性下的调试,右边有个环境项,把值设置为PATH=$(PCL_ROOT)\bin;$(PCL_ROOT)\3rdParty\FLANN\bin;$(PCL_ROOT)\3rdParty\VTK\bin;$(PCL_ROOT)\Qhull\bin;$(PCL_ROOT)\3rdParty\OpenNI2\Tools;$(PATH)
点击配置属性下的C\C++,点击它的子项预处理器,右边有个预处理器定义,添加上_SCL_SECURE_NO_WARNINGS和_CRT_SECURE_NO_WARNINGS。

3.在属性管理器里点击项目,展开子项。
如果安装的是32位,点击选中开头为Debug的子项里右键,点击添加现有属性表,然后找到你下载的文件夹里的PCLDebug.props,添加上。点击选中开头为Release的子项里右键,点击添加现有属性表,然后找到你下载的文件夹里的PCLRelease.props,添加上。
如果安装的是64位,点击选中开头为Debug的子项里右键,点击添加现有属性表,然后找到你下载的文件夹里的PCLDebug.props,添加上。点击选中开头为Release的子项里右键,点击添加现有属性表,然后找到你下载的文件夹里的PCLRelease.props,添加上。
注意在这里,64位的会有2个开头为Debug的子项,都要添加上PCLDebug.props,并且2个开头为Release的子项,也要添加上PCLRelease.props。

配置完成!!!



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