Home > pcl link > pcl link error

Pcl Link Error

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Point Cloud Library Simple Example Link Error up vote 3 down vote favorite I am trying to run the following PCL simple viewer example from http://pointclouds.org/documentation/tutorials/pcl_visualizer.php I have successfully built the binary tree using Cmake and the recommended Cmakelists.txt After generation, when I try to build it I get the following error : error LNK2019: unresolved external symbol "public: void __thiscall pcl::visualization::PCLVisualizer::initCameraParameters(void)" (?initCameraParameters@PCLVisualizer@visualization@pcl@@QAEXXZ) referenced in function "class boost::shared_ptr __cdecl simpleVis(class boost::shared_ptr const >)" (?simpleVis@@YA?AV?$shared_ptr@VPCLVisualizer@visualization@pcl@@@boost@@V?$shared_ptr@$$CBV?$PointCloud@UPointXYZ@pcl@@@pcl@@@2@@Z)` error LNK2019: unresolved external symbol "public: void __thiscall pcl::visualization::PCLVisualizer::addCoordinateSystem(double,int)" (?addCoordinateSystem@PCLVisualizer@visualization@pcl@@QAEXNH@Z) referenced in function "class boost::shared_ptr __cdecl simpleVis(class boost::shared_ptr const >)" (?simpleVis@@YA?AV?$shared_ptr@VPCLVisualizer@visualization@pcl@@@boost@@V?$shared_ptr@$$CBV?$PointCloud@UPointXYZ@pcl@@@pcl@@@2@@Z) error LNK2019: unresolved external symbol "public: bool __thiscall pcl::visualization::PCLVisualizer::setPointCloudRenderingProperties(int,double,class std::basic_string,class std::allocator > const &,int)" (?setPointCloudRenderingProperties@PCLVisualizer@visualization@pcl@@QAE_NHNABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function "class boost::shared_ptr __cdecl simpleVis(class boost::shared_ptr const >)" (?simpleVis@@YA?AV?$shared_ptr@VPCLVisualizer@visualization@pcl@@@boost@@V?$shared_ptr@$$CBV?$PointCloud@UPointXYZ@pcl@@@pcl@@@2@@Z) And these are ju

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping http://stackoverflow.com/questions/10331341/point-cloud-library-simple-example-link-error each other. Join them; it only takes a minute: Sign up Link-Error LNK2020 & 2001 Visual C++ in VS2012 with PCL-Libraries up vote 0 down vote favorite I´m trying to use the Open Point Cloud library for aligning point-clouds. I use Visual Studio 2012 and created a new Visual c++ project. The Directory where all the .libs of http://stackoverflow.com/questions/14129743/link-error-lnk2020-2001-visual-c-in-vs2012-with-pcl-libraries PCL are stored is added in the properties of the project (Properties -> c/c++ -> general-> additional include directory) The libs i want to use are listed in Properties -> linker -> Input -> additional dependencies The Code i Have written till now is very simple: #include #include #include #include int main(int argc, char** argv) { //creates a PointCloud boost shared pointer and initializes it pcl::PointCloud::Ptr cloud_src (new pcl::PointCloud); //load Pointsclouds from PCD-Files pcl::io::loadPCDFile ("pcd_ascii.pcd", *cloud_src); // <- at this point the error occurs } I just followed this tutorial: http://pointclouds.org/documentation/tutorials/reading_pcd.php I includet the right libs and files…especially “pcd_io.h”, why do I get the linker-error? The pcd-file which I want to load is located in the same folder as the cpp-file. Do I handle the libs in a wrong way? The Link-Errors Fehler 28 error LNK2020: Nicht aufgel÷stes Token (0A000C90) "void __cdecl pcl::console::print(enum pcl::console::VERBOSITY_LEVEL,char const *,...)" (?print@console@pcl@@$$FYAXW4VERBOSITY_LEVEL@12@PBDZZ). D:\Documents\ \Code\PCL_cpp\pcl_cpp\pcl_cpp\pcl_registration.obj pcl_cpp Fehler 29 error LNK2020: Nicht aufgel÷stes Token (0A000CBD) "void __cdecl pcl::console::print(enum pcl::console::VERBOSITY_LEVEL,char const *,...)" (?print@console@pcl@@$$FYAXW4VERBOSITY_LEVEL@12@PBDZZ). D:\Documents\ Code\PCL_cpp\pcl_

threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ http://www.pcl-users.org/Linker-error-with-PCL-templates-td4033604.html Linker error with PCL templates Hi, I'm a PCL beginner and I'm having a bit of a hard time to get my code to build. Seems like I didn't quite understand how to use the explicit instantiated templates which are built into PCL. Let's take NormalEstimation as pcl link an example, which I'm currently failing to use: I define my point cloud, normal and normalestimation instances as follows: pcl::PointCloud::PtrpointCloudRaw(newpcl::PointCloud); pcl::PointCloud::Ptrnormals(newpcl::PointCloud()); pcl::NormalEstimation ne; then I try to call the compute method on NormalEstimation ne.compute(*normals); This is pretty much the way I've seen it at [1], pcl link error except for the RGB, which I need. However, I get the following linker error: 1>processor.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall pcl::NormalEstimation::computeFeature(class pcl::PointCloud &)" (?computeFeature@?$NormalEstimation@UPointXYZRGB@pcl@@UNormal@2@@pcl@@MAEXAAV?$PointCloud@UNormal@pcl@@@2@@Z) I'm a little bit riddled by this error: Is the NormalEstimation template not instantiated for the parameter type combination PointXYZRGB + Normal? If so, why isn't it instantiated by my code then? Thanks, Roland [1] http://pointclouds.org/documentation/tutorials/greedy_projection.php _______________________________________________ [hidden email] / http://pointclouds.orghttp://pointclouds.org/mailman/listinfo/pcl-users Roland Aigner Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Linker error with PCL templates Oh. Never mind. I hit a similar error earlier when I tried to use GP3, which put me on the wrong track and I got totally confused… In this case, I was just missing to link against the f

 

Related content

No related pages.