我关注了这个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/