Installing PCL point Cloud Library under Windows

Source: Internet
Author: User

SOURCE Link: http://blog.csdn.net/u012337034/article/details/38270109 Introduction: There are probably two ways to install the PCL Point Cloud Library under Windows: First, All-in-one-installer, this is only two versions of 1.5.1 and 1.6.0, and as the name implies, the installation method is extremely simple, here is not much to do introduction; second, build PCL out of source, where we can use various versions of PCL, And with the PCL update, we can also keep update. Next I will detail how to install the PCL Point Cloud Library independently. Configuration requirements: Platform: No idle computer around, can only take my 10 years of CQ41 surgery. The following is a list of configurations:
    • Operating system: Win 7 32bit SP1
    • Ide:visualstudio SP1 (must be updated to SP1, otherwise COFF error)
    • cmake:version3.0.0 (the landlord likes to eat the first crab)
Point cloud libraries and third-party libraries: The version of the Point Cloud Library can be randomly selected, here I take the latest stable version 1.7.132bit as an example. Third-party library version of the choice is not so easy, PCL official given the specified version.
    • Boost 1.50.0
    • Eigen 3.0.5
    • FLANN 1.7.1
    • VTK 5.8.0
    • Qhull 6.2.0.1385
    • Openni 1.5.4 & 5.1.0
        third-party libraries I recommend downloading directly from the website (click here to download), eliminating the build process and installing it directly. Installation steps: Third-party libraries:        Point Cloud Library build requires third-party library support, and the three-way library installation method is very simple, in order to facilitate management, I recommend that you install third-party libraries in the same fixed directory. For example, I was installed under the C:\pcl-1.7.1\3rdParty. (Environment variables will be added by default during installation, and then we won't have to bother anymore.) Point Cloud Library build:        First attach download link address (click here to download), then unzip, I put under E:\pcl-pcl-1.7.1\pcl-pcl-1.7.1\, in order to facilitate management, We create a build directory under this directory. Then open CMake and select a good directory (shown in the red box).         Next select the Build library, (I've basically chosen it for the sake of trouble).         Next click on the Configure button, the effect of which is to determine whether CMake can find the required library.         then click on the Generate button to wait for the build (don't be happy too early, this just completes less than one-third of the work).         Here, let's get rid of a bug: Find the Png_io.h file in the IO directory and comment out the 144-147 line function (otherwise many libraries will not compile), as shown in.         Then open the CMake generated VS2010 solution for compilation, and debug and release are compiled once. Release is the perfect compilation, all will be compiled successfully, and debug may be compiled several times to complete (can be compiled according to the files generated by the release to debug, the compilation process will take a long time).         second-to-last steps for file collation.
    • Create a new Lib directory in the 3rdParty directory, copy all of the. lib files from the Lib directory just under the build directory, and then create a new Pkgconfig directory under the Lib directory to search for all the. pc files under the unpacked package, and copy the past.
    • Create a new bin directory in the directory where 3rdParty is located, copying the. exe and. pdb in the Bin directory under the build directory.
    • Create a new CMake directory in the 3rdParty directory, and copy the Pclconfig.cmake and Pclconfigversion.cmake files from the build directory to the past.
    • Create a new include directory in the directory where 3rdParty is located, create a new directory under the Include directory pcl-1.7 (the name must be this), create a new PCL directory under this directory, and then unpack each module under the package include\pcl\ All the files under the file are copied in the past.
Take the directory I set as an example:
    1. C:\pcl-1.7.1\
    2. C:\pcl-1.7.1\3rdParty\
    3. C:\pcl-1.7.1\bin\
    4. C:\pcl-1.7.1\cmake\
    5. C:\pcl-1.7.1\include\
    6. C:\pcl-1.7.1\lib\
The final step is to add the system environment variables.        First add the Bin directory under Path, mine is C:\pcl-1.7.1\bin, and then create a new pcl_root variable name, and the variable is the directory where the PCL is located, and mine is C:\pcl-1.7.1\3rdParty. At this point, you can find an example from the official website, and then use CMake to build the solution and run successfully. I've been experimenting, and I'm not on the map. It is recommended that you use cmake so that you do not have to add a variety of directories and libraries to vs.

Installing PCL point Cloud Library under Windows

Related Article

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.