升压装置(简体)从源代码编译 [英] Boost installation -Simplified Build From Source

查看:133
本文介绍了升压装置(简体)从源代码编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如在<一个提到href=\"http://www.boost.org/doc/libs/1%5F40%5F0/more/getting%5Fstarted/windows.html#or-build-binaries-from-source\"相对=nofollow>文档

我需要什么要安装到运行命令:

what do i need to install to run the commands :

bootstrap
.\bjam

该BoostPro计算乡亲维护的Windows安装程序加速,但如果我先运行安装程序,并下载一个最小的版本,然后再次运行安装程序,安装程序不检测我已经安装了升压已经和我需要一些库。有没有解决办法?

The BoostPro Computing folks maintain the Boost installer for Windows, but if I first run the installer and download a minimal build and then run the installer again, the installer doesn't detect that I've already installed Boost already and I need some more libraries. Is there a way around ?

推荐答案

设置您的BOOST_ROOT环境变量第一:

Set up Your BOOST_ROOT environment variable first:

winXP的:

set BOOST_ROOT=D:\your\boost\sources

然后在BOOST_ROOT目录下运行:

then in the BOOST_ROOT directory run:

boostrap.bat

这将创建bjam.exe和它的环境。
下一步是调用:

this will create your bjam.exe and it's environment. Next step is to invoke:

bjam toolset=msvc stage

这将编译你的Boost库,并把所有的库到该文件夹​​:

This will compile Your boost library and place all libs into the folder:

%BOOST_ROOT%\stage\lib

如果你想建立的一切使用:

If you want to build everything use:

bjam toolset=msvc -a --build-type=complete stage

而不是阶段,你可以把这种安装只需将这个安装到库。
建设过程中会出现创造了巨大的目录bin.v2与所有目标文件。
总安装aprox的:1.5 GB的库(共享+ +静态调试和放大器;释放)

instead stage you can put install this will simply install this to lib. During building there will be created huge directory bin.v2 with all object files. Total installation is aprox: 1.5 GB for libs (shared+static+debug&release).

这篇关于升压装置(简体)从源代码编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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