Pcl+cmake Configuration

Source: Internet
Author: User
Tags documentation php download win32

CMake Configuring PCL

1. Download the required software

Install vs 2010 First

Then install pcl--1.6.0

The full PCL installation package can be downloaded to: http://pointclouds.org/downloads/windows.html. Because my is VS2010, so I choose is 32 bit to carry on the download.

Then install the PCL to D:\opencv\PCL\PCL 1.6.0;

At the same time, there are two other files under this path:

D:\opencv\PCL\OpenNI;

D:\opencv\PCL\PrimeSense.

Then download the Pcl-1.6.0-allinone-msvc2010-win32 file, unzip and copy all the files in the folder to the Bin folder in the previous step of the installed PCL directory.

The PCL development environment is now configured under window.

2. Create the source program Project_inliers.cpp in the VS2010 environment. File content from URL

http://pointclouds.org/documentation/tutorials/project_inliers.php download.

(1) First open VS, create a new Win32 Console application.

(2) Copy the resulting project_inliers.cpp source program to the new Project_inliers.cpp and save it.

(3) Create a new Source folder, such as: D:\opencv\PCL\Source, copy the Project_inliers.cpp to the folder below. Also create a new Cmakelist.txt file under the folder, the contents of the file can be downloaded to http://pointclouds.org/documentation/tutorials/project_inliers.php.

The following is the contents of the TXT file:

Cmake_minimum_required (VERSION 2.8 fatal_error)

Project (project_inliers)//Your project name

Find_package (PCL 1.6 REQUIRED)

Include_directories (${pcl_include_dirs})

Link_directories (${pcl_library_dirs})

Add_definitions (${pcl_definitions})

Add_executable (project_inliers project_inliers.cpp)//project name, CPP file name

Target_link_libraries (Project_inliers ${pcl_libraries})//project name

Create a new folder in the same directory as source Cmake-bin, Path: D:\opencv\PCL\Cmak-bin (this path is used to hold the CMake final generated solution file)

3. Open CMake, set the path as follows:

4. Click Configure configure, select the generator in the popup dialog and click Finish.

Note: During the process, you may

There are some warnings, no need to care about him, we should have no impact.

When you click Configure again, the configuration will be completed quickly.

5. Click Generate Generate, when you see generate done, the instructions are successful.

6. Open the Project_inliers.sln under Cmake-bin and run it.

Operation Result:

(Http://www.cnblogs.com/lyq105/archive/2010/12/03/1895067.html:Cmake), if there is a place not very clear, please refer to:/http m.blog.csdn.net/blog/bactone_li/26383271)

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.