Cmake没有找到boost,pkg配置的flaan和pthreads来运行PCL示例

问题描述 投票:0回答:1

我想从librairy PCL运行一个例子。我需要使用cmake来链接所有不同的librairy。我直接从官方网站安装了正确的,但事实证明cmake没有找到一些pthread.h,pkg可执行文件和boost。这是我用visual c ++ 15编译器收到的消息:

Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
Found eigen: C:/Program Files/PCL 1.6.0/3rdParty/Eigen/include  
Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE  
Could NOT find Boost

我需要下载pkg配置吗?我以为它已经在PCL内了。我试图从互联网上添加一个pthread.h,因为他已经可以识别thread.h但是它没有用。

提前致谢 !

boost cmake point-cloud-library pkg-config
1个回答
0
投票
CMake Error at C:/Program Files/PCL 1.6.0/cmake/PCLConfig.cmake:39 (message):
  common is required but boost was not found
Call Stack (most recent call first):
  C:/Program Files/PCL 1.6.0/cmake/PCLConfig.cmake:354 (pcl_report_not_found)
  C:/Program Files/PCL 1.6.0/cmake/PCLConfig.cmake:500 (find_external_library)
  CMakeLists.txt:5 (find_package)

这是我得到的错误,似乎在强制运行librairy时发现强制,但他能够找到与boost相同的文件夹中的eigen。这是我不理解的部分。我想知道这个问题是否可能来自于提升/分享这一事实;有3个文件夹:

boost-1.47.0
boost-1.49.0
cmake 

也许我必须更改名称,如果其中一个版本只是“提升”。但这不是我的电脑我没有管理员权利

© www.soinside.com 2019 - 2024. All rights reserved.