Cmake无法找到请求的Boost库。 - boost_coroutine 1.53

时间:2013-12-24 14:54:27

标签: c++ boost cmake

尝试使用我的Ubuntu x64 13.10进行构建时出错 我安装了libboost-all-dev

$ cmake . -DCMAKE_BUILD_TYPE=Release
statusCompiling on UNIX
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1126 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.53.0

  Boost include path: /usr/include

  The following Boost libraries could not be found:

          boost_coroutine

我检查了是否安装了boost_coroutine包,但是没有版本1.53

$ apt-cache search libboost-coroutine
libboost-coroutine1.54-dev - provides a sort of cooperative multitasking on a single thread

1 个答案:

答案 0 :(得分:1)

似乎libboost-all-dev包指向version 1.53,但不知何故,Ubuntu 13.10缺少相应的协程子包。

如果您对1.53版没有特别的附件,请尝试安装libboost1.54-all-devThat package实际上确实有如上所述的coroutine子包,所以你至少应该能够构建你的项目。