ros中使用pcl编译报错

来源:互联网 发布:黄金坑选股公式源码 编辑:程序博客网 时间:2024/06/06 09:05
Linking CXX executable /home/shyreckdc/catkin_ws/devel/lib/my_pcl/cloud_viewer
/usr/bin/ld: CMakeFiles/cloud_viewer.dir/src/cloud_viewer.cpp.o: undefined reference to symbol '_ZN15vtkSphereSource3NewEv'
//usr/lib/libvtkGraphics.so.5.8: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [/home/shyreckdc/catkin_ws/devel/lib/my_pcl/cloud_viewer] Error 1
make[1]: *** [my_pcl/CMakeFiles/cloud_viewer.dir/all] Error 2
make: *** [all] Error 2

Invoking "make -j4 -l4" failed


按照错误中提示在target_link_libraries中添加libvtkGraphics.so就可以编译通过

0 0
原创粉丝点击