[47969a6] | 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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY boost-download-http "https://dl.bintray.com/boostorg/release/&boost-version;/source/boost_&boost-dl-version;.tar.bz2">
|
---|
[47969a6] | 8 | <!ENTITY boost-download-ftp " ">
|
---|
[059e4c3] | 9 | <!ENTITY boost-md5sum "4cdf9b5c2dc01fb2b7b733d5af30e558">
|
---|
| 10 | <!ENTITY boost-size "95 MB">
|
---|
| 11 | <!ENTITY boost-buildsize "943 MB (168 MB installed)">
|
---|
| 12 | <!ENTITY boost-time "1.5 SBU (Using parallelism=4; add 1.1 SBU for tests)">
|
---|
[47969a6] | 13 | ]>
|
---|
| 14 |
|
---|
[355495ce] | 15 | <sect1 id="boost" xreflabel="Boost-&boost-version;">
|
---|
[47969a6] | 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">
|
---|
[355495ce] | 26 | <primary sortas="a-Boost">Boost</primary>
|
---|
[47969a6] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Boost</title>
|
---|
| 31 |
|
---|
[355495ce] | 32 | <para>
|
---|
[fa29663] | 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.
|
---|
[355495ce] | 37 | </para>
|
---|
[47969a6] | 38 |
|
---|
[3fcb10e1] | 39 | &lfs90_checked;
|
---|
[47969a6] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[355495ce] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&boost-download-http;"/>
|
---|
| 46 | </para>
|
---|
[47969a6] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[355495ce] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&boost-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[47969a6] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[355495ce] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &boost-md5sum;
|
---|
| 56 | </para>
|
---|
[47969a6] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[355495ce] | 59 | <para>
|
---|
| 60 | Download size: &boost-size;
|
---|
| 61 | </para>
|
---|
[47969a6] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[355495ce] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &boost-buildsize;
|
---|
| 66 | </para>
|
---|
[47969a6] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[355495ce] | 69 | <para>
|
---|
| 70 | Estimated build time: &boost-time;
|
---|
| 71 | </para>
|
---|
[47969a6] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
[355495ce] | 75 | <bridgehead renderas="sect3">Boost Dependencies</bridgehead>
|
---|
[47969a6] | 76 |
|
---|
[d89ea78] | 77 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 78 | <para role="recommended">
|
---|
| 79 | <xref linkend="which"/>
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
[47969a6] | 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[f7fbe1f7] | 83 | <para role="optional">
|
---|
[31b8fd26] | 84 | <xref linkend="icu"/>,
|
---|
[60ddbaf] | 85 | <xref linkend="python2"/>, and
|
---|
[31b8fd26] | 86 | <ulink url="https://www.open-mpi.org/">Open MPI</ulink>
|
---|
[47969a6] | 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <para condition="html" role="usernotes">User Notes:
|
---|
[355495ce] | 90 | <ulink url="&blfs-wiki;/boost"/>
|
---|
| 91 | </para>
|
---|
[47969a6] | 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
| 95 | <title>Installation of Boost</title>
|
---|
[b65f260d] | 96 | <!--
|
---|
[1015ec3] | 97 | <para>
|
---|
[c2057016] | 98 | First, fix a bug with the header files path, when Python3 is used:
|
---|
[1015ec3] | 99 | </para>
|
---|
| 100 |
|
---|
[a88ee2e] | 101 | <screen><userinput>sed -e '/using python/ s@;@: /usr/include/python${PYTHON_VERSION/3*/${PYTHON_VERSION}m} ;@' \
|
---|
[c2057016] | 102 | -i bootstrap.sh</userinput></screen>
|
---|
[b65f260d] | 103 | -->
|
---|
[355495ce] | 104 | <para>
|
---|
[d5e43119] | 105 | This package can be built with several jobs running in parallel. In
|
---|
| 106 | the instructions below, <parameter><N></parameter> stands for the
|
---|
| 107 | number of jobs. Install <application>Boost</application> by running the
|
---|
| 108 | following commands:
|
---|
[355495ce] | 109 | </para>
|
---|
[47969a6] | 110 |
|
---|
[128b5380] | 111 |
|
---|
[88499366] | 112 | <screen><userinput>./bootstrap.sh --prefix=/usr &&
|
---|
[d5e43119] | 113 | ./b2 stage -j<replaceable><N></replaceable> threading=multi link=shared</userinput></screen>
|
---|
[a7f550d8] | 114 |
|
---|
| 115 | <para>
|
---|
[40cc482] | 116 | To run the Boost.Build's regression test, <xref linkend="python2"/>
|
---|
| 117 | is required.
|
---|
[4801ff50] | 118 | Run the tests with: issue <command>pushd tools/build/test;
|
---|
[b65f260d] | 119 | python test_all.py; popd</command>.
|
---|
[f1ae36ef] | 120 | All 152 tests should pass.
|
---|
[684ab13] | 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <para>
|
---|
| 124 | To run every library's regression tests, issue <command>pushd status;
|
---|
[40cc482] | 125 | ../b2; popd</command>. A few tests may fail. They take a very long time
|
---|
| 126 | (over 119 SBU at -j4) and use a very large amount of disk space
|
---|
| 127 | (46 GB). You should use the <parameter>-jN</parameter> switch to
|
---|
[684ab13] | 128 | speed them up.
|
---|
[a7f550d8] | 129 | </para>
|
---|
| 130 |
|
---|
| 131 | <para>
|
---|
| 132 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
[4adf827] | 135 | <!-- dev note: ./b2 - -prefix=<DESTDIR>/usr install threading=multi link=shared -->
|
---|
| 136 |
|
---|
[40cc482] | 137 | <screen role="root"><userinput>./b2 install threading=multi link=shared &&
|
---|
| 138 | ln -svf detail/sha1.hpp /usr/include/boost/uuid/sha1.hpp</userinput></screen>
|
---|
[47969a6] | 139 |
|
---|
| 140 | </sect2>
|
---|
[54bed77b] | 141 |
|
---|
[47969a6] | 142 | <sect2 role="commands">
|
---|
| 143 | <title>Command Explanations</title>
|
---|
| 144 |
|
---|
[355495ce] | 145 | <para>
|
---|
| 146 | <parameter>threading=multi</parameter>: This parameter ensures that
|
---|
| 147 | <application>Boost</application> is built with multithreading support.
|
---|
| 148 | </para>
|
---|
| 149 |
|
---|
| 150 | <para>
|
---|
[155d1f80] | 151 | <parameter>link=shared</parameter>: This parameter ensures that only
|
---|
| 152 | shared libraries are created, except for libboost_exception and
|
---|
| 153 | libboost_test_exec_monitor which are created as static. Most people
|
---|
[154b62f8] | 154 | will not need the static libraries, and most programs using
|
---|
[ea0c1c2] | 155 | <application>Boost</application> only use the headers. Omit
|
---|
[155d1f80] | 156 | this parameter if you do need static libraries.
|
---|
| 157 | </para>
|
---|
| 158 |
|
---|
[40cc482] | 159 | <para>
|
---|
| 160 | <parameter>ln -svf detail/sha1.hpp ...</parameter>: The
|
---|
| 161 | <filename>uuid/sha1.hpp</filename> used to be a regular header, but by
|
---|
| 162 | boost_1_66_0 it had been changed to load the similar
|
---|
| 163 | <filename>detail/sha1.hpp</filename> header, with a message that it had
|
---|
| 164 | been deprecated. It has now been removed, but not every package which uses
|
---|
| 165 | it has been changed. An example is one of the libraries downloaded as a
|
---|
| 166 | git version by libreoffice. The symlink enables this and similar packages
|
---|
| 167 | to build.
|
---|
| 168 | </para>
|
---|
| 169 |
|
---|
[155d1f80] | 170 | <para>
|
---|
| 171 | <option>-jN</option>: This switch may be added to the
|
---|
| 172 | <command>b2</command> command lines, to run up to N processes in
|
---|
| 173 | parallel.
|
---|
[355495ce] | 174 | </para>
|
---|
[47969a6] | 175 |
|
---|
[1015ec3] | 176 | <para>
|
---|
[88499366] | 177 | <option>--with-python=python3</option>: Add this switch to the <command>
|
---|
| 178 | bootstrap</command> command, if you want Boost
|
---|
[b6659065] | 179 | to use Python3 instead of Python2. Using Python3 is known to cause the
|
---|
[52f074c] | 180 | installation to fail on some systems.
|
---|
[1015ec3] | 181 | </para>
|
---|
| 182 |
|
---|
[47969a6] | 183 | </sect2>
|
---|
[54bed77b] | 184 |
|
---|
[47969a6] | 185 | <sect2 role="content">
|
---|
| 186 | <title>Contents</title>
|
---|
| 187 |
|
---|
| 188 | <segmentedlist>
|
---|
[c3c56b2] | 189 | <segtitle>Installed Programs</segtitle>
|
---|
[47969a6] | 190 | <segtitle>Installed Libraries</segtitle>
|
---|
| 191 | <segtitle>Installed Directory</segtitle>
|
---|
| 192 |
|
---|
| 193 | <seglistitem>
|
---|
[c3c56b2] | 194 | <seg>
|
---|
| 195 | None
|
---|
| 196 | </seg>
|
---|
[355495ce] | 197 | <seg>
|
---|
[31b8fd26] | 198 | libboost_atomic.so, libboost_chrono.a, libboost_chrono.so,
|
---|
| 199 | libboost_container.so, libboost_context.so, libboost_coroutine.so,
|
---|
[88499366] | 200 | libboost_date_time.so, libboost_exception.a, libboost-fiber.so,
|
---|
| 201 | libboost_filesystem.so,
|
---|
[31b8fd26] | 202 | libboost_graph.so, libboost_iostreams.so, libboost_locale.so,
|
---|
| 203 | libboost_log_setup.so, libboost_log.so, libboost_math_c99.so,
|
---|
| 204 | libboost_math_c99f.so, libboost_math_c99l.so, libboost_math_tr1.so,
|
---|
| 205 | libboost_math_tr1f.so, libboost_math_tr1l.so,
|
---|
| 206 | libboost_prg_exec_monitor.so, libboost_program_options.so,
|
---|
[40cc482] | 207 | libboost_python27.so or libboost_python3.so, libboost_random.so,
|
---|
[514797f] | 208 | libboost_regex.so, libboost_serialization.so, libboost_signals.so,
|
---|
[fa30d84] | 209 | libboost_stacktrace_addr2line.so, libboost_stacktrace_basic.so,
|
---|
| 210 | libboost_stacktrace_noop.so,
|
---|
[514797f] | 211 | libboost_system.a, libboost_system.so, libboost_test_exec_monitor.a,
|
---|
| 212 | libboost_thread.so, libboost_timer.a, libboost_timer.so,
|
---|
[40cc482] | 213 | libboost_type_erasure.so,
|
---|
[fa30d84] | 214 | libboost_unit_test_framework.so,
|
---|
[31b8fd26] | 215 | libboost_wave.so, and libboost_wserialization.so
|
---|
[355495ce] | 216 | </seg>
|
---|
| 217 | <seg>
|
---|
| 218 | /usr/include/boost
|
---|
| 219 | </seg>
|
---|
[47969a6] | 220 | </seglistitem>
|
---|
| 221 | </segmentedlist>
|
---|
[355495ce] | 222 |
|
---|
[47969a6] | 223 | </sect2>
|
---|
| 224 |
|
---|
| 225 | </sect1>
|
---|