PCL安装
1 下载
2点击安装
3 配置环境
双击 Path添加路径
3.2注意点
4VS2022 项目配置
4.1添加库目录
4.2添加依赖项(35条消息) Windows + VS2022超详细点云库(PCL)配置_pcl配置_爱钻研的小铭的博客-CSDN博客
或者(35条消息) PCL 1.13.0 + VS2022 安装配置教程_ZoeyBlogger的博客-CSDN博客
pcl_common.lib
pcl_commond.lib
pcl_features.lib
pcl_featuresd.lib
pcl_filters.lib
pcl_filtersd.lib
pcl_io.lib
pcl_iod.lib
pcl_io_ply.lib
pcl_io_plyd.lib
pcl_kdtree.lib
pcl_kdtreed.lib
pcl_keypoints.lib
pcl_keypointsd.lib
pcl_ml.lib
pcl_mld.lib
pcl_octree.lib
pcl_octreed.lib
pcl_outofcore.lib
pcl_outofcored.lib
pcl_people.lib
pcl_peopled.lib
pcl_recognition.lib
pcl_recognitiond.lib
pcl_registration.lib
pcl_registrationd.lib
pcl_sample_consensus.lib
pcl_sample_consensusd.lib
pcl_search.lib
pcl_searchd.lib
pcl_segmentation.lib
pcl_segmentationd.lib
pcl_stereo.lib
pcl_stereod.lib
pcl_surface.lib
pcl_surfaced.lib
pcl_tracking.lib
pcl_trackingd.lib
pcl_visualization.lib
pcl_visualizationd.lib
libboost_atomic-vc143-mt-gd-x64-1_80.lib
libboost_atomic-vc143-mt-x64-1_80.lib
libboost_bzip2-vc143-mt-gd-x64-1_80.lib
libboost_bzip2-vc143-mt-x64-1_80.lib
libboost_chrono-vc143-mt-gd-x64-1_80.lib
libboost_chrono-vc143-mt-x64-1_80.lib
libboost_container-vc143-mt-gd-x64-1_80.lib
libboost_container-vc143-mt-x64-1_80.lib
libboost_context-vc143-mt-gd-x64-1_80.lib
libboost_context-vc143-mt-x64-1_80.lib
libboost_contract-vc143-mt-gd-x64-1_80.lib
libboost_contract-vc143-mt-x64-1_80.lib
libboost_coroutine-vc143-mt-gd-x64-1_80.lib
libboost_coroutine-vc143-mt-x64-1_80.lib
libboost_date_time-vc143-mt-gd-x64-1_80.lib
libboost_date_time-vc143-mt-x64-1_80.lib
libboost_exception-vc143-mt-gd-x64-1_80.lib
libboost_exception-vc143-mt-x64-1_80.lib
libboost_fiber-vc143-mt-gd-x64-1_80.lib
libboost_fiber-vc143-mt-x64-1_80.lib
libboost_filesystem-vc143-mt-gd-x64-1_80.lib
libboost_filesystem-vc143-mt-x64-1_80.lib
libboost_graph-vc143-mt-gd-x64-1_80.lib
libboost_graph-vc143-mt-x64-1_80.lib
libboost_graph_parallel-vc143-mt-gd-x64-1_80.lib
libboost_graph_parallel-vc143-mt-x64-1_80.lib
libboost_iostreams-vc143-mt-gd-x64-1_80.lib
libboost_iostreams-vc143-mt-x64-1_80.lib
libboost_json-vc143-mt-gd-x64-1_80.lib
libboost_json-vc143-mt-x64-1_80.lib
libboost_locale-vc143-mt-gd-x64-1_80.lib
libboost_locale-vc143-mt-x64-1_80.lib
libboost_log-vc143-mt-gd-x64-1_80.lib
libboost_log-vc143-mt-x64-1_80.lib
libboost_log_setup-vc143-mt-gd-x64-1_80.lib
libboost_log_setup-vc143-mt-x64-1_80.lib
libboost_math_c99-vc143-mt-gd-x64-1_80.lib
libboost_math_c99-vc143-mt-x64-1_80.lib
libboost_math_c99f-vc143-mt-gd-x64-1_80.lib
libboost_math_c99f-vc143-mt-x64-1_80.lib
libboost_math_c99l-vc143-mt-gd-x64-1_80.lib
libboost_math_c99l-vc143-mt-x64-1_80.lib
libboost_math_tr1-vc143-mt-gd-x64-1_80.lib
libboost_math_tr1-vc143-mt-x64-1_80.lib
libboost_math_tr1f-vc143-mt-gd-x64-1_80.lib
libboost_math_tr1f-vc143-mt-x64-1_80.lib
libboost_math_tr1l-vc143-mt-gd-x64-1_80.lib
libboost_math_tr1l-vc143-mt-x64-1_80.lib
libboost_mpi-vc143-mt-gd-x64-1_80.lib
libboost_mpi-vc143-mt-x64-1_80.lib
libboost_nowide-vc143-mt-gd-x64-1_80.lib
libboost_nowide-vc143-mt-x64-1_80.lib
libboost_numpy310-vc143-mt-gd-x64-1_80.lib
libboost_numpy310-vc143-mt-x64-1_80.lib
libboost_prg_exec_monitor-vc143-mt-gd-x64-1_80.lib
libboost_prg_exec_monitor-vc143-mt-x64-1_80.lib
libboost_program_options-vc143-mt-gd-x64-1_80.lib
libboost_program_options-vc143-mt-x64-1_80.lib
libboost_python310-vc143-mt-gd-x64-1_80.lib
libboost_python310-vc143-mt-x64-1_80.lib
libboost_random-vc143-mt-gd-x64-1_80.lib
libboost_random-vc143-mt-x64-1_80.lib
libboost_regex-vc143-mt-gd-x64-1_80.lib
libboost_regex-vc143-mt-x64-1_80.lib
libboost_serialization-vc143-mt-gd-x64-1_80.lib
libboost_serialization-vc143-mt-x64-1_80.lib
libboost_stacktrace_noop-vc143-mt-gd-x64-1_80.lib
libboost_stacktrace_noop-vc143-mt-x64-1_80.lib
libboost_stacktrace_windbg-vc143-mt-gd-x64-1_80.lib
libboost_stacktrace_windbg-vc143-mt-x64-1_80.lib
libboost_stacktrace_windbg_cached-vc143-mt-gd-x64-1_80.lib
libboost_stacktrace_windbg_cached-vc143-mt-x64-1_80.lib
libboost_system-vc143-mt-gd-x64-1_80.lib
libboost_system-vc143-mt-x64-1_80.lib
libboost_test_exec_monitor-vc143-mt-gd-x64-1_80.lib
libboost_test_exec_monitor-vc143-mt-x64-1_80.lib
libboost_thread-vc143-mt-gd-x64-1_80.lib
libboost_thread-vc143-mt-x64-1_80.lib
libboost_timer-vc143-mt-gd-x64-1_80.lib
libboost_timer-vc143-mt-x64-1_80.lib
libboost_type_erasure-vc143-mt-gd-x64-1_80.lib
libboost_type_erasure-vc143-mt-x64-1_80.lib
libboost_unit_test_framework-vc143-mt-gd-x64-1_80.lib
libboost_unit_test_framework-vc143-mt-x64-1_80.lib
libboost_wave-vc143-mt-gd-x64-1_80.lib
libboost_wave-vc143-mt-x64-1_80.lib
libboost_wserialization-vc143-mt-gd-x64-1_80.lib
libboost_wserialization-vc143-mt-x64-1_80.lib
libboost_zlib-vc143-mt-gd-x64-1_80.lib
libboost_zlib-vc143-mt-x64-1_80.lib
flann-gd.lib
flann.lib
flann_cpp-gd.lib
flann_cpp.lib
flann_cpp_s-gd.lib
flann_cpp_s.lib
flann_s-gd.lib
flann_s.lib
OpenNI2.lib
qhullcpp.lib
qhullcpp_d.lib
qhullstatic.lib
qhullstatic_d.lib
qhullstatic_r.lib
qhullstatic_rd.lib
qhull_r.lib
qhull_rd.lib
vtkcgns-9.2-gd.lib
vtkcgns-9.2.lib
vtkChartsCore-9.2-gd.lib
vtkChartsCore-9.2.lib
vtkCommonColor-9.2-gd.lib
vtkCommonColor-9.2.lib
vtkCommonComputationalGeometry-9.2-gd.lib
vtkCommonComputationalGeometry-9.2.lib
vtkCommonCore-9.2-gd.lib
vtkCommonCore-9.2.lib
vtkCommonDataModel-9.2-gd.lib
vtkCommonDataModel-9.2.lib
vtkCommonExecutionModel-9.2-gd.lib
vtkCommonExecutionModel-9.2.lib
vtkCommonMath-9.2-gd.lib
vtkCommonMath-9.2.lib
vtkCommonMisc-9.2-gd.lib
vtkCommonMisc-9.2.lib
vtkCommonSystem-9.2-gd.lib
vtkCommonSystem-9.2.lib
vtkCommonTransforms-9.2-gd.lib
vtkCommonTransforms-9.2.lib
vtkDICOMParser-9.2-gd.lib
vtkDICOMParser-9.2.lib
vtkDomainsChemistry-9.2-gd.lib
vtkDomainsChemistry-9.2.lib
vtkDomainsChemistryOpenGL2-9.2-gd.lib
vtkDomainsChemistryOpenGL2-9.2.lib
vtkdoubleconversion-9.2-gd.lib
vtkdoubleconversion-9.2.lib
vtkexodusII-9.2-gd.lib
vtkexodusII-9.2.lib
vtkexpat-9.2-gd.lib
vtkexpat-9.2.lib
vtkFiltersAMR-9.2-gd.lib
vtkFiltersAMR-9.2.lib
vtkFiltersCore-9.2-gd.lib
vtkFiltersCore-9.2.lib
vtkFiltersExtraction-9.2-gd.lib
vtkFiltersExtraction-9.2.lib
vtkFiltersFlowPaths-9.2-gd.lib
vtkFiltersFlowPaths-9.2.lib
vtkFiltersGeneral-9.2-gd.lib
vtkFiltersGeneral-9.2.lib
vtkFiltersGeneric-9.2-gd.lib
vtkFiltersGeneric-9.2.lib
vtkFiltersGeometry-9.2-gd.lib
vtkFiltersGeometry-9.2.lib
vtkFiltersHybrid-9.2-gd.lib
vtkFiltersHybrid-9.2.lib
vtkFiltersHyperTree-9.2-gd.lib
vtkFiltersHyperTree-9.2.lib
vtkFiltersImaging-9.2-gd.lib
vtkFiltersImaging-9.2.lib
vtkFiltersModeling-9.2-gd.lib
vtkFiltersModeling-9.2.lib
vtkFiltersParallel-9.2-gd.lib
vtkFiltersParallel-9.2.lib
vtkFiltersParallelImaging-9.2-gd.lib
vtkFiltersParallelImaging-9.2.lib
vtkFiltersPoints-9.2-gd.lib
vtkFiltersPoints-9.2.lib
vtkFiltersProgrammable-9.2-gd.lib
vtkFiltersProgrammable-9.2.lib
vtkFiltersSelection-9.2-gd.lib
vtkFiltersSelection-9.2.lib
vtkFiltersSMP-9.2-gd.lib
vtkFiltersSMP-9.2.lib
vtkFiltersSources-9.2-gd.lib
vtkFiltersSources-9.2.lib
vtkFiltersStatistics-9.2-gd.lib
vtkFiltersStatistics-9.2.lib
vtkFiltersTexture-9.2-gd.lib
vtkFiltersTexture-9.2.lib
vtkFiltersTopology-9.2-gd.lib
vtkFiltersTopology-9.2.lib
vtkFiltersVerdict-9.2-gd.lib
vtkFiltersVerdict-9.2.lib
vtkfmt-9.2-gd.lib
vtkfmt-9.2.lib
vtkfreetype-9.2-gd.lib
vtkfreetype-9.2.lib
vtkGeovisCore-9.2-gd.lib
vtkGeovisCore-9.2.lib
vtkgl2ps-9.2-gd.lib
vtkgl2ps-9.2.lib
vtkglew-9.2-gd.lib
vtkglew-9.2.lib
vtkhdf5-9.2-gd.lib
vtkhdf5-9.2.lib
vtkhdf5_hl-9.2-gd.lib
vtkhdf5_hl-9.2.lib
vtkImagingColor-9.2-gd.lib
vtkImagingColor-9.2.lib
vtkImagingCore-9.2-gd.lib
vtkImagingCore-9.2.lib
vtkImagingFourier-9.2-gd.lib
vtkImagingFourier-9.2.lib
vtkImagingGeneral-9.2-gd.lib
vtkImagingGeneral-9.2.lib
vtkImagingHybrid-9.2-gd.lib
vtkImagingHybrid-9.2.lib
vtkImagingMath-9.2-gd.lib
vtkImagingMath-9.2.lib
vtkImagingMorphological-9.2-gd.lib
vtkImagingMorphological-9.2.lib
vtkImagingSources-9.2-gd.lib
vtkImagingSources-9.2.lib
vtkImagingStatistics-9.2-gd.lib
vtkImagingStatistics-9.2.lib
vtkImagingStencil-9.2-gd.lib
vtkImagingStencil-9.2.lib
vtkInfovisCore-9.2-gd.lib
vtkInfovisCore-9.2.lib
vtkInfovisLayout-9.2-gd.lib
vtkInfovisLayout-9.2.lib
vtkInteractionImage-9.2-gd.lib
vtkInteractionImage-9.2.lib
vtkInteractionStyle-9.2-gd.lib
vtkInteractionStyle-9.2.lib
vtkInteractionWidgets-9.2-gd.lib
vtkInteractionWidgets-9.2.lib
vtkIOAMR-9.2-gd.lib
vtkIOAMR-9.2.lib
vtkIOAsynchronous-9.2-gd.lib
vtkIOAsynchronous-9.2.lib
vtkIOCesium3DTiles-9.2-gd.lib
vtkIOCesium3DTiles-9.2.lib
vtkIOCGNSReader-9.2-gd.lib
vtkIOCGNSReader-9.2.lib
vtkIOChemistry-9.2-gd.lib
vtkIOChemistry-9.2.lib
vtkIOCityGML-9.2-gd.lib
vtkIOCityGML-9.2.lib
vtkIOCONVERGECFD-9.2-gd.lib
vtkIOCONVERGECFD-9.2.lib
vtkIOCore-9.2-gd.lib
vtkIOCore-9.2.lib
vtkIOEnSight-9.2-gd.lib
vtkIOEnSight-9.2.lib
vtkIOExodus-9.2-gd.lib
vtkIOExodus-9.2.lib
vtkIOExport-9.2-gd.lib
vtkIOExport-9.2.lib
vtkIOExportGL2PS-9.2-gd.lib
vtkIOExportGL2PS-9.2.lib
vtkIOExportPDF-9.2-gd.lib
vtkIOExportPDF-9.2.lib
vtkIOGeometry-9.2-gd.lib
vtkIOGeometry-9.2.lib
vtkIOHDF-9.2-gd.lib
vtkIOHDF-9.2.lib
vtkIOImage-9.2-gd.lib
vtkIOImage-9.2.lib
vtkIOImport-9.2-gd.lib
vtkIOImport-9.2.lib
vtkIOInfovis-9.2-gd.lib
vtkIOInfovis-9.2.lib
vtkIOIOSS-9.2-gd.lib
vtkIOIOSS-9.2.lib
vtkIOLegacy-9.2-gd.lib
vtkIOLegacy-9.2.lib
vtkIOLSDyna-9.2-gd.lib
vtkIOLSDyna-9.2.lib
vtkIOMINC-9.2-gd.lib
vtkIOMINC-9.2.lib
vtkIOMotionFX-9.2-gd.lib
vtkIOMotionFX-9.2.lib
vtkIOMovie-9.2-gd.lib
vtkIOMovie-9.2.lib
vtkIONetCDF-9.2-gd.lib
vtkIONetCDF-9.2.lib
vtkIOOggTheora-9.2-gd.lib
vtkIOOggTheora-9.2.lib
vtkIOParallel-9.2-gd.lib
vtkIOParallel-9.2.lib
vtkIOParallelXML-9.2-gd.lib
vtkIOParallelXML-9.2.lib
vtkIOPLY-9.2-gd.lib
vtkIOPLY-9.2.lib
vtkIOSegY-9.2-gd.lib
vtkIOSegY-9.2.lib
vtkIOSQL-9.2-gd.lib
vtkIOSQL-9.2.lib
vtkioss-9.2-gd.lib
vtkioss-9.2.lib
vtkIOTecplotTable-9.2-gd.lib
vtkIOTecplotTable-9.2.lib
vtkIOVeraOut-9.2-gd.lib
vtkIOVeraOut-9.2.lib
vtkIOVideo-9.2-gd.lib
vtkIOVideo-9.2.lib
vtkIOXML-9.2-gd.lib
vtkIOXML-9.2.lib
vtkIOXMLParser-9.2-gd.lib
vtkIOXMLParser-9.2.lib
vtkjpeg-9.2-gd.lib
vtkjpeg-9.2.lib
vtkjsoncpp-9.2-gd.lib
vtkjsoncpp-9.2.lib
vtkkissfft-9.2-gd.lib
vtkkissfft-9.2.lib
vtklibharu-9.2-gd.lib
vtklibharu-9.2.lib
vtklibproj-9.2-gd.lib
vtklibproj-9.2.lib
vtklibxml2-9.2-gd.lib
vtklibxml2-9.2.lib
vtkloguru-9.2-gd.lib
vtkloguru-9.2.lib
vtklz4-9.2-gd.lib
vtklz4-9.2.lib
vtklzma-9.2-gd.lib
vtklzma-9.2.lib
vtkmetaio-9.2-gd.lib
vtkmetaio-9.2.lib
vtknetcdf-9.2-gd.lib
vtknetcdf-9.2.lib
vtkogg-9.2-gd.lib
vtkogg-9.2.lib
vtkParallelCore-9.2-gd.lib
vtkParallelCore-9.2.lib
vtkParallelDIY-9.2-gd.lib
vtkParallelDIY-9.2.lib
vtkpng-9.2-gd.lib
vtkpng-9.2.lib
vtkpugixml-9.2-gd.lib
vtkpugixml-9.2.lib
vtkRenderingAnnotation-9.2-gd.lib
vtkRenderingAnnotation-9.2.lib
vtkRenderingContext2D-9.2-gd.lib
vtkRenderingContext2D-9.2.lib
vtkRenderingContextOpenGL2-9.2-gd.lib
vtkRenderingContextOpenGL2-9.2.lib
vtkRenderingCore-9.2-gd.lib
vtkRenderingCore-9.2.lib
vtkRenderingFreeType-9.2-gd.lib
vtkRenderingFreeType-9.2.lib
vtkRenderingGL2PSOpenGL2-9.2-gd.lib
vtkRenderingGL2PSOpenGL2-9.2.lib
vtkRenderingHyperTreeGrid-9.2-gd.lib
vtkRenderingHyperTreeGrid-9.2.lib
vtkRenderingImage-9.2-gd.lib
vtkRenderingImage-9.2.lib
vtkRenderingLabel-9.2-gd.lib
vtkRenderingLabel-9.2.lib
vtkRenderingLICOpenGL2-9.2-gd.lib
vtkRenderingLICOpenGL2-9.2.lib
vtkRenderingLOD-9.2-gd.lib
vtkRenderingLOD-9.2.lib
vtkRenderingOpenGL2-9.2-gd.lib
vtkRenderingOpenGL2-9.2.lib
vtkRenderingSceneGraph-9.2-gd.lib
vtkRenderingSceneGraph-9.2.lib
vtkRenderingUI-9.2-gd.lib
vtkRenderingUI-9.2.lib
vtkRenderingVolume-9.2-gd.lib
vtkRenderingVolume-9.2.lib
vtkRenderingVolumeOpenGL2-9.2-gd.lib
vtkRenderingVolumeOpenGL2-9.2.lib
vtkRenderingVtkJS-9.2-gd.lib
vtkRenderingVtkJS-9.2.lib
vtksqlite-9.2-gd.lib
vtksqlite-9.2.lib
vtksys-9.2-gd.lib
vtksys-9.2.lib
vtkTestingRendering-9.2-gd.lib
vtkTestingRendering-9.2.lib
vtktheora-9.2-gd.lib
vtktheora-9.2.lib
vtktiff-9.2-gd.lib
vtktiff-9.2.lib
vtkverdict-9.2-gd.lib
vtkverdict-9.2.lib
vtkViewsContext2D-9.2-gd.lib
vtkViewsContext2D-9.2.lib
vtkViewsCore-9.2-gd.lib
vtkViewsCore-9.2.lib
vtkViewsInfovis-9.2-gd.lib
vtkViewsInfovis-9.2.lib
vtkWrappingTools-9.2-gd.lib
vtkWrappingTools-9.2.lib
vtkzlib-9.2-gd.lib
vtkzlib-9.2.lib
5测试代码(35条消息) PCL 1.13.0 + VS2022 安装配置教程_ZoeyBlogger的博客-CSDN博客
#include
#include
#include
int main(int argc, char** argv)
{
pcl::PointCloud cloud; // Fill in the cloud data
cloud.width = 5;
cloud.height = 1;
cloud.is_dense = false;
cloud.points.resize(cloud.width * cloud.height);
for (std::size_t i = 0; i < cloud.points.size(); ++i)
{
cloud.points[i].x = 1024 * rand() / (RAND_MAX + 1.0f);
cloud.points[i].y = 1024 * rand() / (RAND_MAX + 1.0f);
cloud.points[i].z = 1024 * rand() / (RAND_MAX + 1.0f);
}
pcl::io::savePCDFileASCII("test_pcd.pcd", cloud);
std::cerr << "Saved " << cloud.points.size() << " data points to test_pcd.pcd." << std::endl;
for (std::size_t i = 0; i < cloud.points.size(); ++i)
std::cerr << " " << cloud.points[i].x << " " << cloud.points[i].y << " " << cloud.points[i].z << std::endl;
return (0);
}
1pcl 常见错误1:C4996 ‘std::fpos<_Mbstatet>::seekpos’: warning STL4019
(35条消息) warning STL4019_程序猿小泽的博客-CSDN博客
常见报错2
(35条消息) win10 PCL提示OpenNI2.dll丢失_外西一昂人的博客-CSDN博客
找不到openni2
计算机中丢失OpenNI2.dll
在使用PCL点云库时,直接用pcl_mesh_sampling.exe或是pcl_mesh_samplingd.exe文件生成点云.pcd文件时会报错“:
无法启动此程序,因为计算机中丢失OpenNI2.dll。尝试重新安装该程序以解决此问题。”的错误。
生成.pcd文件的具体做法详见我的上一篇博文:
https://blog.csdn.net/m0_45866718/article/details/110263833
解决方法
(1)第一种方法:
将安装路径下OpenNI2\Tools目录中的OpenNI2.dll放到自己的exe目录下。
比如我的安装路径是C:\Program Files(x86)\OpenNI2.dll\Tools,
我的VS2013工程路径是D:\VS2013 Project\setting_PLC\setting_PLC。
将安装路径中的OpenNI2.dll放到工程路径下,大功告成。
(2)第二种方法
把OpenNI.dll放在system32文件夹下。
————————————————
版权声明:本文为CSDN博主「liuyu进阶」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/m0_45866718/article/details/110280061