1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY boost-download-http "&sourceforge-repo;/boost/boost_&boost-dl-version;.tar.bz2">
|
---|
8 | <!ENTITY boost-download-ftp " ">
|
---|
9 | <!ENTITY boost-md5sum "b8839650e61e9c1c0a89f371dd475546">
|
---|
10 | <!ENTITY boost-size "68 MB">
|
---|
11 | <!ENTITY boost-buildsize "884 MB">
|
---|
12 | <!ENTITY boost-time "3.9 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="boost" xreflabel="Boost-&boost-version;">
|
---|
16 | <?dbhtml filename="boost.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>Boost-&boost-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="boost">
|
---|
26 | <primary sortas="a-Boost">Boost</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to Boost</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | <application>Boost</application> provides a set of free peer-reviewed
|
---|
34 | portable C++ source libraries. It includes libraries for linear algebra,
|
---|
35 | pseudorandom number generation, multithreading, image processing, regular
|
---|
36 | expressions and unit testing.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | &lfs77_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&boost-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&boost-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &boost-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &boost-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &boost-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &boost-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect3">Boost Dependencies</bridgehead>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
78 | <para role="optional">
|
---|
79 | <xref linkend="icu"/>,
|
---|
80 | <xref linkend="python2"/> and
|
---|
81 | <ulink url="http://www.open-mpi.org/">OpenMPI</ulink>
|
---|
82 | </para>
|
---|
83 |
|
---|
84 | <para condition="html" role="usernotes">User Notes:
|
---|
85 | <ulink url="&blfs-wiki;/boost"/>
|
---|
86 | </para>
|
---|
87 | </sect2>
|
---|
88 |
|
---|
89 | <sect2 role="installation">
|
---|
90 | <title>Installation of Boost</title>
|
---|
91 |
|
---|
92 | <para>
|
---|
93 | Install <application>Boost</application> by running the following
|
---|
94 | commands:
|
---|
95 | </para>
|
---|
96 |
|
---|
97 | <screen><userinput>./bootstrap.sh --prefix=/usr &&
|
---|
98 | ./b2 stage threading=multi link=shared</userinput></screen>
|
---|
99 |
|
---|
100 | <para>
|
---|
101 | To run the Boost.Build's regression test (<xref linkend="python2"/>
|
---|
102 | required), issue <command>pushd tools/build/test; python test_all.py;
|
---|
103 | popd</command>.
|
---|
104 | </para>
|
---|
105 |
|
---|
106 | <para>
|
---|
107 | To run regression tests for every library, issue <command>pushd status;
|
---|
108 | ../b2; popd</command>. A few tests may fail. They take a long time
|
---|
109 | (more than 120 SBU) and use up to 40 GB of disk space. You can use the
|
---|
110 | <parameter>-jN</parameter> parameter to speed them up.
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <para>
|
---|
114 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
115 | </para>
|
---|
116 |
|
---|
117 | <!-- dev note: ./b2 - -prefix=<DESTDIR>/usr install threading=multi link=shared -->
|
---|
118 |
|
---|
119 | <screen role="root"><userinput>./b2 install threading=multi link=shared</userinput></screen>
|
---|
120 |
|
---|
121 | </sect2>
|
---|
122 |
|
---|
123 | <sect2 role="commands">
|
---|
124 | <title>Command Explanations</title>
|
---|
125 |
|
---|
126 | <para>
|
---|
127 | <parameter>threading=multi</parameter>: This parameter ensures that
|
---|
128 | <application>Boost</application> is built with multithreading support.
|
---|
129 | </para>
|
---|
130 |
|
---|
131 | <para>
|
---|
132 | <parameter>link=shared</parameter>: This parameter ensures that only
|
---|
133 | shared libraries are created, except for libboost_exception and
|
---|
134 | libboost_test_exec_monitor which are created as static. Most people
|
---|
135 | will not need the static libraries since most programs using
|
---|
136 | <application>Boost</application> only use the headers. Omit
|
---|
137 | this parameter if you do need static libraries.
|
---|
138 | </para>
|
---|
139 |
|
---|
140 | <para>
|
---|
141 | <option>-jN</option>: This parameter may be added to the
|
---|
142 | <command>b2</command> command lines so it can use up to N
|
---|
143 | processes in parallel.
|
---|
144 | </para>
|
---|
145 |
|
---|
146 | </sect2>
|
---|
147 |
|
---|
148 | <sect2 role="content">
|
---|
149 | <title>Contents</title>
|
---|
150 |
|
---|
151 | <segmentedlist>
|
---|
152 | <segtitle>Installed Programs</segtitle>
|
---|
153 | <segtitle>Installed Libraries</segtitle>
|
---|
154 | <segtitle>Installed Directory</segtitle>
|
---|
155 |
|
---|
156 | <seglistitem>
|
---|
157 | <seg>
|
---|
158 | None
|
---|
159 | </seg>
|
---|
160 | <seg>
|
---|
161 | libboost_atomic.so, libboost_chrono.so, libboost_container.so,
|
---|
162 | libboost_context.so, libboost_coroutine.so, libboost_date_time.so,
|
---|
163 | libboost_exception.a, libboost_filesystem.so, libboost_graph.so,
|
---|
164 | libboost_iostreams.so, libboost_locale.so, libboost_log_setup.so,
|
---|
165 | libboost_log.so, libboost_math_c99.so, libboost_math_c99f.so,
|
---|
166 | libboost_math_c99l.so, libboost_math_tr1.so, libboost_math_tr1f.so,
|
---|
167 | libboost_math_tr1l.so, libboost_prg_exec_monitor.so,
|
---|
168 | libboost_program_options.so, libboost_python.so, libboost_random.so,
|
---|
169 | libboost_regex.so, libboost_serialization.so, libboost_signals.so,
|
---|
170 | libboost_system.so, libboost_test_exec_monitor.a, libboost_thread.so,
|
---|
171 | libboost_timer.so, libboost_unit_test_framework.so, libboost_wave.so,
|
---|
172 | and libboost_wserialization.so
|
---|
173 | </seg>
|
---|
174 | <seg>
|
---|
175 | /usr/include/boost
|
---|
176 | </seg>
|
---|
177 | </seglistitem>
|
---|
178 | </segmentedlist>
|
---|
179 |
|
---|
180 | </sect2>
|
---|
181 |
|
---|
182 | </sect1>
|
---|