【问题标题】:how to get libtorrent to see boost?如何让 libtorrent 看到提升?
【发布时间】:2014-04-25 23:37:46
【问题描述】:

我正在用 msys 和 mingw 编译 libtorrent-rasterbar-0.16.16。 ./configure 运行良好,直到进入 boost 库检查。 我有 boost 1.51,我设置了 $BOOST_ROOT,但这不起作用。

Checking for boost libraries:
checking for boostlib >= 1.36... expr: syntax error
configure: We could not detect the boost libraries (version 1.36 or higher). If
you have a staged boost library (still not installed) please specify $BOOST_ROOT
 in your environment and do not give a PATH to --with-boost option.  If you are
sure you have boost installed, then check your version number looking in <boost/
version.hpp>. See http://randspringer.de/boost for more documentation.
checking whether the Boost::System library is available... no
configure: error: Boost.System library not found. Try using --with-boost-system=
lib

我尝试了 --with-boost-system= 选项,但也没有用。我还将 libboost_system-mgw47-mt-1_51.a 复制到与 libtorrent 相同的目录中......但它不起作用。

我错过了什么?

【问题讨论】:

  • 您说您尝试了 --with-boost 参数。你到底传递了什么?
  • ./config --with-boost-system=./libboost_system-mgw47-mt-1_51.a

标签: c++ boost libtorrent libtorrent-rasterbar


【解决方案1】:

我有 boost 1.51,我设置了 $BOOST_ROOT,但这不起作用

configure很可能找不到boost头文件。 你需要的是库和源代码,你最好的途径仍然是设置 BOOST_ROOT。

在 linux 机器上,您将安装 boost-devel 包,但对于 mingw,您应该直接下载 boost 源并解压缩它们。那么请确保你正在运行,

BOOST_ROOT=/path/to/boost_1_51 ./configure

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-06-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多