Reputation: 343
I´ve been trying to run one of the Point Cloud Library examples shown (http://pointclouds.org/documentation/tutorials/using_pcl_pcl_config.php#using-pcl-pcl-config) in the PCL website for the whole morning and still can´t make it run!
This is what I did: I´ve installed Point Cloud library PCL 1.6.0 All-In-One Installer for MSVS 2010 (64 bit) in my computer, then, installed a couple of libraries I found I needed (Boost and Eigen). After, I have added all the dependencies and libraries needed in MS Visual Studio 2010 (PLC, boost and eigen) and I´m still getting these annoying errors:
(I´ve tried also using CMake gui for windows but it reports a lot of errors when generating the project)
1>PCL.obj : error LNK2019: unresolved external symbol "void __cdecl pcl::console::print(enum pcl::console::VERBOSITY_LEVEL,char const *,...)" (?print@console@pcl@@YAXW4VERBOSITY_LEVEL@12@PBDZZ) referenced in function _main
1>PCL.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall pcl::PCDReader::readHeader(class std::basic_string,class std::allocator > const &,struct sensor_msgs::PointCloud2 &,class Eigen::Matrix &,class Eigen::Quaternion &,int &,int &,unsigned int &,int)" (?readHeader@PCDReader@pcl@@UAEHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAUPointCloud2@sensor_msgs@@AAV?$Matrix@M$03$00$0A@$03$00@Eigen@@AAV?$Quaternion@M$0A@@8@AAH4AAIH@Z)
1>PCL.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall pcl::PCDReader::read(class std::basic_string,class std::allocator > const &,struct sensor_msgs::PointCloud2 &,class Eigen::Matrix &,class Eigen::Quaternion &,int &,int)" (?read@PCDReader@pcl@@UAEHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAUPointCloud2@sensor_msgs@@AAV?$Matrix@M$03$00$0A@$03$00@Eigen@@AAV?$Quaternion@M$0A@@8@AAHH@Z)
Any, any help would be really appreciated. This thing is taking me so many hours and driving me crazy.
thanks!!
Upvotes: 2
Views: 4696
Reputation: 697
You have a linker error, so you are missing a lib file or you are not linking against them. Or you are mixing 32bit and 64bit configurations and libs.
Have you done all the steps that I have described in this answer?
I recommend using the all-in-one installer unless you really know how and why PCL needs 3rd party libraries.
Upvotes: 2