【问题标题】:configuration of Point Cloud Library(PCL)点云库(PCL)的配置
【发布时间】:2016-01-11 05:14:33
【问题描述】:

我按照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".

还有其他方法可以将 OpenCV 库与 PCL 集成到 windows 中吗?

【问题讨论】:

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


【解决方案1】:

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

然后我在C:\Program Files\PCL 1.6.0\cmake中编辑PCLConfig.cmake,替换

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

使用我的硬编码版本:

set(BOOST_ROOT "C:/boost_1_56_0")

大约在第 93 行。在那之后 cmake 成功完成。

【讨论】:

    【解决方案2】:

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

    find_package(Boost 1.40.0 ${QUIET_} COMPONENTS system filesystem thread date_time iostreams serialization chrono)
    

    find_package(Boost 1.54.0)
    

    这对我有用。

    【讨论】:

      【解决方案3】:

      您可以使用此处提供的 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)

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

      希望这会有所帮助!

      干杯

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2023-03-03
        • 2021-07-31
        • 1970-01-01
        • 2019-06-10
        • 2016-03-08
        • 1970-01-01
        • 2015-11-16
        相关资源
        最近更新 更多