PCL 1.7.2 All-in-one Installer MSVC2012 x64

来源:互联网 发布:淘宝天天特价卡位现象 编辑:程序博客网 时间:2024/05/21 07:55

感谢作者的编译版本:

http://unanancyowen.com/?p=1255&lang=en(作者提供了其他平台下PCL编译)

 

 

主要内容PCL官网

Install and Setting Environmental Variables, and Setting Project

1.      Download the All-in-one Installer, and install.

In the standard, PCL is installed in the “C:\ProgramFiles\PCL 1.7.2″ (or “C:\Program Files (x86)\PCL 1.7.2″).
Please use the Uninstall.exe when you want to uninstall.

2.      Set the environment variable for PCL and 3rdParty.(由于以前编译过VTK,这里只要加%PCL_ROOT%\bin就可以,另外一个不加入Path,并且同时把vtkCommonDataModel-6.2-gd.dll等含有gd的后缀加入到D:VTK\prefix\bin中,即环变量中,VTK路径)

VARIABLE NAME

VARIABLE VALUE

PCL_ROOT

C:\Program Files\PCL 1.7.2 (or C:\Program Files (x86)\PCL 1.7.2)

Path

;%PCL_ROOT%\bin
;%PCL_ROOT%\3rdParty\VTK\bin

3.      Copy VTK *.dll files to “PCL 1.7.2\bin” from “PCL1.7.2\3rdParty\VTK\bin”.Note5

The PCL 1.7.0 that included in this All-in-oneInstaller is linked dynamic library of VTK.
For this reason, It occur run-time error, because the PCL *dll files can notsee VTK *dll files when run-time.
Please avoid this problem by copy VTK *.dll files to “PCL 1.7.2\bin” from “PCL1.7.2\3rdParty\VTK\bin”.

Note 5: It’s my mistake. PCL 1.8.0 All-in-one Installer has been fixed this issue by static link VTK.

· Set the Visual Studio project for PCL and 3rdParty.

Project setting for PCL and 3rdParty iscomplex.
I will publish the property sheet of Visual Studio project.
Note 6
You can setting the project without mistakes using property sheet.

Note6: PCL.props has setting user-defined macros PCL_ROOT. If you installed in notdefault directory, please rewrite the path of PCL_ROOT in PCL.props.

 



编译Qhull(PCL需要用到Qhull)

1.CMAKE_INSTALL_PREFIX改成自己喜欢的路径



2.CMAKE中,Add Entry
Name: CMAKE_DEBUG_POSTFIX
Type:    STRING
Value:  _d
(是为了区分debug和release)

0 0