gpt4 book ai didi

point-cloud-library - Ubuntu 16.04 LTS 上的 PCL(点云库)1.7 构建错误

转载 作者:行者123 更新时间:2023-12-02 03:13:16 24 4
gpt4 key购买 nike

我将 Ubuntu 版本从 14.04 lts 更新到 16.04 lts在构建利用点云库的项目时遇到问题。(它曾经在 Ubuntu 14.04 上运行良好,我使用 qtcreator 构建我的项目)

我收到的警告信息是:

warning: libboost_system.so.1.54.0, needed by /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libpcl_common.so, may conflict with libboost_system.so.1.58.0

warning: libboost_thread.so.1.54.0, needed by /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libpcl_common.so, may conflict with libboost_thread.so.1.58.0

warning: libboost_filesystem.so.1.54.0, needed by /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libpcl_io.so, may conflict with libboost_filesystem.so.1.58.0

warning: libboost_iostreams.so.1.54.0, needed by /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libpcl_io.so, may conflict with libboost_iostreams.so.1.58.0

warning: libboost_chrono.so.1.54.0, needed by /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libpcl_io.so, may conflict with libboost_chrono.so.1.58.0

错误是:

~/main.cpp:-1: error: undefined reference to `pcl::visualization::PCLVisualizer::PCLVisualizer(std::__cxx11::basic_string, std::allocator > const&, bool)'

~/main.cpp:-1: error: undefined reference to `pcl::visualization::PCLVisualizer::setPointCloudRenderingProperties(int, double, std::__cxx11::basic_string, std::allocator > const&, int)'

~/main.cpp:-1: error: undefined reference to `pcl::visualization::PCLVisualizer::setPointCloudRenderingProperties(int, double, std::__cxx11::basic_string, std::allocator > const&, int)'

~/build-Desktop-Default/CMakeFiles/project_name.dir/main.cpp.o:-1: In function `pcl::search::OrganizedNeighbor::OrganizedNeighbor(bool, float, unsigned int)':

~/main.cpp:-1: error: undefined reference to `pcl::search::Search::Search(std::__cxx11::basic_string, std::allocator > const&, bool)'

~/build-Desktop-Default/CMakeFiles/project_name.dir/main.cpp.o:-1: In function `pcl::search::OrganizedNeighbor::OrganizedNeighbor(bool, float, unsigned int)':

~/build-Desktop-Default/CMakeFiles/project_name.dir/main.cpp.o:-1: In function `pcl::search::OrganizedNeighbor::OrganizedNeighbor(bool, float, unsigned int)':

我可以看到 libboost_system.so.1.54.0libboost_system.so.1.58.0 之间存在冲突,但我该如何解决呢?

最佳答案

要在 16.04 上从源代码构建 pcl,请遵循此 tutorial .但是没有理由不构建 PCL 1.8 而不是 1.7.x,因为它向下兼容。

此外,1.7.2 的 Jochen Sprieckerhof 存储库对于 1.7.2 已经过时,因为在 Ubuntu 16.04 中有一个原生的 repository。 .你可以简单地做

sudo apt-get update 
sudo apt-get install libpcl-dev

我建议以其中一种建议的方式完全卸载并重新安装。

关于point-cloud-library - Ubuntu 16.04 LTS 上的 PCL(点云库)1.7 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38711172/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com