如何让libtorrent看到提升?

时间:2014-04-25 23:37:46

标签: c++ boost libtorrent libtorrent-rasterbar

我正在使用msys和mingw编译libtorrent-rasterbar-0.16.16。 ./configure运行正常,直到它进入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相同的目录中......但它没有用。

我错过了什么?

1 个答案:

答案 0 :(得分:1)

  

我有1.51的提升,我设置了$ BOOST_ROOT,但这不起作用

configure很可能找不到boost头文件。 您需要的是图书馆和资源,您的最佳途径仍然是设置BOOST_ROOT。

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

BOOST_ROOT=/path/to/boost_1_51 ./configure
相关问题