diff --git a/getting_started/detail/build-from-source-head.rst b/getting_started/detail/build-from-source-head.rst index 276f6f5..f031648 100644 --- a/getting_started/detail/build-from-source-head.rst +++ b/getting_started/detail/build-from-source-head.rst @@ -6,7 +6,7 @@ Boost.Build_ is a text-based system for developing, testing, and installing software. To use it, you'll need an executable called ``bjam``. -.. |precompiled-bjam| replace:: pre-compiled ``bjam`` executables +.. |precompiled-bjam| replace:: download a pre-built ``bjam`` executable .. _precompiled-bjam: http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941 @@ -22,12 +22,15 @@ Get ``bjam`` system. To build Boost binaries, you'll invoke ``bjam`` from the Boost root. -Boost provides |precompiled-bjam|_ for a variety of platforms. +We suggest you |precompiled-bjam|_ for your platform. Alternatively, you can build ``bjam`` yourself using `these instructions`__. __ `building bjam`_ +Move the ``bjam`` executable into a directory in your PATH. You can +see the list of directories in your PATH, separated by |pathsep|\ s, +by typing “\ |path|\ ” at the command prompt. .. _toolset: .. _toolset-name: @@ -123,4 +126,4 @@ invoke ``bjam`` as follows: .. parsed-literal:: - bjam **--build-dir=**\ |build-directory|_ **--toolset=**\ |toolset-name|_ *[*\ **--build-type=complete**\ *]* stage + bjam **--build-dir=**\ |build-directory|_ **--toolset=**\ |toolset-name|_ |build-type-complete| stage diff --git a/getting_started/detail/build-from-source-tail.rst b/getting_started/detail/build-from-source-tail.rst index 5a07b71..c8377ad 100644 --- a/getting_started/detail/build-from-source-tail.rst +++ b/getting_started/detail/build-from-source-tail.rst @@ -23,6 +23,11 @@ be interested in: * choosing a specific build variant by adding ``release`` or ``debug`` to the command line. +.. Note:: 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. + Expected Build Output --------------------- diff --git a/getting_started/detail/common-unix.rst b/getting_started/detail/common-unix.rst index c1cdf49..09ad5d8 100644 --- a/getting_started/detail/common-unix.rst +++ b/getting_started/detail/common-unix.rst @@ -20,5 +20,8 @@ .. |command-line tool| replace:: command-line tool +.. |pathsep| replace:: colon + +.. |path| replace:: ``echo $PATH`` .. include:: common.rst diff --git a/getting_started/detail/common-windows.rst b/getting_started/detail/common-windows.rst index fa0102c..75ba004 100644 --- a/getting_started/detail/common-windows.rst +++ b/getting_started/detail/common-windows.rst @@ -31,4 +31,8 @@ .. |command-line tool| replace:: `command-line tool`_ +.. |pathsep| replace:: semicolon + +.. |path| replace:: ``PATH`` + .. include:: common.rst diff --git a/getting_started/index.html b/getting_started/index.html index c8b8021..86a98dd 100644 --- a/getting_started/index.html +++ b/getting_started/index.html @@ -3,7 +3,7 @@
- +bjam is the command-line tool that drives the Boost Build system. To build Boost binaries, you'll invoke bjam from the Boost root.
-Boost provides pre-compiled bjam executables for a variety of platforms. +
We suggest you download a pre-built bjam executable for your platform. Alternatively, you can build bjam yourself using these instructions.
+Move the bjam executable into a directory in your PATH. You can +see the list of directories in your PATH, separated by colons, +by typing “echo $PATH” at the command prompt.
Change your current directory to the Boost root directory and invoke bjam as follows:
-bjam --build-dir=build-directory --toolset=toolset-name [--build-type=complete] stage +bjam --build-dir=build-directory --toolset=toolset-name stage
For example, your session might look like this:
$ cd ~/boost_1_37_0
$ bjam --build-dir=/tmp/build-boost --toolset=gcc stage
-That will build static and shared non-debug multi-threaded variations of the libraries. To build all variations:
-
-$ cd ~/boost_1_37_0
-$ bjam --build-dir=/tmp/build-boost --toolset=gcc --build-type=complete stage
-
+That will build static and shared non-debug multi-threaded variants of the libraries. To build all variants, pass the additional option, “``--build-type=complete``”.
@@ -457,6 +456,13 @@ be interested in:Note
+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.
+The easiest way to get a copy of Boost is to use an installer. -The Boost website version of this Getting Started guide will -have undated information on installers as they become available, -or see Boost downloads or the installer provided by BoostPro Computing. 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 Boost.Regex binaries when given the option.
+The easiest way to get a copy of Boost is to use an installer. The +Boost website version of this Getting Started guide will have +undated information on installers as they become available, or see +Boost downloads or the installer provided by BoostPro +Computing. 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 Boost.Regex +binaries when given the option.
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 boost_1_37_0.7z or boost_1_37_0.zip and unpack it to install a complete Boost
@@ -341,7 +343,7 @@ correctly identified the
The installers will download and
+ The installers supplied by BoostPro Computing will download and
install pre-compiled binaries into the lib\ subdirectory of the
boost root, typically C:\Program Files\boost\boost_1_37_0\lib\. If you installed
all variants of the Boost.Regex binary, you're done with this
@@ -366,9 +368,12 @@ installing software. To use it, you'll need an executable called
bjam is the command-line tool that drives the Boost Build
system. To build Boost binaries, you'll invoke bjam from the
Boost root. Boost provides pre-compiled bjam executables for a variety of platforms.
+ We suggest you download a pre-built bjam executable for your platform.
Alternatively, you can build bjam yourself using these
instructions. Move the bjam executable into a directory in your PATH. You can
+see the list of directories in your PATH, separated by semicolons,
+by typing “PATH” at the command prompt.5.1 Install Visual Studio Binaries
-
Change your current directory to the Boost root directory and invoke bjam as follows:
-bjam --build-dir=build-directory --toolset=toolset-name [--build-type=complete] stage +bjam --build-dir=build-directory --toolset=toolset-name --build-type=complete stage
For example, your session might look like this:4
C:\WINDOWS> cd C:\Program Files\boost\boost_1_37_0 C:\Program Files\boost\boost_1_37_0> bjam ^ More? --build-dir="C:\Documents and Settings\dave\build-boost" ^ -More? --toolset=msvc stage +More? --toolset= --build-type=complete msvc stage
Be sure to read this note about the appearance of ^, More? and quotation marks (") in that line.
-The above example session will build static and shared non-debug multi-threaded -variations of the libraries. To build all variations:
--C:\WINDOWS> cd C:\Program Files\boost\boost_1_37_0 -C:\Program Files\boost\boost_1_37_0> bjam ^ -More? --build-dir="C:\Documents and Settings\dave\build-boost" ^ -More? --toolset=msvc --build-type=complete stage -+
The option “--build-type=complete” causes bjam to build +all supported variants of the libraries. For instructions on how to +build only specific variants, please ask on the Boost.Build mailing +list.
@@ -531,6 +532,13 @@ be interested in:Note
+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.
+