Point Cloud Library(PCL)的配置

时间:2014-10-03 06:38:23

标签: visual-studio-2010 opencv point-cloud-library

我按照http://pointclouds.org/documentation/tutorials/using_pcl_pcl_config.php进行了配置。我在64位windows7中使用64位pcl 1.5.1,visual studio 2010和cmake3.0.2。我配置时,出现以下错误。

The C compiler identification is MSVC 16.0.30319.1
The CXX compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10 2010 Win64
Check for working C compiler using: Visual Studio 10 2010 Win64 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10 2010 Win64
Check for working CXX compiler using: Visual Studio 10 2010 Win64 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
Found eigen: C:/Program Files/PCL 1.5.1/3rdParty/Eigen/include  
Could NOT find Boost
CMake Error at C:/Program Files/PCL 1.5.1/cmake/PCLConfig.cmake:38 (message):
  common is required but boost was not found
Call Stack (most recent call first):
  C:/Program Files/PCL 1.5.1/cmake/PCLConfig.cmake:344 (pcl_report_not_found)
  C:/Program Files/PCL 1.5.1/cmake/PCLConfig.cmake:489 (find_external_library)
  CMakeLists.txt:3 (find_package)


Configuring incomplete, errors occurred!
See also "D:/LocalData/build/CMakeFiles/CMakeOutput.log".

还有其他方法可以在Windows中将OpenCV库和PCL集成在一起吗?

3 个答案:

答案 0 :(得分:1)

我的环境中遇到了相同(类似的?)问题:Win7 Prof 64bit, VS 2013。 我下载了Boost库,将其解压缩到C:\boost_1_56_0,然后运行bootstrap.bat,然后b2.exe从源代码构建Boost。

然后我在PCLConfig.cmake中修改了C:\Program Files\PCL 1.6.0\cmake,替换了

set(BOOST_ROOT "${PCL_ROOT}/3rdParty/Boost")

使用我的硬编码版本:

set(BOOST_ROOT "C:/boost_1_56_0")

那是在93号线附近。之后cmake成功完成。

答案 1 :(得分:0)

在Ubuntu 14.04上,我通过更改/usr/share/pcl-1.7/PCLConfig.cmake的第113行解决了类似的问题

find_package(Boost 1.54.0)

Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "CloseDialogBoxScript", "CloseDialogBox();", True)

这对我有用。

答案 2 :(得分:0)

您可以使用此处提供的cmake-gui:https://cmake.org

首先,根据您的平台下载并安装Boost库(请注意架构32/64),请点击此链接https://sourceforge.net/projects/boost/files/boost-binaries/

然后在CMake中,将条目添加为PATH: "BOOST_INCLUDE_DIR" as example (C:\boost_1_59_0) "BOOST_LIBRARYDIR" as example (C:\boost_1_59_0\libs)

再次点击配置,您的升级库将被找到。

希望这有帮助!

欢呼声