2011-08-10 27 views
3

私はライブラリで作業するのがとても新しいです。いくつか問題があります。Visual Studio 2010でPCLを使用する

パソコン(Windows 7,32ビット)にPCLとすべての依存関係がインストールされており、that "Simple Cloud Visualization" exampleのような簡単な例を構築して使用できます。しかし、more complete sampleを使用する場合、Visual Studio 2010はリンクエラーを報告します。

私が正しく理解していれば、「リンカ/入力」に必要なすべての「追加の依存関係」を「含んでいませんでした」。 libディレクトリからすべての.libファイルをインクルードしようとしましたが、エラーレポートは同じです。

誰かが知っていますか。より完全なサンプル作業を行うために.libを "追加の依存関係"として追加する必要がありますか?それともどこか別の問題ですか?

エラーレポート:

1> MAIN.OBJ:エラーLNK2019:未解決の外部シンボル "パブリック:クラスvtkProperty * __thiscall vtkActor ::のGetProperty(無効)"?(GetPropertyメソッド@ vtkActor @@ QAEPAVvtkProperty @@ XZ)は関数 "public:bool __thiscall pcl :: visualization :: PCLVisualizer :: addSphere(struct pcl :: PointXYZ const &、double、class std :: basic_string、クラスstd :: allocator> const &、int)"で参照されます。 PCLVisualizer @視覚化@pcl @@ QAE_NABUPointXYZ @ 2 @ NABV?$ basic_string @ DU?$ char_traits @ D @ std @@ V?$ allocator @D @ 2 @@ std @@ H @ Z) > main.obj:エラーLNK2019:未解決の外部シンボル "void __cdecl pcl :: co "public:bool __thiscall pcl :: visualization関数で参照されているnsole :: print(enum pcl :: console :: VERBOSITY_LEVEL、char const *、...)"(?print @ console @ pcl @@ YAXW4VERBOSITY_LEVEL @ 12 @ PBDZZ) :: PCLVisualizer :: addSphere(struct pcl :: PointXYZ const &、double、class std :: basic_string、クラスstd :: allocator> const &、int) "($ addSphere @ UPointXYZ @ pcl @@@ PCLVisualizer @視覚化@ pcl @@ QAE_NABUPointXYZ @ 2 @ NABV?$ basic_text @D_std @@ V?$ allocator @D @ 2 @ std @@ H @ Z) > main.obj:エラーLNK2019:関数 "public:__thiscall vtkSmartPointer ::〜vtkSmartPointer(void)"で参照される未解決の外部シンボル "public:__thiscall vtkSmartPointerBase ::〜vtkSmartPointerBase(void)"(?? 1vtkSmartPointerBase @@ QAE @ XZ) > main.obj:エラーLNK2019:解決されていない外部シンボル "public:__thiscall vtkSmartPointerBase :: vtkSmartPointerBase(void)"(VvtkLODActor @@@@ QAE @ XZ) ?0vtkSmartPointerBase @@ QAE @ XZ)> main.obj:エラーLNK2019( "0vtkSmartPointerBase @@ QAE @ XZ")関数で参照されています。 :未解決の外部シンボル "パブリック:__thiscall vtkSmartPointerBase :: vtkSmartPointerBase(クラスvtkSmartPointerBase CONST &)"(?? 0vtkSmartPointerBase @@ QAE @ ABV0 @@ Z)関数で参照 "公共:__thiscall vtkSmartPointer :: vtkSmartPointer(クラスvtkSmartPointerのCONST &)"> main.obj:エラーLNK2019:未解決の外部シンボル "public:__thiscall vtkSmartPointerBase :: vtkSmartPointerBase(class vtkObjectBase *)"(?? v?0)? "public:__thiscall vtkSmartPointer :: vtkSmartPointer(クラスvtkSmartPointer const &)"で参照されている0vtkSmartPointerBase @@ QAE @ PAVvtkObjectBase @@@Z) "(?? $?0VvtkLODActor @@@?$ vtkSmartPoinあなたはLNK2019:未解決の外部シンボル "public:class vtkSmartPointerBase & __thiscall vtkSmartPointerBase :: operator =(クラスvtkObjectBase)関数 "public:class vtkSmartPointer & __thiscall vtkSmartPointer :: operator =(クラスvtkSmartPointer const &)で参照される"(?? 4vtkSmartPointerBase @@ QAEAAV0 @ PAVvtkObjectBase @@@ Z) "(?? $?4VvtkLODActor @@@?$ vtkSmartPointer @ VvtkProp @@@@ QAEAAV0 @ ABV?$ vtkSmartPointer @ VvtkLODActor @@@@@ Z)

答えて

1

誤ったPCLバージョン(64ビット/ 32ビット)をインストールした可能性があります。あなたのVSバージョンを確認し、それに応じてPCLをインストールしてください。 64ビットシステムを使用している場合でも、コンパイラは32ビットで動作している可能性があります。

関連する問題