首页 文章

如何 Build PCL项目

提问于
浏览
2

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

这就是我所做的:我在我的计算机上安装了Point Cloud库PCL 1.6.0一体化安装程序,用于MSVS 2010(64位),然后安装了几个我发现需要的库(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 @函数_main 1> PCL.obj中引用的@YAXW4VERBOSITY_LEVEL @ 12 @ PBDZZ:错误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_st环@ 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 回答

  • 2

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

    你完成了我在this answer中描述的所有步骤吗?

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

相关问题