如何建立PCL项目

时间:2013-05-09 15:46:27

标签: 3d linker point-cloud-library

我一直试图在整个上午运行PCL网站上显示的一个Point Cloud Library示例(http://pointclouds.org/documentation/tutorials/using_pcl_pcl_config.php#using-pcl-pcl-config),仍然无法让它运行!

这就是我所做的:我已经在我的计算机上为MSVS 2010(64位)安装了Point Cloud库PCL 1.6.0多功能安装程序,然后安装了我需要的几个库(Boost)和Eigen)。之后,我添加了MS Visual Studio 2010中所需的所有依赖项和库(PLC,boost和eigen),我仍然遇到这些恼人的错误:

(我也尝试过使用CMake gui for windows,但它在生成项目时报告了很多错误)

  

1> PCL.obj:错误LNK2019:未解析的外部符号“void __cdecl pcl :: console :: print(enum pcl :: console :: VERBOSITY_LEVEL,char const *,...)”(?print @ console @ pcl @@ YAXW4VERBOSITY_LEVEL @ 12 @ PBDZZ)在函数_main

中引用      

1> PCL.obj:错误LNK2001:未解析的外部符号“public:virtual int __thiscall pcl :: PCDReader :: readHeader(class std :: basic_string,class std :: allocator> const&,struct sensor_msgs :: PointCloud2&,类Eigen :: Matrix&,类Eigen :: Quaternion&,int&,int&,unsigned int&,int)“(?readHeader @ PCDReader @ pcl @@ UAEHABV?$ basic_string @杜?$ @ char_traits @ d @@性病V'$ @分配器@ d @@ 2 STD @@ AAUPointCloud2 @ sensor_msgs @@ AAV?$基质@ M $ 03 $ $ 00 0A @ $ 03 $ 00 @艾根@@ AAV?$ @四元数M $ 0A @@ @ 8 @ AAH4AAIH Z)

     

1> PCL.obj:错误LNK2001:未解析的外部符号“public:virtual int __thiscall pcl :: PCDReader :: read(class std :: basic_string,class std :: allocator> const&,struct sensor_msgs :: PointCloud2&,类Eigen :: Matrix&,类Eigen :: Quaternion&,int&,int)“(?读取@ PCDReader @ pcl @@ UAEHABV?$ basic_string @ DU?$ char_traits @ D @ std @ @V?$ @分配器@ d @@ 2 STD @@ AAUPointCloud2 @ sensor_msgs @@ AAV?$基质@ M $ 03 $ $ 00 0A @ $ 03 $ 00 @艾根@@ AAV?$ @四元数M $ 0A @@ 8 @啊哈@ Z)

任何,任何帮助将非常感激。这件事花了我很多时间让我发疯。

谢谢!

1 个答案:

答案 0 :(得分:2)

您有链接器错误,因此您缺少lib文件或者没有链接它们。或者您正在混合32位和64位配置和库。

您是否完成了我在this answer中描述的所有步骤?

我建议使用一体化安装程序,除非您真的知道PCL需要第三方库的方式和原因。