cmake的使用了错误CBOOST库 [英] cmake is using the wrong cboost libs

查看:2299
本文介绍了cmake的使用了错误CBOOST库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试编译CMake的一个程序,但我得到的股票与此错误:

i try to compile a program with cmake, but I got stock with this error:

  Unable to find the requested Boost libraries.

  Boost version: 1.34.1

  Boost include path: /usr/include

  Detected version of Boost is too old.  Requested version was 1.37 (or
  newer).

  The following Boost libraries could not be found:

          boost_program_options
          boost_filesystem

  No Boost libraries were found.  You may need to set Boost_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.

我已经安装了新的动力包下的/ home的/ dev / boost_1_45_0。

I installed already the new boost package under /home/dev/boost_1_45_0.

但总是当我尝试运行cmake我再次得到还是同样的错误。

But always when I try to run cmake again I get still the same error.

我还设置

export BOOST_ROOT=/home/dev/boost_1_45_0

但是,当我执行 CD $ {BOOST_ROOT} 我在正确的文件夹。

有人能帮助我吗?谢谢!

Can anybody help me? Thanks!

推荐答案

尝试删除构建树,然后运行:

Try to delete your build tree, and then run:

cmake -DBOOST_ROOT=/home/dev/boost_1_45_0 path/to/src path/to/build

这篇关于cmake的使用了错误CBOOST库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆