Reputation: 4813
I'm trying to compile PCL for use with OpenCV on Ubuntu (64 bit).
I'm following instructions on official website.
when I do a "make", I get the following error:
Linking CXX executable ../../bin/pcl_example_extract_clusters_normals
/usr/bin/ld: cannot find -lpcl_visualization
collect2: ld returned 1 exit status
make[2]: *** [bin/pcl_example_extract_clusters_normals] Error 1
make[1]: *** [examples/segmentation/CMakeFiles/pcl_example_extract_clusters_normals.dir/all] Error 2
make: *** [all] Error 2
Please help me figure this out.
Upvotes: 2
Views: 857
Reputation: 8802
You can also use cmake-gui
and enable BUILD_visualisation
Upvotes: 1
Reputation: 14084
I also had to edit the cmake file to build visualization, but then I also found I needed to install libvtk5-dev, otherwise the visualization module would be automatically turned off.
Upvotes: 1
Reputation: 4813
I fixed it by editing cmake file. Visualization module was not being built for some reason. I customized the cmake file using command ccmake
to make it build visualization module also.
Upvotes: 2