1

我尝试在安装了 MSVC 12 以及最新的 cmake 和 git 的 win 8.1 上的 MSys git bash 中执行此操作:

$> git clone https://github.com/cpp-netlib/cpp-netlib.git
$> cd cpp-netlib
$> git submodules update --init
$> cd deps
## here I unzip the boost folder into boost
## i.e. cpp-netlib/deps/boost/ contains bjam, bootstrap and the boost include dir
$> cd boost && bootstrap.bat && ./b2.exe
$> cd ../ && mkdir build && cd build
$> cmake -G"Visual Studio 12" -DBOOST_ROOT="../deps/boost" ../

这失败了:并要求我设置 BOOST_ROOT。

这有什么问题?

谢谢您的帮助

4

1 回答 1

1

cpp-netlib库依赖于boost它,它需要知道它的安装位置,以便它可以找到它。因此,只需将BOOST_ROOT环境变量设置为您机器上 boost 库的位置。例如

set BOOST_ROOT=C:\libraries\boost\boost_1_55_0

注意:如果您打算使用加密,您可能还需要安装OpenSSL 。

于 2013-12-12T07:25:19.283 回答