【问题标题】:cmake error because of boost_thread missing由于缺少 boost_thread 导致的 cmake 错误
【发布时间】:2018-03-04 04:58:04
【问题描述】:

我正在尝试编译 pcl,并且我已经安装了它的所有依赖项。 但是当我尝试 cmake 时,它​​会给出一个错误,指出缺少 boost_thread。 我努力了 设置(Boost_USE_STATIC_LIBS ON/OFF) 设置(Boost_USE_STATIC OFF) 设置(Boost_USE_MULTITHREAD ON/OFF)

我已经检查了我的 \usr\include 文件夹。它包含 boost 文件夹,里面有 thread 文件夹,但里面没有名为 boost_thread 的库。 而且在我的 \usr\lib 中,除了一个 liboost_thread 之外,还有所有库。

windows -ubuntu 16.04

pcl_source_code - https://github.com/PointCloudLibrary/pcl/blob/master/cmake/pcl_find_boost.cmake

【问题讨论】:

    标签: boost cmake point-cloud-library


    【解决方案1】:

    好像你没有开发版的boost线程库。试试sudo apt-get install libboost-thread-dev

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-07-25
      • 1970-01-01
      • 2020-12-06
      • 1970-01-01
      • 2022-11-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多