Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:1320: undefined reference to `pcl::visualization::PCLVisualizer::createActorFromVTKDataSet(vtkSmartPointer<vtkDataSet> const&, vtkSmartPointer<vtkLODActor>&, bool) #134

Open
Qizai001 opened this issue Dec 27, 2023 · 3 comments

Comments

@Qizai001
Copy link

/usr/bin/ld: CMakeFiles/point_cloud_load_and_vis.dir/point_cloud_load_and_vis.cc.o: in function bool pcl::visualization::PCLVisualizer::fromHandlersToScreen<pcl::PointXYZI>(pcl::visualization::PointCloudGeometryHandler<pcl::PointXYZI> const&, pcl::visualization::PointCloudColorHandler<pcl::PointXYZI> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)': /usr/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:1320: undefined reference to pcl::visualization::PCLVisualizer::createActorFromVTKDataSet(vtkSmartPointer const&, vtkSmartPointer&, bool)'
/usr/bin/ld: CMakeFiles/point_cloud_load_and_vis.dir/point_cloud_load_and_vis.cc.o: in function bool pcl::visualization::PCLVisualizer::addPointCloud<pcl::PointXYZI>(pcl::PointCloud<pcl::PointXYZI>::ConstPtr const&, pcl::visualization::PointCloudColorHandler<pcl::PointXYZI> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)': /usr/include/pcl-1.10/pcl/visualization/impl/pcl_visualizer.hpp:146: undefined reference to pcl::visualization::PointCloudGeometryHandlerXYZpcl::PointXYZI::PointCloudGeometryHandlerXYZ(boost::shared_ptr<pcl::PointCloudpcl::PointXYZI const> const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [src/ch5/CMakeFiles/point_cloud_load_and_vis.dir/build.make:206:/home/yuzq/learn_resource/learn-slam-in-autonomous-driving/slam_in_autonomous_driving/bin/point_cloud_load_and_vis] 错误 1
make[1]: *** [CMakeFiles/Makefile2:4208:src/ch5/CMakeFiles/point_cloud_load_and_vis.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....

有朋友遇到这个问题了吗?救一下!!

@MOLUPENGYOU
Copy link

请问一下解决了吗?我也碰到了一样的问题。

@MOLUPENGYOU
Copy link

我之后找到的解决方式是:cp PCL /build/lib/* to /usr/local/lib

@aizhiluo
Copy link

我之后找到的解决方式是:cp PCL /build/lib/* to /usr/local/lib

能具体解释下怎么解决的吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants