菜鸟求助帖:用过PCL的请入

玉阳呈映 2014-07-13 04:11:12
C++菜鸟一枚,近来在研究PCL中的凸包(convexhull)算法,根据《点云库PCL学习教程》和开源代码改了一下程序,用于进行点云的体积计算,编译没有通过,出现了下面的错误,不知道有什么bug,(去网上查了查,说很有可能是库加少了。)求大神指点一二~感激不尽~
报错见下:
1>pcl_test.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __thiscall pcl::ConvexHull<struct pcl::PointXY>::performReconstruction(class std::vector<struct pcl::Vertices,class std::allocator<struct pcl::Vertices> > &)" (?performReconstruction@?$ConvexHull@UPointXY@pcl@@@pcl@@MAEXAAV?$vector@UVertices@pcl@@V?$allocator@UVertices@pcl@@@std@@@std@@@Z)
1>pcl_test.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __thiscall pcl::ConvexHull<struct pcl::PointXY>::performReconstruction(struct pcl::PolygonMesh &)" (?performReconstruction@?$ConvexHull@UPointXY@pcl@@@pcl@@MAEXAAUPolygonMesh@2@@Z)
1>pcl_test.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall pcl::search::OrganizedNeighbor<struct pcl::PointXY>::nearestKSearch(struct pcl::PointXY const &,int,class std::vector<int,class std::allocator<int> > &,class std::vector<float,class std::allocator<float> > &)const " (?nearestKSearch@?$OrganizedNeighbor@UPointXY@pcl@@@search@pcl@@UBEHABUPointXY@3@HAAV?$vector@HV?$allocator@H@std@@@std@@AAV?$vector@MV?$allocator@M@std@@@6@@Z)
1>pcl_test.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall pcl::search::OrganizedNeighbor<struct pcl::PointXY>::radiusSearch(struct pcl::PointXY const &,double,class std::vector<int,class std::allocator<int> > &,class std::vector<float,class std::allocator<float> > &,unsigned int)const " (?radiusSearch@?$OrganizedNeighbor@UPointXY@pcl@@@search@pcl@@UBEHABUPointXY@3@NAAV?$vector@HV?$allocator@H@std@@@std@@AAV?$vector@MV?$allocator@M@std@@@6@I@Z)
1>pcl_test.obj : error LNK2019: 无法解析的外部符号 "public: void __thiscall pcl::search::OrganizedNeighbor<struct pcl::PointXY>::estimateProjectionMatrix(void)" (?estimateProjectionMatrix@?$OrganizedNeighbor@UPointXY@pcl@@@search@pcl@@QAEXXZ),该符号在函数 "public: virtual void __thiscall pcl::search::OrganizedNeighbor<struct pcl::PointXY>::setInputCloud(class boost::shared_ptr<class pcl::PointCloud<struct pcl::PointXY> const > const &,class boost::shared_ptr<class std::vector<int,class std::allocator<int> > const > const &)" (?setInputCloud@?$OrganizedNeighbor@UPointXY@pcl@@@search@pcl@@UAEXABV?$shared_ptr@$$CBV?$PointCloud@UPointXY@pcl@@@pcl@@@boost@@ABV?$shared_ptr@$$CBV?$vector@HV?$allocator@H@std@@@std@@@5@@Z) 中被引用
1>E:\vs2012code\PCL_TEST\Debug\PCL_TEST.exe : fatal error LNK1120: 5 个无法解析的外部命令
1>
我的库如下:
因为搞不清那些库的关系,所以把VTK、QHULL、BOOST的库都加了一遍
opengl32.lib
pcl_kdtree_debug.lib
pcl_octree_debug.lib
pcl_io_debug.lib
pcl_search_debug.lib
pcl_segmentation_debug.lib
pcl_apps_debug.lib
pcl_features_debug.lib
pcl_filters_debug.lib
pcl_visualization_debug.lib
pcl_common_debug.lib
pcl_surface_debug.lib
pcl_sample_consensus_debug.lib
flann_cpp_s-gd.lib
boost_system-vc100-mt-gd-1_49.lib
boost_filesystem-vc100-mt-gd-1_49.lib
boost_thread-vc100-mt-gd-1_49.lib
boost_date_time-vc100-mt-gd-1_49.lib
boost_iostreams-vc100-mt-gd-1_49.lib
boost_locale-vc100-mt-gd-1_49.lib
boost_math_c99-vc100-mt-gd-1_49.lib
boost_math_tr1f-vc100-mt-gd-1_49.lib
boost_math_tr1-vc100-mt-gd-1_49.lib
boost_chrono-vc100-mt-gd-1_49.lib
boost_graph-vc100-mt-gd-1_49.lib
boost_mpi-vc100-mt-gd-1_49.lib
boost_prg_exec_monitor-vc100-mt-gd-1_49.lib
boost_program_options-vc100-mt-gd-1_49.lib
boost_random-vc100-mt-gd-1_49.lib
boost_regex-vc100-mt-gd-1_49.lib
boost_serialization-vc100-mt-gd-1_49.lib
boost_signals-vc100-mt-gd-1_49.lib
boost_timer-vc100-mt-gd-1_49.lib
boost_unit_test_framework-vc100-mt-gd-1_49.lib
boost_wave-vc100-mt-gd-1_49.lib
boost_wserialization-vc100-mt-gd-1_49.lib
openNI.lib
vtkalglib-gd.lib
vtkCharts-gd.lib
vtkCommon-gd.lib
vtkDICOMParser-gd.lib
vtkexoIIc-gd.lib
vtkexpat-gd.lib
vtkFiltering-gd.lib
vtkfreetype-gd.lib
vtkftgl-gd.lib
vtkGenericFiltering-gd.lib
vtkGeovis-gd.lib
vtkGraphics-gd.lib
vtkhdf5-gd.lib
vtkHybrid-gd.lib
vtkImaging-gd.lib
vtkInfovis-gd.lib
vtkIO-gd.lib
vtklibxml2-gd.lib
vtkmetaio-gd.lib
vtkNetCDF-gd.lib
vtkNetCDF_cxx-gd.lib
vtkproj4-gd.lib
vtkRendering-gd.lib
vtksqlite-gd.lib
vtksys-gd.lib
vtktiff-gd.lib
vtkverdict-gd.lib
vtkViews-gd.lib
vtkVolumeRendering-gd.lib
vtkWidgets-gd.lib
vtkzlib-gd.lib
qhull6_d.lib
qhullcpp_d.lib
qhullstatic_d.lib
qhullstatic_p_d.lib
...全文
2960 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
Gloriamin 2015-08-09
  • 打赏
  • 举报
回复
http://blog.csdn.net/gloriamin/article/details/47277153 这个比较全面
X_Imagine 2015-06-03
  • 打赏
  • 举报
回复
解决了 ,,boost 。。。。。。。1.49 不行,我的是boost..............1.47
木白人 2015-04-30
  • 打赏
  • 举报
回复
同问同问,但是不知道缺少哪些库。。
lalayiya122333 2015-02-03
  • 打赏
  • 举报
回复
我也遇到过这个问题,最后用32位的PCL就没问题了
lalayiya122333 2015-01-28
  • 打赏
  • 举报
回复
楼主解决了吗?我也试了加了所有的库,依然没解决。。。
FightForProgrammer 2014-12-16
  • 打赏
  • 举报
回复
这是缺少相应的库文件。 你们都在研究点云技术啊??我也要加入这个研究队伍了。求一起学习啊。
sinat_17900119 2014-12-16
  • 打赏
  • 举报
回复
可能是附加依赖项里面没有加相应的lib吧。。我之前也出现了这个错。。加了之后就可以了。。
forestzxx 2014-10-15
  • 打赏
  • 举报
回复
楼主问题解决了吗?我也遇到了同样的问题,是在vs2010 win64下
zhang010206 2014-09-30
  • 打赏
  • 举报
回复
qhull6.lib qhull6_d.lib qhullcpp.lib qhullcpp_d.lib qhullstatic.lib qhullstatic_d.lib qhullstatic_p.lib qhullstatic_p_d.lib

3,881

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 其它技术问题
社区管理员
  • 其它技术问题社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧