【发布时间】:2021-06-20 16:14:48
【问题描述】:
我是编程的初学者,所以很抱歉我的基本问题。
几周前我通过 vcpkg 管理器安装了 PCL 11.1,现在我意识到我缺少一些头文件。特别是 pcl/surface/concave_hull.h 以及更多关于可视化的内容,但我暂时不会错过这些。
我尝试以不同的方式安装 PCL (v11.1)(使用我在 git 上找到的 exe 文件),我可以在那里看到丢失的文件。然而,当我将此位置添加到 Visual Studio (v16.8.4) 中的其他包含目录时,我得到了 3 个链接器错误。
Error LNK2001 unresolved external symbol "protected: virtual void __cdecl pcl::ConcaveHull<struct pcl::PointXYZ>::performReconstruction(struct pcl::PolygonMesh &)" (?performReconstruction@?$ConcaveHull@UPointXYZ@pcl@@@pcl@@MEAAXAEAUPolygonMesh@2@@Z) Meas3D C:\Users\hribh\source\repos\Meas3D\Meas3D\Meas3D\hull.obj 1
Error LNK2001 unresolved external symbol "protected: virtual void __cdecl pcl::ConcaveHull<struct pcl::PointXYZ>::performReconstruction(class std::vector<struct pcl::Vertices,class std::allocator<struct pcl::Vertices> > &)" (?performReconstruction@?$ConcaveHull@UPointXYZ@pcl@@@pcl@@MEAAXAEAV?$vector@UVertices@pcl@@V?$allocator@UVertices@pcl@@@std@@@std@@@Z) Meas3D C:\Users\hribh\source\repos\Meas3D\Meas3D\Meas3D\hull.obj 1
Error LNK2001 unresolved external symbol "public: void __cdecl pcl::ConcaveHull<struct pcl::PointXYZ>::reconstruct(class pcl::PointCloud<struct pcl::PointXYZ> &,class std::vector<struct pcl::Vertices,class std::allocator<struct pcl::Vertices> > &)" (?reconstruct@?$ConcaveHull@UPointXYZ@pcl@@@pcl@@QEAAXAEAV?$PointCloud@UPointXYZ@pcl@@@2@AEAV?$vector@UVertices@pcl@@V?$allocator@UVertices@pcl@@@std@@@std@@@Z) Meas3D C:\Users\hribh\source\repos\Meas3D\Meas3D\Meas3D\hull.obj 1
有谁知道这是为什么以及如何通过 vcpkg 安装完整版本的 PCL 或如何摆脱这些错误?谢谢。
【问题讨论】:
标签: vcpkg concave-hull