[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 |
|
---|
[5faa7c31] | 7 | <!ENTITY boost-download-http "https://boostorg.jfrog.io/artifactory/main/release/&boost-version;/source/boost_&boost-dl-version;.tar.bz2">
|
---|
[47969a6] | 8 | <!ENTITY boost-download-ftp " ">
|
---|
[b2651a58] | 9 | <!ENTITY boost-md5sum "3276c0637d1be8687740c550237ef999">
|
---|
| 10 | <!ENTITY boost-size "113 MB">
|
---|
| 11 | <!ENTITY boost-buildsize "1.1 GB (195 MB installed)">
|
---|
| 12 | <!ENTITY boost-time "1.4 SBU (Using parallelism=4; add 1.2 SBU for tests)">
|
---|
[47969a6] | 13 | ]>
|
---|
| 14 |
|
---|
[b2651a58] | 15 | <!-- Editors: Check test failures with python-3.11 -->
|
---|
| 16 |
|
---|
[355495ce] | 17 | <sect1 id="boost" xreflabel="Boost-&boost-version;">
|
---|
[47969a6] | 18 | <?dbhtml filename="boost.html"?>
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | <title>Boost-&boost-version;</title>
|
---|
| 22 |
|
---|
| 23 | <indexterm zone="boost">
|
---|
[355495ce] | 24 | <primary sortas="a-Boost">Boost</primary>
|
---|
[47969a6] | 25 | </indexterm>
|
---|
| 26 |
|
---|
| 27 | <sect2 role="package">
|
---|
| 28 | <title>Introduction to Boost</title>
|
---|
| 29 |
|
---|
[355495ce] | 30 | <para>
|
---|
[fa29663] | 31 | <application>Boost</application> provides a set of free peer-reviewed
|
---|
| 32 | portable C++ source libraries. It includes libraries for linear algebra,
|
---|
| 33 | pseudorandom number generation, multithreading, image processing, regular
|
---|
| 34 | expressions and unit testing.
|
---|
[355495ce] | 35 | </para>
|
---|
[47969a6] | 36 |
|
---|
[046d740] | 37 | &lfs112_checked;
|
---|
[47969a6] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
[355495ce] | 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&boost-download-http;"/>
|
---|
| 44 | </para>
|
---|
[47969a6] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[355495ce] | 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&boost-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
[47969a6] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[355495ce] | 52 | <para>
|
---|
| 53 | Download MD5 sum: &boost-md5sum;
|
---|
| 54 | </para>
|
---|
[47969a6] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[355495ce] | 57 | <para>
|
---|
| 58 | Download size: &boost-size;
|
---|
| 59 | </para>
|
---|
[47969a6] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[355495ce] | 62 | <para>
|
---|
| 63 | Estimated disk space required: &boost-buildsize;
|
---|
| 64 | </para>
|
---|
[47969a6] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[355495ce] | 67 | <para>
|
---|
| 68 | Estimated build time: &boost-time;
|
---|
| 69 | </para>
|
---|
[47969a6] | 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
[9873d1ea] | 72 | <!--
|
---|
[9214104] | 73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 74 | <itemizedlist spacing="compact">
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>
|
---|
| 77 | Recommended patch, required to build <xref linkend="libreoffice"/>:
|
---|
| 78 | <ulink url="&patch-root;/boost-&boost-version;-gcc_10-1.patch"/>
|
---|
| 79 | </para>
|
---|
| 80 | </listitem>
|
---|
| 81 | </itemizedlist>
|
---|
[9873d1ea] | 82 | -->
|
---|
[9214104] | 83 |
|
---|
[355495ce] | 84 | <bridgehead renderas="sect3">Boost Dependencies</bridgehead>
|
---|
[47969a6] | 85 |
|
---|
[d89ea78] | 86 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 87 | <para role="recommended">
|
---|
| 88 | <xref linkend="which"/>
|
---|
| 89 | </para>
|
---|
| 90 |
|
---|
[47969a6] | 91 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[f7fbe1f7] | 92 | <para role="optional">
|
---|
[39060e91] | 93 | <xref linkend="icu"/> and
|
---|
[31b8fd26] | 94 | <ulink url="https://www.open-mpi.org/">Open MPI</ulink>
|
---|
[47969a6] | 95 | </para>
|
---|
| 96 |
|
---|
| 97 | <para condition="html" role="usernotes">User Notes:
|
---|
[355495ce] | 98 | <ulink url="&blfs-wiki;/boost"/>
|
---|
| 99 | </para>
|
---|
[47969a6] | 100 | </sect2>
|
---|
| 101 |
|
---|
| 102 | <sect2 role="installation">
|
---|
| 103 | <title>Installation of Boost</title>
|
---|
[1015ec3] | 104 |
|
---|
[355495ce] | 105 | <para>
|
---|
[d5e43119] | 106 | This package can be built with several jobs running in parallel. In
|
---|
| 107 | the instructions below, <parameter><N></parameter> stands for the
|
---|
| 108 | number of jobs. Install <application>Boost</application> by running the
|
---|
| 109 | following commands:
|
---|
[355495ce] | 110 | </para>
|
---|
[47969a6] | 111 |
|
---|
[128b5380] | 112 |
|
---|
[9873d1ea] | 113 | <screen><userinput>./bootstrap.sh --prefix=/usr --with-python=python3 &&
|
---|
[d5e43119] | 114 | ./b2 stage -j<replaceable><N></replaceable> threading=multi link=shared</userinput></screen>
|
---|
[a7f550d8] | 115 |
|
---|
| 116 | <para>
|
---|
[8558044] | 117 | To run the Boost.Build's regression test, issue
|
---|
| 118 | <command>pushd tools/build/test; python3 test_all.py; popd</command>.
|
---|
[b2651a58] | 119 | With python-3.10.x all 168 tests should pass. With
|
---|
| 120 | <xref linkend='python3'/>, 20 tests fail for undetermined reasons.
|
---|
[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>
|
---|
[fe83f5c] | 130 |
|
---|
| 131 | <note>
|
---|
| 132 | <para>
|
---|
| 133 | Boost installs many versioned directories in /usr/lib/cmake.
|
---|
[e15d48d7] | 134 | If a new version of <application>Boost</application> is installed over a
|
---|
| 135 | previous version, the older cmake directories need to be
|
---|
[552bf36] | 136 | explicitly removed. To do this, run as the
|
---|
[fe83f5c] | 137 | <systemitem class="username">root</systemitem> user:
|
---|
| 138 | </para>
|
---|
| 139 |
|
---|
| 140 | <screen role="root"><userinput>rm -rf /usr/lib/cmake/[Bb]oost*</userinput></screen>
|
---|
| 141 |
|
---|
| 142 | <para>
|
---|
| 143 | before installing the new version.
|
---|
| 144 | </para>
|
---|
| 145 | </note>
|
---|
[a7f550d8] | 146 |
|
---|
| 147 | <para>
|
---|
| 148 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 149 | </para>
|
---|
| 150 |
|
---|
[4adf827] | 151 | <!-- dev note: ./b2 - -prefix=<DESTDIR>/usr install threading=multi link=shared -->
|
---|
| 152 |
|
---|
[4e207bb] | 153 | <screen role="root"><userinput>./b2 install threading=multi link=shared</userinput></screen>
|
---|
[47969a6] | 154 |
|
---|
| 155 | </sect2>
|
---|
[54bed77b] | 156 |
|
---|
[47969a6] | 157 | <sect2 role="commands">
|
---|
| 158 | <title>Command Explanations</title>
|
---|
| 159 |
|
---|
[355495ce] | 160 | <para>
|
---|
| 161 | <parameter>threading=multi</parameter>: This parameter ensures that
|
---|
| 162 | <application>Boost</application> is built with multithreading support.
|
---|
| 163 | </para>
|
---|
| 164 |
|
---|
| 165 | <para>
|
---|
[155d1f80] | 166 | <parameter>link=shared</parameter>: This parameter ensures that only
|
---|
| 167 | shared libraries are created, except for libboost_exception and
|
---|
| 168 | libboost_test_exec_monitor which are created as static. Most people
|
---|
[154b62f8] | 169 | will not need the static libraries, and most programs using
|
---|
[ea0c1c2] | 170 | <application>Boost</application> only use the headers. Omit
|
---|
[155d1f80] | 171 | this parameter if you do need static libraries.
|
---|
| 172 | </para>
|
---|
| 173 |
|
---|
| 174 | <para>
|
---|
[d56891b] | 175 | <parameter>--with-python=python3</parameter>: This switch ensures Python3
|
---|
| 176 | is used if Python2 is installed.
|
---|
[355495ce] | 177 | </para>
|
---|
[47969a6] | 178 |
|
---|
[1015ec3] | 179 | <para>
|
---|
[d56891b] | 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.
|
---|
[1015ec3] | 183 | </para>
|
---|
| 184 |
|
---|
[47969a6] | 185 | </sect2>
|
---|
[54bed77b] | 186 |
|
---|
[47969a6] | 187 | <sect2 role="content">
|
---|
| 188 | <title>Contents</title>
|
---|
| 189 |
|
---|
| 190 | <segmentedlist>
|
---|
[c3c56b2] | 191 | <segtitle>Installed Programs</segtitle>
|
---|
[47969a6] | 192 | <segtitle>Installed Libraries</segtitle>
|
---|
| 193 | <segtitle>Installed Directory</segtitle>
|
---|
| 194 |
|
---|
| 195 | <seglistitem>
|
---|
[c3c56b2] | 196 | <seg>
|
---|
| 197 | None
|
---|
| 198 | </seg>
|
---|
[355495ce] | 199 | <seg>
|
---|
[9873d1ea] | 200 | libboost_atomic.so, libboost_chrono.so, libboost_container.so,
|
---|
| 201 | libboost_context.so, libboost_contract.so, libboost_coroutine.so,
|
---|
[84fe2e9] | 202 | libboost_date_time.so, libboost_exception.a, libboost_fiber.so,
|
---|
[4f89710] | 203 | libboost_filesystem.so, libboost_graph.so, libboost_iostreams.so,
|
---|
| 204 | libboost_json.so, libboost_locale.so,
|
---|
[31b8fd26] | 205 | libboost_log_setup.so, libboost_log.so, libboost_math_c99.so,
|
---|
| 206 | libboost_math_c99f.so, libboost_math_c99l.so, libboost_math_tr1.so,
|
---|
| 207 | libboost_math_tr1f.so, libboost_math_tr1l.so,
|
---|
[4f89710] | 208 | libboost_nowide.so, libboost_numpy39.so,
|
---|
[31b8fd26] | 209 | libboost_prg_exec_monitor.so, libboost_program_options.so,
|
---|
[f5c380e] | 210 | libboost_python3&python3-minor;.so, libboost_random.so,
|
---|
[84fe2e9] | 211 | libboost_regex.so, libboost_serialization.so,
|
---|
[fa30d84] | 212 | libboost_stacktrace_addr2line.so, libboost_stacktrace_basic.so,
|
---|
[8558044] | 213 | libboost_stacktrace_noop.so, libboost_system.so,
|
---|
[84fe2e9] | 214 | libboost_test_exec_monitor.a, libboost_thread.so, libboost_timer.so,
|
---|
| 215 | libboost_type_erasure.so, libboost_unit_test_framework.so,
|
---|
[31b8fd26] | 216 | libboost_wave.so, and libboost_wserialization.so
|
---|
[355495ce] | 217 | </seg>
|
---|
| 218 | <seg>
|
---|
| 219 | /usr/include/boost
|
---|
| 220 | </seg>
|
---|
[47969a6] | 221 | </seglistitem>
|
---|
| 222 | </segmentedlist>
|
---|
[355495ce] | 223 |
|
---|
[47969a6] | 224 | </sect2>
|
---|
| 225 |
|
---|
| 226 | </sect1>
|
---|