PCL例程使用CMake导入VS2013失败
来源:互联网 发布:c语言读取一行字符串 编辑:程序博客网 时间:2024/06/06 03:25
安装完PCL all_in_one 之后,使用CMake将例程生成为VS2013的工程
配置完成选择生成后界面如下:
有问题的有三行,如图红线所示:
1. OPENNI_INCLUDE_DIRS-NOTFOUND
2. OPENNI_LIBRARY-NOTFOUND
3. VTK_DIR-NOTFOUND
其中:1、2不是关键配置,只会导致警报。
3是导致生成失败的主要原因。
详细报错信息如下图所示:
Could NOT find openni (missing: OPENNI_LIBRARY OPENNI_INCLUDE_DIRS)
* WARNING * io features related to openni will be disabled
* WARNING * io features related to pcap will be disabled
* WARNING * io features related to png will be disabled
CMake Warning at C:/Program Files/PCL 1.7.2/cmake/PCLConfig.cmake:291 (find_package):
By not providing “FindVTK.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “VTK”, but
CMake did not find one.
Could not find a package configuration file provided by “VTK” with any of
the following names:
VTKConfig.cmakevtk-config.cmake
Add the installation prefix of “VTK” to CMAKE_PREFIX_PATH or set “VTK_DIR”
to a directory containing one of the above files. If “VTK” provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
C:/Program Files/PCL 1.7.2/cmake/PCLConfig.cmake:429 (find_VTK)
C:/Program Files/PCL 1.7.2/cmake/PCLConfig.cmake:615 (find_external_library)
CMakeLists.txt:3 (find_package)
…
…
…
CMake Error at C:/Program Files/PCL 1.7.2/cmake/PCLConfig.cmake:44 (message):
visualization is required but vtk was not found
Call Stack (most recent call first):
C:/Program Files/PCL 1.7.2/cmake/PCLConfig.cmake:459 (pcl_report_not_found)
C:/Program Files/PCL 1.7.2/cmake/PCLConfig.cmake:618 (find_external_library)
CMakeLists.txt:3 (find_package)
解决方案:
找到PCLConfig.cmake所在文件夹C:\PCL 1.7.2\cmake,将PCLConfig.cmake第293行
查看所安装PCL的VTKConfig.make所在的目录:
将PCLConfig.cmake第293行改为相应的目录:
点击生成,成功生成项目,并且只剩下,几个警告。
- PCL例程使用CMake导入VS2013失败
- Cmake使用例程
- CMake生成VS2013项目失败的解决办法
- CMake生成VS2013项目失败的解决办法
- PCL在VS2013下快速安装或者cmake详细安装(可以运行kinectFusion使用kinect1拍摄深度图彩色图三维模型)两种安装方式
- PCL可视化例程
- PCL 在windows 下的配置(使用Cmake)
- PCL 在windows 下的配置(使用Cmake)
- pcl源码cmake错误
- PCL+Cmake配置
- CMake构建PCL项目
- pcl+opencv+vs2013
- PCL 环境搭建与例程
- 利用cmake工具,让VS2013使用OpenCV3.30库
- cmake vs2013示例
- cmake+opencv+vs2013
- CMake + VS2013编译GDCM
- 在Qtcreator下cmake工程文件及使用Qt制作PCL C++ GUI
- iframe是什么?iframe用法详解
- js字符串反转
- Android-WindowAnimation和ActivityAnimation的区别和使用
- 分布式缓存集群的伸缩性设计
- C语言的qsort函数
- PCL例程使用CMake导入VS2013失败
- jquery请求服务器
- 缓冲区溢出:
- SwipeRefreshLayout无法下拉刷新了
- 微信小程序开发之拖拽 image 触摸事件监听
- 蒙特卡罗算法
- ImageButton和Button不设置点击事件也会拦截父View的点击事件
- 从txt文件中获取字段批量生成sql语句
- 下跌是刚开始还是已经结束