visual-studio-2010 - 点云库(PCL)的配置

标签 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".

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

最佳答案

我在我的环境中遇到了相同(相似?)的问题: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 成功完成。

关于visual-studio-2010 - 点云库(PCL)的配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26174327/

相关文章:

visual-studio - Visual Studio 突然失去与 TFS 的绑定(bind)

c# - 使用 kinect 获取鼠标点击的深度

c++ - OpenCv 将圆转换为多边形

visual-studio-2012 - 在 vs2012 中构建 pcl 时 C++ CMake FLANN 失败

c++ - 从不同 VS2010 项目中的 C++ 代码调用 C 函数时出现链接器错误

c# - 如何在 C# 中手动调用事件?

java - MatOfPoint 到 MatOfPoint2f 大小 Opencv java

c++ - 使用 libpcl_surface 在 boost::math::lanczos 中调试段错误

3d - 从许多二维图像生成点云

visual-studio-2010 - Crystal Report 不根据选择公式过滤 SQL 记录