【问题标题】:Using PCL with Visual Studio 2010在 Visual Studio 2010 中使用 PCL
【发布时间】:2011-10-23 20:33:51
【问题描述】:

我在使用库方面还很陌生,但我遇到了一些问题。

我已经在我的计算机(Windows 7、32 位)上安装了 PCL 和所有依赖项,我可以构建和使用像 that "Simple Cloud Visualization" example 这样的简单示例。但是如果我想使用more complete sample,Visual Studio 2010 会报告链接错误。

如果我理解正确,我没有在“链接器/输入”中“包含”所有必要的“附加依赖项”。我尝试包含 lib 目录中的所有 .lib 文件,但错误报告仍然相同。

有谁知道,应该将哪个 .lib 添加为“附加依赖项”以使示例工作更完整?还是其他地方有问题?

错误报告:

1>main.obj:错误 LNK2019:未解析的外部符号“public:class vtkProperty * __thiscall vtkActor::GetProperty(void)”(?GetProperty@vtkActor@@QAEPAVvtkProperty@@XZ) 在函数“public: bool __thiscall”中引用pcl::visualization::PCLVisualizer::addSphere(struct pcl::PointXYZ const &,double,class std::basic_string,class std::allocator > const &,int)" (??$addSphere@UPointXYZ@pcl@@ @PCLVisualizer@visualization@pcl@@QAE_NABUPointXYZ@2@NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) 1>main.obj:错误 LNK2019:无法解析的外部符号“void __cdecl pcl::console::print(enum pcl::console::VERBOSITY_LEVEL,char const *,...)”(?print@console@pcl@@ YAXW4VERBOSITY_LEVEL@12@PBDZZ) 在函数“public: bool __thiscall pcl::visualization::PCLVisualizer::addSphere(struct pcl::PointXYZ const &,double,class std::basic_string,class std::allocator > const &, int)" (??$addSphere@UPointXYZ@pcl@@@PCLVisualizer@visualization@pcl@@QAE_NABUPointXYZ@2@NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@ @std@@H@Z) 1>main.obj:错误 LNK2019:未解析的外部符号“public:__thiscall vtkSmartPointerBase::~vtkSmartPointerBase(void)”(??1vtkSmartPointerBase@@QAE@XZ) 在函数“public: __thiscall vtkSmartPointer::~vtkSmartPointer(void)”中引用" (??1?$vtkSmartPointer@VvtkLODActor@@@@QAE@XZ) 1>main.obj:错误 LNK2019:未解析的外部符号“public:__thiscall vtkSmartPointerBase::vtkSmartPointerBase(void)”(??0vtkSmartPointerBase@@QAE@XZ) 在函数“public: __thiscall vtkSmartPointer::vtkSmartPointer(void)”中引用( ??0?$vtkSmartPointer@VvtkLODActor@@@@QAE@XZ) 1>main.obj : 错误 LNK2019: 未解析的外部符号“public: __thiscall vtkSmartPointerBase::vtkSmartPointerBase(class vtkSmartPointerBase const &)” (??0vtkSmartPointerBase@@QAE@ABV0@@Z) 在函数“public: __thiscall vtkSmartPointer:: vtkSmartPointer(类 vtkSmartPointer const &)" (??0?$vtkSmartPointer@VvtkProp@@@@QAE@ABV0@@Z) 1>main.obj : 错误 LNK2019: 未解析的外部符号“public: __thiscall vtkSmartPointerBase::vtkSmartPointerBase(class vtkObjectBase *)” (??0vtkSmartPointerBase@@QAE@PAVvtkObjectBase@@@Z) 在函数“public: __thiscall vtkSmartPointer:: vtkSmartPointer(类 vtkSmartPointer const &)" (??$?0VvtkSmartPointer@@@?$vtkSmartPointer@VvtkProp@@@@QAE@ABV?$vtkSmartPointer@VvtkLODActor@@@@@Z) 1>main.obj:错误 LNK2019:未解析的外部符号“public:class vtkSmartPointerBase & __thiscall vtkSmartPointerBase::operator=(class vtkObjectBase *)”(??4vtkSmartPointerBase@@QAEAAV0@PAVvtkObjectBase@@@Z) 在函数“public:类 vtkSmartPointer & __thiscall vtkSmartPointer::operator=(class vtkSmartPointer const &)" (??$?4VvtkLODActor@@@?$vtkSmartPointer@VvtkProp@@@@QAEAAV0@ABV?$vtkSmartPointer@VvtkLODActor@@@@@Z)

【问题讨论】:

    标签: visual-studio-2010 point-clouds point-cloud-library


    【解决方案1】:

    您可能安装了错误的 PCL 版本(64 位/32 位)。检查您的 VS 版本并相应地安装 PCL。请注意,即使您使用的是 64 位系统,您的编译器也可能在 32 位下工作。

    【讨论】:

      猜你喜欢
      • 2014-02-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多