I want to visualize a point cloud using the point-cloud-library. I already included:
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/kdtree/kdtree_flann.h>
#include <pcl/features/normal_3d.h>
#include <pcl/surface/gp3.h>
without any problem, but when I add
#include <pcl/visualization/pcl_visualizer.h>
to my code I receive an LNK2001 error.
Fehler 51 error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __cdecl pcl::visualization::PCLVisualizer::FPSCallback::Execute(class vtkObject *,unsigned long,void *)" (?Execute@FPSCallback@PCLVisualizer@visualization@pcl@@UEAAXPEAVvtkObject@@KPEAX@Z)"
I think there is a library missing but I can't figure out which one. This is the list with the additional dependencies of my program:
- pcl_common_debug.lib
- pcl_io_debug.lib
- pcl_kdtree_debug.lib
- pcl_features_debug.lib
- pcl_surface_debug.lib
- pcl_search_debug.lib
- pcl_visualization_debug.lib
- vtkCommonCore-6.1.lib
- vtksys-6.1.lib
- and some opencv libs
can anyone tell me which library is missing?
Thanks in advance!
edit:
I created a little cpp-file based on the greedy_projection.cpp code. Thanks to the advice of drescherjm, I used cmake to create the project and I could compile it without errors. Then I wanted to include the stuff in my other project but the same error occurred. Now I figured out, that the reason for the error is the \clr flag. I have a Windows.Forms Project so it is compiled with \clr. The greedy_projection.cpp Project was compiled without this flag. Is there any way to avoid this incompatibility of pcl_visualizer.h with \clr?