我试图在安装了MSVC12的Win8.1上的MSys git bash中做到这一点,并且安装了最新的cmake和git:
$> 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。
这有什么问题呢?
谢谢你的帮助
发布于 2013-12-12 15:25:19
cpp-netlib库依赖于boost,它需要知道它的安装位置,这样才能找到它。因此,只需将BOOST_ROOT环境变量设置为boost库在计算机上的位置即可。例如。
set BOOST_ROOT=C:\libraries\boost\boost_1_55_0注意:如果您打算使用加密,则可能还需要安装OpenSSL。
https://stackoverflow.com/questions/20530003
复制相似问题