WIN10+PCL1.8.1+VS2017環境配置
WIN10+PCL1.8.1+VS2017環境配置
1下載PCL
PCL下載地址:https://github.com/PointCloudLibrary/pcl/releases
或百度網盤連結:https://pan.baidu.com/s/1xpdHDiKH722VrUlJMMJaKg 提取碼:yhuq
網頁下載如下圖中的兩個檔案
測試檔案下載連結:https://pan.baidu.com/s/1SbZ1J2PfSmCiP0J4C0LDNw 提取碼:15y0
2安裝PCL
(1) 點開PCL-1.8.1-AllInOne-msvc2017-win64.exe安裝一鍵安裝包,然後選擇自己的安裝目錄,選擇 Add PCL to the system PATH for all user
(2)在安裝pcl的中途會跳出來openNI2的安裝,最好把它安裝在 D:\Software\PCL181\PCL 1.8.1\3rdParty\OpenNI2(你自己對應的安裝路徑)
(3)把下載的pbd壓縮包解壓,裡面的pbd檔案複製在D:\Software\PCL181\PCL 1.8.1\bin(你自己對應的安裝路徑)
3環境變數配置
我的電腦-右鍵屬性-高階選項設定-環境變數-下面的系統變數中的PATH中新增以下路徑(你自己對應的安裝路徑):
D:\Software\PCL181\PCL 1.8.1\3rdParty\OpenNI2\Tools;
D:\Software\PCL181\PCL 1.8.1\3rdParty\OpenNI2\Tools;
D:\Software\PCL181\PCL 1.8.1\3rdParty\OpenNI2\Tools;
D:\Software\PCL181\PCL 1.8.1\3rdParty\OpenNI2\Tools;
D:\Software\PCL181\PCL 1.8.1\3rdParty\OpenNI2\Tools;
環境變數新增完後重啟電腦。
4vs2017操作步驟
(1)開啟vs,新建一個空專案,注意在這裡選擇Debug-x64
(2)在解決方案資源管理器中,右鍵選擇屬性,在最上面的配置中選擇Debug-x64 ,點選專案>>屬性>>VC++目錄,包含目錄和庫目錄裡分別新增以下對應項。
包含目錄新增:
D:\Software\PCL181\PCL 1.8.1\3rdParty\Boost\include\boost-1_64
D:\Software\PCL181\PCL 1.8.1\3rdParty\Eigen\eigen3
D:\Software\PCL181\PCL 1.8.1\3rdParty\FLANN\include
D:\Software\PCL181\PCL 1.8.1\3rdParty\Qhull\include
D:\Software\PCL181\PCL 1.8.1\3rdParty\VTK\include\vtk-8.0
D:\Software\PCL181\PCL 1.8.1\include\pcl-1.8
D:\Software\PCL181\PCL 1.8.1\3rdParty\OpenNI2\Include
庫目錄新增:
D:\Software\PCL181\PCL 1.8.1\lib
D:\Software\PCL181\PCL 1.8.1\3rdParty\Boost\lib
D:\Software\PCL181\PCL 1.8.1\3rdParty\FLANN\lib
D:\Software\PCL181\PCL 1.8.1\3rdParty\Qhull\lib
D:\Software\PCL181\PCL 1.8.1\3rdParty\VTK\lib
D:\Software\PCL181\PCL 1.8.1\3rdParty\OpenNI2\Lib
(3)在連結器-輸入-附加依賴項中新增以下lib檔案
新增依賴項:(最好自己提取lib檔案,後面有介紹方法)
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_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_stereo_debug.lib
pcl_surface_debug.lib
pcl_tracking_debug.lib
pcl_visualization_debug.lib
libboost_atomic-vc141-mt-gd-1_64.lib
libboost_bzip2-vc141-mt-gd-1_64.lib
libboost_chrono-vc141-mt-gd-1_64.lib
libboost_container-vc141-mt-gd-1_64.lib
libboost_context-vc141-mt-gd-1_64.lib
libboost_coroutine-vc141-mt-gd-1_64.lib
libboost_date_time-vc141-mt-gd-1_64.lib
libboost_exception-vc141-mt-gd-1_64.lib
libboost_fiber-vc141-mt-gd-1_64.lib
libboost_filesystem-vc141-mt-gd-1_64.lib
libboost_graph-vc141-mt-gd-1_64.lib
libboost_graph_parallel-vc141-mt-gd-1_64.lib
libboost_iostreams-vc141-mt-gd-1_64.lib
libboost_locale-vc141-mt-gd-1_64.lib
libboost_log-vc141-mt-gd-1_64.lib
libboost_log_setup-vc141-mt-gd-1_64.lib
libboost_math_c99-vc141-mt-gd-1_64.lib
libboost_math_c99f-vc141-mt-gd-1_64.lib
libboost_math_c99l-vc141-mt-gd-1_64.lib
libboost_math_tr1-vc141-mt-gd-1_64.lib
libboost_math_tr1f-vc141-mt-gd-1_64.lib
libboost_math_tr1l-vc141-mt-gd-1_64.lib
libboost_mpi-vc141-mt-gd-1_64.lib
libboost_numpy-vc141-mt-gd-1_64.lib
libboost_numpy3-vc141-mt-gd-1_64.lib
libboost_prg_exec_monitor-vc141-mt-gd-1_64.lib
libboost_program_options-vc141-mt-gd-1_64.lib
libboost_python-vc141-mt-gd-1_64.lib
libboost_python3-vc141-mt-gd-1_64.lib
libboost_random-vc141-mt-gd-1_64.lib
libboost_regex-vc141-mt-gd-1_64.lib
libboost_serialization-vc141-mt-gd-1_64.lib
libboost_signals-vc141-mt-gd-1_64.lib
libboost_system-vc141-mt-gd-1_64.lib
libboost_test_exec_monitor-vc141-mt-gd-1_64.lib
libboost_thread-vc141-mt-gd-1_64.lib
libboost_timer-vc141-mt-gd-1_64.lib
libboost_type_erasure-vc141-mt-gd-1_64.lib
libboost_unit_test_framework-vc141-mt-gd-1_64.lib
libboost_wave-vc141-mt-gd-1_64.lib
libboost_wserialization-vc141-mt-gd-1_64.lib
libboost_zlib-vc141-mt-gd-1_64.lib
flann-gd.lib
flann_cpp-gd.lib
flann_cpp_s-gd.lib
flann_s-gd.lib
qhullcpp_d.lib
qhullstatic_d.lib
qhullstatic_r_d.lib
qhull_d.lib
qhull_p_d.lib
qhull_r_d.lib
vtkalglib-8.0-gd.lib
vtkChartsCore-8.0-gd.lib
vtkCommonColor-8.0-gd.lib
vtkCommonComputationalGeometry-8.0-gd.lib
vtkCommonCore-8.0-gd.lib
vtkCommonDataModel-8.0-gd.lib
vtkCommonExecutionModel-8.0-gd.lib
vtkCommonMath-8.0-gd.lib
vtkCommonMisc-8.0-gd.lib
vtkCommonSystem-8.0-gd.lib
vtkCommonTransforms-8.0-gd.lib
vtkDICOMParser-8.0-gd.lib
vtkDomainsChemistry-8.0-gd.lib
vtkexoIIc-8.0-gd.lib
vtkexpat-8.0-gd.lib
vtkFiltersAMR-8.0-gd.lib
vtkFiltersCore-8.0-gd.lib
vtkFiltersExtraction-8.0-gd.lib
vtkFiltersFlowPaths-8.0-gd.lib
vtkFiltersGeneral-8.0-gd.lib
vtkFiltersGeneric-8.0-gd.lib
vtkFiltersGeometry-8.0-gd.lib
vtkFiltersHybrid-8.0-gd.lib
vtkFiltersHyperTree-8.0-gd.lib
vtkFiltersImaging-8.0-gd.lib
vtkFiltersModeling-8.0-gd.lib
vtkFiltersParallel-8.0-gd.lib
vtkFiltersParallelImaging-8.0-gd.lib
vtkFiltersPoints-8.0-gd.lib
vtkFiltersProgrammable-8.0-gd.lib
vtkFiltersSelection-8.0-gd.lib
vtkFiltersSMP-8.0-gd.lib
vtkFiltersSources-8.0-gd.lib
vtkFiltersStatistics-8.0-gd.lib
vtkFiltersTexture-8.0-gd.lib
vtkFiltersTopology-8.0-gd.lib
vtkFiltersVerdict-8.0-gd.lib
vtkfreetype-8.0-gd.lib
vtkGeovisCore-8.0-gd.lib
vtkgl2ps-8.0-gd.lib
vtkhdf5-8.0-gd.lib
vtkhdf5_hl-8.0-gd.lib
vtkImagingColor-8.0-gd.lib
vtkImagingCore-8.0-gd.lib
vtkImagingFourier-8.0-gd.lib
vtkImagingGeneral-8.0-gd.lib
vtkImagingHybrid-8.0-gd.lib
vtkImagingMath-8.0-gd.lib
vtkImagingMorphological-8.0-gd.lib
vtkImagingSources-8.0-gd.lib
vtkImagingStatistics-8.0-gd.lib
vtkImagingStencil-8.0-gd.lib
vtkInfovisCore-8.0-gd.lib
vtkInfovisLayout-8.0-gd.lib
vtkInteractionImage-8.0-gd.lib
vtkInteractionStyle-8.0-gd.lib
vtkInteractionWidgets-8.0-gd.lib
vtkIOAMR-8.0-gd.lib
vtkIOCore-8.0-gd.lib
vtkIOEnSight-8.0-gd.lib
vtkIOExodus-8.0-gd.lib
vtkIOExport-8.0-gd.lib
vtkIOExportOpenGL-8.0-gd.lib
vtkIOGeometry-8.0-gd.lib
vtkIOImage-8.0-gd.lib
vtkIOImport-8.0-gd.lib
vtkIOInfovis-8.0-gd.lib
vtkIOLegacy-8.0-gd.lib
vtkIOLSDyna-8.0-gd.lib
vtkIOMINC-8.0-gd.lib
vtkIOMovie-8.0-gd.lib
vtkIONetCDF-8.0-gd.lib
vtkIOParallel-8.0-gd.lib
vtkIOParallelXML-8.0-gd.lib
vtkIOPLY-8.0-gd.lib
vtkIOSQL-8.0-gd.lib
vtkIOTecplotTable-8.0-gd.lib
vtkIOVideo-8.0-gd.lib
vtkIOXML-8.0-gd.lib
vtkIOXMLParser-8.0-gd.lib
vtkjpeg-8.0-gd.lib
vtkjsoncpp-8.0-gd.lib
vtklibharu-8.0-gd.lib
vtklibxml2-8.0-gd.lib
vtklz4-8.0-gd.lib
vtkmetaio-8.0-gd.lib
vtkNetCDF-8.0-gd.lib
vtknetcdf_c+±gd.lib
vtkoggtheora-8.0-gd.lib
vtkParallelCore-8.0-gd.lib
vtkpng-8.0-gd.lib
vtkproj4-8.0-gd.lib
vtkRenderingAnnotation-8.0-gd.lib
vtkRenderingContext2D-8.0-gd.lib
vtkRenderingContextOpenGL-8.0-gd.lib
vtkRenderingCore-8.0-gd.lib
vtkRenderingFreeType-8.0-gd.lib
vtkRenderingGL2PS-8.0-gd.lib
vtkRenderingImage-8.0-gd.lib
vtkRenderingLabel-8.0-gd.lib
vtkRenderingLIC-8.0-gd.lib
vtkRenderingLOD-8.0-gd.lib
vtkRenderingOpenGL-8.0-gd.lib
vtkRenderingVolume-8.0-gd.lib
vtkRenderingVolumeOpenGL-8.0-gd.lib
vtksqlite-8.0-gd.lib
vtksys-8.0-gd.lib
vtktiff-8.0-gd.lib
vtkverdict-8.0-gd.lib
vtkViewsContext2D-8.0-gd.lib
vtkViewsCore-8.0-gd.lib
vtkViewsInfovis-8.0-gd.lib
vtkzlib-8.0-gd.lib
release版本:
這個我沒有記錄下來,提供一個提取資料夾中.lib檔名到文字中的方法。原文連結:https://blog.csdn.net/wokaowokaowokao12345/article/details/48881473
例如要獲取目錄中D:\CLibrary\PCL1.8.0\PCL1.8.0X86\3rdParty\VTK\lib下的所有靜態連結庫檔名並儲存至文字.txt,方法如下:
1、win+r
2、輸入:cmd回車
3、輸入:cd /d D:\CLibrary\PCL1.8.0\PCL1.8.0X86\3rdParty\VTK\lib 回車
4、輸入:dir /b *.lib >0.txt 回車 (開啟你第三部輸入資料夾下的0.txt檔案就能看到所有的lib檔名)
如下圖:
**注意:**這個方法得到的lib檔案包括debug需要的lib檔案和release需要的lib檔案,需要我們自己手動選擇整理,末尾是d、gd或debug的是debug需要的lib檔案。
5用測試檔案測試
將下載的cpp檔案和pcd檔案放在建立的專案資料夾下,開啟cpp檔案並執行,按照CAD的操作方法,縮小圖片,移動圖片就能看到兔子點雲圖。
6最後
如果配置不成功,首先最好檢視lib依賴項是否正確,最好是用上面方法自己提取lib檔案,再新增到依賴項中。如果還是有問題,就把問題複製到網上,一般都有解決方法。
相關文章
- app自動化測試環境配置:adb環境配置、monkey環境配置、appium環境配置大全APP
- 環境配置
- 配置開發環境、生成環境、測試環境開發環境
- Flutter環境配置Flutter
- php環境配置PHP
- vue – 環境配置Vue
- JAVA環境配置Java
- 一、環境配置
- 開發環境配置開發環境
- windows 配置JAVA環境WindowsJava
- Mac PHP 環境配置MacPHP
- CentOS 配置 PHP 環境CentOSPHP
- Windows配置java環境WindowsJava
- JAVA 環境配置 CentOSJavaCentOS
- vue 多環境配置Vue
- 配置python環境Python
- 配置聯網環境
- Linux環境配置Linux
- 安卓SDK環境配置安卓
- Java環境配置大全Java
- 配置環境變數變數
- conda環境配置
- IDEA配置環境Idea
- Xcode配置測試環境和線上環境XCode
- emacs開發環境配置(4)——rust開發環境Mac開發環境Rust
- Eclipse配置maven環境EclipseMaven
- react 配置開發環境React開發環境
- Maven環境下MyBatisGenerator 配置MavenMyBatis
- js開發環境配置JS開發環境
- Windows 下 Laravel 環境配置WindowsLaravel
- 新裝Ubuntu環境配置Ubuntu
- 配置JDK環境變數JDK變數
- Flume 配置環境變數變數
- Shell配置環境變數變數
- Java開發環境配置Java開發環境
- Git--02--環境配置Git
- Flask基礎環境配置Flask
- angular1環境配置Angular