gaoxiang12/slam_in_autonomous_driving

ubuntu18.04 编译报错(已安装 gcc-9)

aizhiluo opened this issue · 0 comments

CMakeFiles/point_cloud_load_and_vis.dir/point_cloud_load_and_vis.cc.o: In function pcl::visualization::PointCloudGeometryHandlerXYZ<pcl::PointXYZI>::getGeometry(vtkSmartPointer<vtkPoints>&) const': /usr/include/vtk-6.3/vtkDataArrayTemplate.h:282: undefined reference to vtkDataArrayTemplate::SetArray(float*, long long, int, int)'
/usr/include/vtk-6.3/vtkDataArrayTemplate.h:282: undefined reference to vtkDataArrayTemplate<float>::SetArray(float*, long long, int, int)' CMakeFiles/point_cloud_load_and_vis.dir/point_cloud_load_and_vis.cc.o: In function pcl::visualization::PointCloudColorHandlerGenericFieldpcl::PointXYZI::getColor(vtkSmartPointer&) const':
/usr/include/pcl-1.8/pcl/visualization/impl/point_cloud_color_handlers.hpp:436: undefined reference to vtkDataArrayTemplate<float>::SetArray(float*, long long, int, int)' CMakeFiles/point_cloud_load_and_vis.dir/point_cloud_load_and_vis.cc.o: In function bool pcl::visualization::PCLVisualizer::fromHandlersToScreenpcl::PointXYZI(pcl::visualization::PointCloudGeometryHandlerpcl::PointXYZI const&, pcl::visualization::PointCloudColorHandlerpcl::PointXYZI const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)':
/usr/include/pcl-1.8/pcl/visualization/impl/pcl_visualizer.hpp:1260: undefined reference to `pcl::visualization::PCLVisualizer::createActorFromVTKDataSet(vtkSmartPointer const&, vtkSmartPointer&, bool)'
collect2: error: ld returned 1 exit status
src/ch5/CMakeFiles/point_cloud_load_and_vis.dir/build.make:186: recipe for target '../bin/point_cloud_load_and_vis' failed
make[2]: *** [../bin/point_cloud_load_and_vis] Error 1
CMakeFiles/Makefile2:4313: recipe for target 'src/ch5/CMakeFiles/point_cloud_load_and_vis.dir/all' failed
make[1]: *** [src/ch5/CMakeFiles/point_cloud_load_and_vis.dir/all] Error 2