PCL Installation Use

Source: Internet
Author: User

Original link

One. Download and install

Http://pointclouds.org/downloads/windows.html

1. Qt is installed under the default path (otherwise there is a problem), add the environment variable Qtdir (c:\Qt\4.8.0), and add the Bin folder to the PATH environment variable.

2. Compiling the all_build will eventually cause many errors due to the Pcl_io module compilation failure. Solution:

Comment out the first four lines of the "template <" in the Io\include\pcl\io\png_io.h file, recompile the IO module
pcl_deprecated (template <typename t> void savepngfile (const std::string& file_name, const PCL::P Ointclou d<t>& Cloud),
"Pcl::io::savepngfile<typename t> (file_name, Cloud) is deprecated and use a new generic"
"Function Pcl::io::savepngfile (file_name, Cloud, field_name) with \" Rgb\ "as the field name."
//    );

3. Do not install the PCL on the C drive, as there will be an error that CMake cannot create the folder.

Two. Use

1. Configuring the System environment

A, (optionl) computers--Properties--Advanced system settings. The System Properties box pops up. Advanced--environment variables. Add system variable, pcl_root, variable value: D:\Program FILES\PCL 1.6.0

B. Append to system variable path:

D:\Program Files\openni\bin;

D:\Program FILES\PCL 1.6.0\bin;

D:\Program FILES\PCL 1.6.0\3rdparty\flann\bin;

D:\Program FILES\PCL 1.6.0\3rdparty\qhull\bin;

2. Project configuration

A, after the new project, the project properties->vc++ directory, including directory additions:

D:\Program Files\openni\include

D:\Program Files\openni\include\win32

D:\Program FILES\PCL 1.6.0\include\pcl-1.6

D:\Program FILES\PCL 1.6.0\3rdparty\boost\include

D:\Program FILES\PCL 1.6.0\3rdparty\eigen\include

D:\Program FILES\PCL 1.6.0\3rdparty\flann\include

D:\Program FILES\PCL 1.6.0\3rdparty\qhull\include

D:\Program FILES\PCL 1.6.0\3rdparty\vtk\include\vtk-5.8

B, Project Properties->vc++ directory, library directory add:

D:\Program Files\openni\lib

D:\Program FILES\PCL 1.6.0\lib

D:\Program FILES\PCL 1.6.0\3rdparty\boost\lib

D:\Program FILES\PCL 1.6.0\3rdparty\flann\lib

D:\Program FILES\PCL 1.6.0\3rdparty\qhull\lib

D:\Program FILES\PCL 1.6.0\3rdparty\vtk\lib\vtk-5.8

C. Dubug mode, additional dependency additions, linker-

OpenNI.lib

            opengl32.lib

Pcl_keypoints_debug.lib
Pcl_kdtree_debug.lib
Pcl_io_debug.lib
Pcl_search_debug.lib
Pcl_segmentation_debug.lib
Pcl_features_debug.lib
Pcl_filters_debug.lib
Pcl_visualization_debug.lib
Pcl_common_debug.lib
Flann_cpp_s-gd.lib
Libboost_system-vc100-mt-gd-1_50.lib
Libboost_filesystem-vc100-mt-gd-1_50.lib
Libboost_thread-vc100-mt-gd-1_50.lib
Libboost_date_time-vc100-mt-gd-1_50.lib
Libboost_iostreams-vc100-mt-gd-1_50.lib
Vtkalglib-gd.lib
Vtkcharts-gd.lib
Vtkcommon-gd.lib
Vtkdicomparser-gd.lib
Vtkexoiic-gd.lib
Vtkexpat-gd.lib
Vtkfiltering-gd.lib
Vtkfreetype-gd.lib
Vtkftgl-gd.lib
Vtkgenericfiltering-gd.lib
Vtkgeovis-gd.lib
Vtkgraphics-gd.lib
Vtkhdf5-gd.lib
Vtkhybrid-gd.lib
Vtkimaging-gd.lib
Vtkinfovis-gd.lib
Vtkio-gd.lib
Vtkjpeg-gd.lib
Vtklibxml2-gd.lib
Vtkmetaio-gd.lib
Vtknetcdf-gd.lib
Vtknetcdf_cxx-gd.lib
Vtkpng-gd.lib
Vtkproj4-gd.lib
Vtkrendering-gd.lib
Vtksqlite-gd.lib
Vtksys-gd.lib
Vtktiff-gd.lib
Vtkverdict-gd.lib
Vtkviews-gd.lib
Vtkvolumerendering-gd.lib
Vtkwidgets-gd.lib
Vtkzlib-gd.lib

PCL Installation Use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.