|
|
@@ -3,7 +3,7 @@
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
<head>
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
-<meta name="generator" content="Docutils 0.5: http://docutils.sourceforge.net/" />
|
|
|
+<meta name="generator" content="Docutils 0.6: http://docutils.sourceforge.net/" />
|
|
|
<title>Boost Getting Started on Windows</title>
|
|
|
<link rel="stylesheet" href="../../rst.css" type="text/css" />
|
|
|
</head>
|
|
|
@@ -60,14 +60,16 @@ not supported—they may or may not work.</p>
|
|
|
</div>
|
|
|
<div class="section" id="get-boost">
|
|
|
<h1><a class="toc-backref" href="#id26">1 Get Boost</a></h1>
|
|
|
-<p>The easiest way to get a copy of Boost is to use an installer.
|
|
|
-The <a class="reference external" href="http://www.boost.org/doc/libs/1_36_0/more/getting_started/index.html">Boost website version of this Getting Started guide</a> will
|
|
|
-have undated information on installers as they become available,
|
|
|
-or see <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041">Boost downloads</a> or the <a class="reference external" href="http://www.boostpro.com/products/free">installer</a> provided by <a class="reference external" href="http://www.boostpro.com">BoostPro Computing</a>. We especially recommend using
|
|
|
-an installer if you use Microsoft Visual Studio, because the installer can download and install
|
|
|
-precompiled library binaries, saving you the trouble of building
|
|
|
-them yourself. To complete this tutorial, you'll need to at least
|
|
|
-install the <a class="reference external" href="../../libs/regex/index.html">Boost.Regex</a> binaries when given the option.</p>
|
|
|
+<p>The easiest way to get a copy of Boost is to use an installer. The
|
|
|
+<a class="reference external" href="http://www.boost.org/doc/libs/1_36_0/more/getting_started/index.html">Boost website version of this Getting Started guide</a> will have
|
|
|
+undated information on installers as they become available, or see
|
|
|
+<a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041">Boost downloads</a> or the <a class="reference external" href="http://www.boostpro.com/products/free">installer</a> provided by <a class="reference external" href="http://www.boostpro.com">BoostPro
|
|
|
+Computing</a>. We especially recommend using an installer if you use
|
|
|
+Microsoft Visual Studio, because the installer can download and
|
|
|
+install precompiled library binaries, saving you the trouble of
|
|
|
+building them yourself. To complete this tutorial, you'll need to at
|
|
|
+least install the Static Multithreaded variants of the <a class="reference external" href="../../libs/regex/index.html">Boost.Regex</a>
|
|
|
+binaries when given the option.</p>
|
|
|
<p>If you're using an earlier version of Visual Studio or some other
|
|
|
compiler, or if you prefer to build everything yourself, you can
|
|
|
download <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041"><tt class="docutils literal"><span class="pre">boost_1_37_0</span></tt><tt class="docutils literal"><span class="pre">.7z</span></tt></a> or <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041"><tt class="docutils literal"><span class="pre">boost_1_37_0</span></tt><tt class="docutils literal"><span class="pre">.zip</span></tt></a> and unpack it to install a complete Boost
|
|
|
@@ -341,7 +343,7 @@ correctly identified the <a class="reference internal" href="#boost-root-directo
|
|
|
you'll need to acquire library binaries.</p>
|
|
|
<div class="section" id="install-visual-studio-binaries">
|
|
|
<h2><a class="toc-backref" href="#id34">5.1 Install Visual Studio Binaries</a></h2>
|
|
|
-<p>The installers will download and
|
|
|
+<p>The installers supplied by BoostPro Computing will download and
|
|
|
install pre-compiled binaries into the <tt class="docutils literal"><span class="pre">lib\</span></tt> subdirectory of the
|
|
|
boost root, typically <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_37_0</span></tt><tt class="docutils literal"><span class="pre">\lib\</span></tt>. If you installed
|
|
|
all variants of the <a class="reference external" href="../../libs/regex/index.html">Boost.Regex</a> binary, you're done with this
|
|
|
@@ -366,9 +368,12 @@ installing software. To use it, you'll need an executable called
|
|
|
<p><tt class="docutils literal"><span class="pre">bjam</span></tt> is the <a class="reference internal" href="#command-line-tool">command-line tool</a> that drives the Boost Build
|
|
|
system. To build Boost binaries, you'll invoke <tt class="docutils literal"><span class="pre">bjam</span></tt> from the
|
|
|
Boost root.</p>
|
|
|
-<p>Boost provides <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941">pre-compiled <tt class="docutils literal"><span class="pre">bjam</span></tt> executables</a> for a variety of platforms.
|
|
|
+<p>We suggest you <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941">download a pre-built <tt class="docutils literal"><span class="pre">bjam</span></tt> executable</a> for your platform.
|
|
|
Alternatively, you can build <tt class="docutils literal"><span class="pre">bjam</span></tt> yourself using <a class="reference external" href="../../doc/html/jam/building.html">these
|
|
|
instructions</a>.</p>
|
|
|
+<p>Move the <tt class="docutils literal"><span class="pre">bjam</span></tt> executable into a directory in your PATH. You can
|
|
|
+see the list of directories in your PATH, separated by semicolons,
|
|
|
+by typing “<tt class="docutils literal"><span class="pre">PATH</span></tt>” at the command prompt.</p>
|
|
|
</div>
|
|
|
<div class="section" id="identify-your-toolset">
|
|
|
<span id="toolset-name"></span><span id="toolset"></span><h3><a class="toc-backref" href="#id37">5.2.2 Identify Your Toolset</a></h3>
|
|
|
@@ -488,25 +493,21 @@ purpose in your current working directory.</p>
|
|
|
<p>Change your current directory to the Boost root directory and
|
|
|
invoke <tt class="docutils literal"><span class="pre">bjam</span></tt> as follows:</p>
|
|
|
<pre class="literal-block">
|
|
|
-bjam <strong>--build-dir=</strong><a class="reference internal" href="#id12"><em>build-directory</em></a> <strong>--toolset=</strong><a class="reference internal" href="#toolset-name"><em>toolset-name</em></a> <em>[</em><strong>--build-type=complete</strong><em>]</em> stage
|
|
|
+bjam <strong>--build-dir=</strong><a class="reference internal" href="#id12"><em>build-directory</em></a> <strong>--toolset=</strong><a class="reference internal" href="#toolset-name"><em>toolset-name</em></a> <strong>--build-type=complete</strong> stage
|
|
|
</pre>
|
|
|
<p>For example, your session might look like this:<a class="footnote-reference" href="#continuation" id="id13"><sup>4</sup></a></p>
|
|
|
<pre class="literal-block">
|
|
|
C:\WINDOWS> cd <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_37_0</span></tt>
|
|
|
<tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_37_0</span></tt>> bjam <strong>^</strong>
|
|
|
More? <strong>--build-dir=</strong>"C:\Documents and Settings\dave\build-boost" <strong>^</strong>
|
|
|
-More? <strong>--toolset=</strong>msvc stage
|
|
|
+More? <strong>--toolset=</strong> <strong>--build-type=complete</strong> msvc stage
|
|
|
</pre>
|
|
|
<p>Be sure to read <a class="reference internal" href="#continuation">this note</a> about the appearance of <tt class="docutils literal"><span class="pre">^</span></tt>,
|
|
|
<tt class="docutils literal"><span class="pre">More?</span></tt> and quotation marks (<tt class="docutils literal"><span class="pre">"</span></tt>) in that line.</p>
|
|
|
-<p>The above example session will build static and shared non-debug multi-threaded
|
|
|
-variations of the libraries. To build all variations:</p>
|
|
|
-<pre class="literal-block">
|
|
|
-C:\WINDOWS> cd <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_37_0</span></tt>
|
|
|
-<tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_37_0</span></tt>> bjam <strong>^</strong>
|
|
|
-More? <strong>--build-dir=</strong>"C:\Documents and Settings\dave\build-boost" <strong>^</strong>
|
|
|
-More? <strong>--toolset=</strong>msvc <strong>--build-type=complete</strong> stage
|
|
|
-</pre>
|
|
|
+<p>The option “<strong>--build-type=complete</strong>” causes <tt class="docutils literal"><span class="pre">bjam</span></tt> to build
|
|
|
+all supported variants of the libraries. For instructions on how to
|
|
|
+build only specific variants, please ask on the <a class="reference external" href="http://www.boost.org/more/mailing_lists.htm#jamboost">Boost.Build mailing
|
|
|
+list</a>.</p>
|
|
|
<!-- Copyright David Abrahams 2006. Distributed under the Boost -->
|
|
|
<!-- Software License, Version 1.0. (See accompanying -->
|
|
|
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
|
|
@@ -531,6 +532,13 @@ be interested in:</p>
|
|
|
<li>choosing a specific build variant by adding <tt class="docutils literal"><span class="pre">release</span></tt> or
|
|
|
<tt class="docutils literal"><span class="pre">debug</span></tt> to the command line.</li>
|
|
|
</ul>
|
|
|
+<div class="note">
|
|
|
+<p class="first admonition-title">Note</p>
|
|
|
+<p class="last">Boost.Build can produce a great deal of output, which can
|
|
|
+make it easy to miss problems. If you want to make sure
|
|
|
+everything is went well, you might redirect the output into a
|
|
|
+file by appending “``>build.log 2>&1``” to your command line.</p>
|
|
|
+</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="section" id="expected-build-output">
|