【发布时间】:2021-03-09 11:29:17
【问题描述】:
我已经使用./vcpkg install pcl:x64-windows 安装了带有 vcpkg 的 PCL。
过了一会儿,我注意到 concave_hull.h、convex_hull.h 和 qhull.h 没有与库的其余部分一起安装。
我正在使用的其他信息:
- vcpkg 标签 (2020.11.01)
- 操作系统 Windows 10
- VS 社区 16.8.3
为了完整起见,我已经包含了导致我遇到这个问题的代码:
#include <pcl/surface/concave_hull.h>
#include <pcl/point_cloud.h>
int main()
{
using point_cloud_colored = pcl::PointCloud<pcl::PointXYZRGB>;
//plane is generated from somewhere else and is not important for this issue
point_cloud_colored::Ptr plane = load_cloud_from_somewhere();
point_cloud_colored::Ptr hull_cloud(new point_cloud_colored);
pcl::ConcaveHull<point_cloud_colored> chull;
chull.setInputCloud(plane);
chull.setAlpha(0.1);
chull.reconstruct(*hull_cloud);
}
此代码产生以下错误消息:
严重性代码描述项目文件行抑制状态 错误 C1083 无法打开包含文件:'pcl/surface/concave_hull.h':没有这样的文件或目录 farrao_gui C:\Users\ ...\farrao\source\farrao_gui\farrao_gui.cpp 39
我已经尝试通过 vcpkg 重新安装,但没有成功。
有没有办法解决这个问题?
【问题讨论】:
标签: c++ point-cloud-library vcpkg