[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 " ">
|
---|
[9873d1ea] | 9 | <!ENTITY boost-md5sum "da07ca30dd1c0d1fdedbd487efee01bd">
|
---|
| 10 | <!ENTITY boost-size "105 MB">
|
---|
[84fe2e9] | 11 | <!ENTITY boost-buildsize "1.1 GB (175 MB installed)">
|
---|
[9873d1ea] | 12 | <!ENTITY boost-time "1.8 SBU (Using parallelism=4; add 1.2 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 |
|
---|
[87351a9] | 39 | &lfs10_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>
|
---|
[9873d1ea] | 74 | <!--
|
---|
[9214104] | 75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 76 | <itemizedlist spacing="compact">
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>
|
---|
| 79 | Recommended patch, required to build <xref linkend="libreoffice"/>:
|
---|
| 80 | <ulink url="&patch-root;/boost-&boost-version;-gcc_10-1.patch"/>
|
---|
| 81 | </para>
|
---|
| 82 | </listitem>
|
---|
| 83 | </itemizedlist>
|
---|
[9873d1ea] | 84 | -->
|
---|
[9214104] | 85 |
|
---|
[355495ce] | 86 | <bridgehead renderas="sect3">Boost Dependencies</bridgehead>
|
---|
[47969a6] | 87 |
|
---|
[d89ea78] | 88 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 89 | <para role="recommended">
|
---|
| 90 | <xref linkend="which"/>
|
---|
| 91 | </para>
|
---|
| 92 |
|
---|
[47969a6] | 93 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[f7fbe1f7] | 94 | <para role="optional">
|
---|
[39060e91] | 95 | <xref linkend="icu"/> and
|
---|
[31b8fd26] | 96 | <ulink url="https://www.open-mpi.org/">Open MPI</ulink>
|
---|
[47969a6] | 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <para condition="html" role="usernotes">User Notes:
|
---|
[355495ce] | 100 | <ulink url="&blfs-wiki;/boost"/>
|
---|
| 101 | </para>
|
---|
[47969a6] | 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | <sect2 role="installation">
|
---|
| 105 | <title>Installation of Boost</title>
|
---|
[9873d1ea] | 106 | <!--
|
---|
[1015ec3] | 107 | <para>
|
---|
[9214104] | 108 | First, apply a patch wwhich allows to build libreoffice with GCC 10
|
---|
| 109 | and later:
|
---|
[1015ec3] | 110 | </para>
|
---|
| 111 |
|
---|
[9214104] | 112 | <screen><userinput>patch -Np1 -i ../boost-&boost-version;-gcc_10-1.patch</userinput></screen>
|
---|
[9873d1ea] | 113 | -->
|
---|
[355495ce] | 114 | <para>
|
---|
[d5e43119] | 115 | This package can be built with several jobs running in parallel. In
|
---|
| 116 | the instructions below, <parameter><N></parameter> stands for the
|
---|
| 117 | number of jobs. Install <application>Boost</application> by running the
|
---|
| 118 | following commands:
|
---|
[355495ce] | 119 | </para>
|
---|
[47969a6] | 120 |
|
---|
[128b5380] | 121 |
|
---|
[9873d1ea] | 122 | <screen><userinput>./bootstrap.sh --prefix=/usr --with-python=python3 &&
|
---|
[d5e43119] | 123 | ./b2 stage -j<replaceable><N></replaceable> threading=multi link=shared</userinput></screen>
|
---|
[a7f550d8] | 124 |
|
---|
| 125 | <para>
|
---|
[6ea9f5b3] | 126 | To run the Boost.Build's regression test,
|
---|
| 127 | issue <command>pushd tools/build/test;
|
---|
[39060e91] | 128 | python3 test_all.py; popd</command>.
|
---|
[84fe2e9] | 129 | All 153 tests should pass.
|
---|
[684ab13] | 130 | </para>
|
---|
| 131 |
|
---|
| 132 | <para>
|
---|
| 133 | To run every library's regression tests, issue <command>pushd status;
|
---|
[40cc482] | 134 | ../b2; popd</command>. A few tests may fail. They take a very long time
|
---|
| 135 | (over 119 SBU at -j4) and use a very large amount of disk space
|
---|
| 136 | (46 GB). You should use the <parameter>-jN</parameter> switch to
|
---|
[684ab13] | 137 | speed them up.
|
---|
[a7f550d8] | 138 | </para>
|
---|
| 139 |
|
---|
| 140 | <para>
|
---|
| 141 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
[4adf827] | 144 | <!-- dev note: ./b2 - -prefix=<DESTDIR>/usr install threading=multi link=shared -->
|
---|
| 145 |
|
---|
[9873d1ea] | 146 | <screen role="root"><userinput>./b2 install threading=multi link=shared <!-- &&
|
---|
| 147 | ln -svf detail/sha1.hpp /usr/include/boost/uuid/sha1.hpp--></userinput></screen>
|
---|
[47969a6] | 148 |
|
---|
| 149 | </sect2>
|
---|
[54bed77b] | 150 |
|
---|
[47969a6] | 151 | <sect2 role="commands">
|
---|
| 152 | <title>Command Explanations</title>
|
---|
| 153 |
|
---|
[355495ce] | 154 | <para>
|
---|
| 155 | <parameter>threading=multi</parameter>: This parameter ensures that
|
---|
| 156 | <application>Boost</application> is built with multithreading support.
|
---|
| 157 | </para>
|
---|
| 158 |
|
---|
| 159 | <para>
|
---|
[155d1f80] | 160 | <parameter>link=shared</parameter>: This parameter ensures that only
|
---|
| 161 | shared libraries are created, except for libboost_exception and
|
---|
| 162 | libboost_test_exec_monitor which are created as static. Most people
|
---|
[154b62f8] | 163 | will not need the static libraries, and most programs using
|
---|
[ea0c1c2] | 164 | <application>Boost</application> only use the headers. Omit
|
---|
[155d1f80] | 165 | this parameter if you do need static libraries.
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
[40cc482] | 168 | <para>
|
---|
| 169 | <parameter>ln -svf detail/sha1.hpp ...</parameter>: The
|
---|
| 170 | <filename>uuid/sha1.hpp</filename> used to be a regular header, but by
|
---|
| 171 | boost_1_66_0 it had been changed to load the similar
|
---|
| 172 | <filename>detail/sha1.hpp</filename> header, with a message that it had
|
---|
| 173 | been deprecated. It has now been removed, but not every package which uses
|
---|
| 174 | it has been changed. An example is one of the libraries downloaded as a
|
---|
| 175 | git version by libreoffice. The symlink enables this and similar packages
|
---|
| 176 | to build.
|
---|
| 177 | </para>
|
---|
| 178 |
|
---|
[155d1f80] | 179 | <para>
|
---|
| 180 | <option>-jN</option>: This switch may be added to the
|
---|
| 181 | <command>b2</command> command lines, to run up to N processes in
|
---|
| 182 | parallel.
|
---|
[355495ce] | 183 | </para>
|
---|
[47969a6] | 184 |
|
---|
[1015ec3] | 185 | <para>
|
---|
[88499366] | 186 | <option>--with-python=python3</option>: Add this switch to the <command>
|
---|
| 187 | bootstrap</command> command, if you want Boost
|
---|
[b6659065] | 188 | to use Python3 instead of Python2. Using Python3 is known to cause the
|
---|
[52f074c] | 189 | installation to fail on some systems.
|
---|
[1015ec3] | 190 | </para>
|
---|
| 191 |
|
---|
[47969a6] | 192 | </sect2>
|
---|
[54bed77b] | 193 |
|
---|
[47969a6] | 194 | <sect2 role="content">
|
---|
| 195 | <title>Contents</title>
|
---|
| 196 |
|
---|
| 197 | <segmentedlist>
|
---|
[c3c56b2] | 198 | <segtitle>Installed Programs</segtitle>
|
---|
[47969a6] | 199 | <segtitle>Installed Libraries</segtitle>
|
---|
| 200 | <segtitle>Installed Directory</segtitle>
|
---|
| 201 |
|
---|
| 202 | <seglistitem>
|
---|
[c3c56b2] | 203 | <seg>
|
---|
| 204 | None
|
---|
| 205 | </seg>
|
---|
[355495ce] | 206 | <seg>
|
---|
[9873d1ea] | 207 | libboost_atomic.so, libboost_chrono.so, libboost_container.so,
|
---|
| 208 | libboost_context.so, libboost_contract.so, libboost_coroutine.so,
|
---|
[84fe2e9] | 209 | libboost_date_time.so, libboost_exception.a, libboost_fiber.so,
|
---|
[88499366] | 210 | libboost_filesystem.so,
|
---|
[31b8fd26] | 211 | libboost_graph.so, libboost_iostreams.so, libboost_locale.so,
|
---|
| 212 | libboost_log_setup.so, libboost_log.so, libboost_math_c99.so,
|
---|
| 213 | libboost_math_c99f.so, libboost_math_c99l.so, libboost_math_tr1.so,
|
---|
| 214 | libboost_math_tr1f.so, libboost_math_tr1l.so,
|
---|
[9873d1ea] | 215 | libboost_nowide.so,
|
---|
[31b8fd26] | 216 | libboost_prg_exec_monitor.so, libboost_program_options.so,
|
---|
[9873d1ea] | 217 | libboost_python38.so, libboost_random.so,
|
---|
[84fe2e9] | 218 | libboost_regex.so, libboost_serialization.so,
|
---|
[fa30d84] | 219 | libboost_stacktrace_addr2line.so, libboost_stacktrace_basic.so,
|
---|
[84fe2e9] | 220 | libboost_stacktrace_noop.so, libboost_system.so,
|
---|
| 221 | libboost_test_exec_monitor.a, libboost_thread.so, libboost_timer.so,
|
---|
| 222 | libboost_type_erasure.so, libboost_unit_test_framework.so,
|
---|
[31b8fd26] | 223 | libboost_wave.so, and libboost_wserialization.so
|
---|
[355495ce] | 224 | </seg>
|
---|
| 225 | <seg>
|
---|
| 226 | /usr/include/boost
|
---|
| 227 | </seg>
|
---|
[47969a6] | 228 | </seglistitem>
|
---|
| 229 | </segmentedlist>
|
---|
[355495ce] | 230 |
|
---|
[47969a6] | 231 | </sect2>
|
---|
| 232 |
|
---|
| 233 | </sect1>
|
---|