PCL+ OpenNI2 + VS2010环境配置(Windows )

一、下载、安装:

     1、PCL下载安装。

          http://www.pointclouds.org/downloads/  下载最新的版本。或者下载预先编译好的。

          我下载的是Using prebuilt binaries 下的Windows 版本(如图1).website:http://www.pointclouds.org/downloads/windows.html  

          下载好后安装即可。  我的安装目录为:D:\Program Files\PCL 1.6.0

                                           

图1

      2、OpenNI2

           OpenNI 2.0 的安裝 比OpenNI 1.x简化了。安装OpenNI2之前,需要先安装微软自己的 Kinect for Windows SDK(下载页面)支持。

           OpenNI2官方下载页面:http://www.openni.org/openni-sdk/ 

           下载响应的OpenNI SDK并运行安裝就可以了。目前而言,OpenNI 1.x 和 OpenNI 2.0 也是可以同時安装使用的。

           我的安装路径是,D:\Program Files\OpenNI2

 

 

二、配置环境

    1、 计算机-->属性-->高级系统设置。弹出系统属性框。高级-->环境变量。添加系统变量,PCL_ROOT,变量值:D:\Program Files\PCL 1.6.0

    2、在系统变量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;

         D:\Program Files\TortoiseSVN\bin

三、具体工程配置

      1、新建工程后,项目属性->VC++目录->包含目录 添加:

            D:\Program Files\OpenNI2\Include           

            D:\Program Files\OpenNI2\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

      2、项目属性->VC++目录->库目录 添加:

            D:\Program Files\OpenNI2\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

       3、dubug模式,链接器->输入->附加依赖项 添加

                     OpenNI2.lib

            opengl32.lib
            pcl_kdtree_debug.lib
            pcl_io_debug.lib
            pcl_search_debug.lib
            pcl_segmentation_debug.lib
            pcl_apps_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_47.lib
            libboost_filesystem-vc100-mt-gd-1_47.lib
            libboost_thread-vc100-mt-gd-1_47.lib
            libboost_date_time-vc100-mt-gd-1_47.lib
            libboost_iostreams-vc100-mt-gd-1_47.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

 

 

 

 

 

 

 

          

 

      

 

 

 

 

 

posted @ 2013-08-23 20:31  时刻食客石刻#  阅读(3390)  评论(0编辑  收藏  举报