3

私はライブラリを扱うのが初めてで、いくつかの問題があります。

PCL とすべての依存関係を自分のコンピューター (Windows 7、32 ビット) にインストールしました。 「Simple Cloud Visualization」の例のような簡単な例をビルドして使用できます。しかし、より完全なサンプルを使用したい場合、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::視覚化::PCLVisualizer::addSphere(struct pcl::PointXYZ const &,double,class std::basic_string,class std::allocator > const &,int)" (??$addSphere@UPointXYZ@pcl@@@PCLVisualizer@ visuals@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(class 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(class vtkSmartPointer const &)" (??$?0VvtkLODActor@@@?$vtkSmartPointer@VvtkProp@@@@QAE@ABV?$vtkSmartPointer@VvtkLODActor@@@@@Z) 1>main.obj : エラー LNK2019: 未解決の外部シンボル "public: class vtkSmartPointerBase & __thiscall vtkSmartPointerBase::operator=(class vtkObjectBase *)" (??4vtkSmartPointerBase@@QAEAAV0@PAVvtkObjectBase@@@Z) 関数で参照されている "public: class vtkSmartPointer & __thiscall vtkSmartPointer::operator=(class vtkSmartPointer const &)" (??$?4VvtkLODActor@@@?$vtkSmartPointer@VvtkProp@@@@QAEAAV0@ABV?$vtkSmartPointer@VvtkLODActor@@@@@Z)(??$?4VvtkLODActor@@@?$vtkSmartPointer@VvtkProp@@@@QAEAAV0@ABV?$vtkSmartPointer@VvtkLODActor@@@@@Z)(??$?4VvtkLODActor@@@?$vtkSmartPointer@VvtkProp@@@@QAEAAV0@ABV?$vtkSmartPointer@VvtkLODActor@@@@@Z)

4

1 に答える 1

1

Probably you installed the wrong PCL version (64 bit / 32 bit). Check your VS version and install PCL accordingly. Note that even if you are using a 64 bit system, your compiler may be working in 32 bit.

于 2012-03-02T14:53:46.010 に答える