vcpkg安装后,点云库缺少头文件



我是一个编程初学者,所以我对我的基本问题感到抱歉。

几周前,我通过vcpkg管理器安装了PCL11.1,现在我意识到我缺少一些头文件。特别是pcl/surface/concave_hull.h和更多关于可视化的内容,但我现在不太怀念这些。

我尝试用不同的方式安装PCL(v11.1((使用我在git上找到的exe文件(,我可以在那里看到丢失的文件。然而,当我将这个位置添加到visualstudio(v16.8.4(中的其他include目录时,我得到了3个Linker错误。

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:UsershribhsourcereposMeas3DMeas3DMeas3Dhull.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:UsershribhsourcereposMeas3DMeas3DMeas3Dhull.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:UsershribhsourcereposMeas3DMeas3DMeas3Dhull.obj   1   

有人知道为什么会这样,以及如何通过vcpkg安装完整版本的PCL,或者如何消除这些错误吗?非常感谢。

我在头文件方面也遇到了同样的问题。事实证明,使用vcpkg并不能提供所有的头和文件。你可以从这里安装pcl,这解决了我的问题:http://unanancyowen.com/en/pcl181/我知道这是一个基本的答案,但我希望它能有所帮助。

最新更新