Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cmake 使用PCL时未找到openni_grabber.h_Cmake_Kinect_Point Cloud Library_Point Clouds_Openni - Fatal编程技术网

Cmake 使用PCL时未找到openni_grabber.h

Cmake 使用PCL时未找到openni_grabber.h,cmake,kinect,point-cloud-library,point-clouds,openni,Cmake,Kinect,Point Cloud Library,Point Clouds,Openni,我正在使用PCL连接到Kinect摄像头。现在,我正试图构建OpenNi Grabber教程。在构建时,我发现一个错误,openni_grabber.h找不到 fatal error: 'pcl/io/openni_grabber.h' file not found #include <pcl/io/openni_grabber.h> 致命错误:未找到“pcl/io/openni_grabber.h”文件 #包括 我检查了有问题的目录,文件确实丢失了,但我不知道为什么。是否有我缺

我正在使用PCL连接到Kinect摄像头。现在,我正试图构建OpenNi Grabber教程。在构建时,我发现一个错误,openni_grabber.h找不到

fatal error: 'pcl/io/openni_grabber.h' file not found
#include <pcl/io/openni_grabber.h>
致命错误:未找到“pcl/io/openni_grabber.h”文件
#包括
我检查了有问题的目录,文件确实丢失了,但我不知道为什么。是否有我缺少的安装选项

我已经使用自制软件安装了OpenNi,我正在使用Kinect v1


谢谢大家!

在教程中找不到建议按绝对路径包括文件的位置,如
usr/local/include/pcl-1.8/pcl/io/openni_grabber.h
。此外,这不是绝对路径,因为缺少前导“/”。Oops。我首先尝试直接从教程中复制。在尝试了几次之后,我使用了绝对路径作为最后手段,我不小心把这个版本复制到了我的问题中。无论哪种情况下都会出现问题,因为该文件似乎不存在于pcl/io/include目录中。看起来您的pcl安装缺少指定的头:确实,缺少openni_grabber.h。但我找到了openni2_grabber.h