2011-02-09 05:13:13 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2021-05-04 22:36:40 +08:00
|
|
|
<!ENTITY boost-download-http "https://boostorg.jfrog.io/artifactory/main/release/&boost-version;/source/boost_&boost-dl-version;.tar.bz2">
|
2011-02-09 05:13:13 +08:00
|
|
|
<!ENTITY boost-download-ftp " ">
|
2021-12-13 02:56:44 +08:00
|
|
|
<!ENTITY boost-md5sum "db0112a3a37a3742326471d20f1a186a">
|
|
|
|
<!ENTITY boost-size "106 MB">
|
|
|
|
<!ENTITY boost-buildsize "1.1 GB (190 MB installed)">
|
|
|
|
<!ENTITY boost-time "1.5 SBU (Using parallelism=4; add 1.3 SBU for tests)">
|
2011-02-09 05:13:13 +08:00
|
|
|
]>
|
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<sect1 id="boost" xreflabel="Boost-&boost-version;">
|
2011-02-09 05:13:13 +08:00
|
|
|
<?dbhtml filename="boost.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Boost-&boost-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="boost">
|
2012-07-20 00:27:40 +08:00
|
|
|
<primary sortas="a-Boost">Boost</primary>
|
2011-02-09 05:13:13 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Boost</title>
|
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
2012-08-14 00:01:55 +08:00
|
|
|
<application>Boost</application> provides a set of free peer-reviewed
|
|
|
|
portable C++ source libraries. It includes libraries for linear algebra,
|
|
|
|
pseudorandom number generation, multithreading, image processing, regular
|
|
|
|
expressions and unit testing.
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
2011-02-09 05:13:13 +08:00
|
|
|
|
2022-02-17 05:46:11 +08:00
|
|
|
&lfs111_checked;
|
2011-02-09 05:13:13 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&boost-download-http;"/>
|
|
|
|
</para>
|
2011-02-09 05:13:13 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&boost-download-ftp;"/>
|
|
|
|
</para>
|
2011-02-09 05:13:13 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &boost-md5sum;
|
|
|
|
</para>
|
2011-02-09 05:13:13 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Download size: &boost-size;
|
|
|
|
</para>
|
2011-02-09 05:13:13 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &boost-buildsize;
|
|
|
|
</para>
|
2011-02-09 05:13:13 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &boost-time;
|
|
|
|
</para>
|
2011-02-09 05:13:13 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2020-08-17 14:23:35 +08:00
|
|
|
<!--
|
2020-05-17 02:23:41 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Recommended patch, required to build <xref linkend="libreoffice"/>:
|
|
|
|
<ulink url="&patch-root;/boost-&boost-version;-gcc_10-1.patch"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2020-08-17 14:23:35 +08:00
|
|
|
-->
|
2020-05-17 02:23:41 +08:00
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<bridgehead renderas="sect3">Boost Dependencies</bridgehead>
|
2011-02-09 05:13:13 +08:00
|
|
|
|
2016-02-23 23:23:14 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="which"/>
|
|
|
|
</para>
|
|
|
|
|
2011-02-09 05:13:13 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2012-11-10 04:58:42 +08:00
|
|
|
<para role="optional">
|
2019-12-13 03:26:09 +08:00
|
|
|
<xref linkend="icu"/> and
|
2015-08-15 22:58:25 +08:00
|
|
|
<ulink url="https://www.open-mpi.org/">Open MPI</ulink>
|
2011-02-09 05:13:13 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
2012-07-20 00:27:40 +08:00
|
|
|
<ulink url="&blfs-wiki;/boost"/>
|
|
|
|
</para>
|
2011-02-09 05:13:13 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Boost</title>
|
2015-12-15 20:50:07 +08:00
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
2019-09-18 20:43:48 +08:00
|
|
|
This package can be built with several jobs running in parallel. In
|
|
|
|
the instructions below, <parameter><N></parameter> stands for the
|
|
|
|
number of jobs. Install <application>Boost</application> by running the
|
|
|
|
following commands:
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
2011-02-09 05:13:13 +08:00
|
|
|
|
2016-10-03 04:20:57 +08:00
|
|
|
|
2020-08-17 14:23:35 +08:00
|
|
|
<screen><userinput>./bootstrap.sh --prefix=/usr --with-python=python3 &&
|
2019-09-18 20:43:48 +08:00
|
|
|
./b2 stage -j<replaceable><N></replaceable> threading=multi link=shared</userinput></screen>
|
2012-09-03 04:18:40 +08:00
|
|
|
|
|
|
|
<para>
|
2021-09-07 01:42:49 +08:00
|
|
|
To run the Boost.Build's regression test, issue
|
|
|
|
<command>pushd tools/build/test; python3 test_all.py; popd</command>.
|
2021-12-13 02:56:44 +08:00
|
|
|
All 166 tests should pass.
|
2015-04-20 08:41:30 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
To run every library's regression tests, issue <command>pushd status;
|
2018-08-21 08:26:17 +08:00
|
|
|
../b2; popd</command>. A few tests may fail. They take a very long time
|
|
|
|
(over 119 SBU at -j4) and use a very large amount of disk space
|
|
|
|
(46 GB). You should use the <parameter>-jN</parameter> switch to
|
2015-04-20 08:41:30 +08:00
|
|
|
speed them up.
|
2012-09-03 04:18:40 +08:00
|
|
|
</para>
|
2022-01-08 03:47:51 +08:00
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
Boost installs many versioned directories in /usr/lib/cmake.
|
2022-01-08 07:58:43 +08:00
|
|
|
If a new version of <application>Boost</application> is installed over a
|
|
|
|
previous version, the older cmake directories need to be
|
2022-02-26 15:56:09 +08:00
|
|
|
explicitly removed. To do this, run as the
|
2022-01-08 03:47:51 +08:00
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>rm -rf /usr/lib/cmake/[Bb]oost*</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
before installing the new version.
|
|
|
|
</para>
|
|
|
|
</note>
|
2012-09-03 04:18:40 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2013-12-04 20:18:04 +08:00
|
|
|
<!-- dev note: ./b2 - -prefix=<DESTDIR>/usr install threading=multi link=shared -->
|
|
|
|
|
2021-05-04 01:43:05 +08:00
|
|
|
<screen role="root"><userinput>./b2 install threading=multi link=shared <!-- &&
|
2020-08-17 14:23:35 +08:00
|
|
|
ln -svf detail/sha1.hpp /usr/include/boost/uuid/sha1.hpp--></userinput></screen>
|
2011-02-09 05:13:13 +08:00
|
|
|
|
|
|
|
</sect2>
|
2012-02-26 08:31:59 +08:00
|
|
|
|
2011-02-09 05:13:13 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
<parameter>threading=multi</parameter>: This parameter ensures that
|
|
|
|
<application>Boost</application> is built with multithreading support.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2015-02-24 05:12:23 +08:00
|
|
|
<parameter>link=shared</parameter>: This parameter ensures that only
|
|
|
|
shared libraries are created, except for libboost_exception and
|
|
|
|
libboost_test_exec_monitor which are created as static. Most people
|
2018-08-01 08:18:23 +08:00
|
|
|
will not need the static libraries, and most programs using
|
2016-01-25 13:09:20 +08:00
|
|
|
<application>Boost</application> only use the headers. Omit
|
2015-02-24 05:12:23 +08:00
|
|
|
this parameter if you do need static libraries.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<option>-jN</option>: This switch may be added to the
|
|
|
|
<command>b2</command> command lines, to run up to N processes in
|
|
|
|
parallel.
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
2011-02-09 05:13:13 +08:00
|
|
|
|
2015-12-15 20:50:07 +08:00
|
|
|
<para>
|
2017-01-02 19:20:23 +08:00
|
|
|
<option>--with-python=python3</option>: Add this switch to the <command>
|
|
|
|
bootstrap</command> command, if you want Boost
|
2018-12-15 04:17:57 +08:00
|
|
|
to use Python3 instead of Python2. Using Python3 is known to cause the
|
2018-12-28 02:07:15 +08:00
|
|
|
installation to fail on some systems.
|
2015-12-15 20:50:07 +08:00
|
|
|
</para>
|
|
|
|
|
2011-02-09 05:13:13 +08:00
|
|
|
</sect2>
|
2012-02-26 08:31:59 +08:00
|
|
|
|
2011-02-09 05:13:13 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
2013-01-26 00:32:25 +08:00
|
|
|
<segtitle>Installed Programs</segtitle>
|
2011-02-09 05:13:13 +08:00
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2013-01-26 00:32:25 +08:00
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
2012-07-20 00:27:40 +08:00
|
|
|
<seg>
|
2020-08-17 14:23:35 +08:00
|
|
|
libboost_atomic.so, libboost_chrono.so, libboost_container.so,
|
|
|
|
libboost_context.so, libboost_contract.so, libboost_coroutine.so,
|
2020-04-30 01:24:53 +08:00
|
|
|
libboost_date_time.so, libboost_exception.a, libboost_fiber.so,
|
2021-08-15 13:21:44 +08:00
|
|
|
libboost_filesystem.so, libboost_graph.so, libboost_iostreams.so,
|
|
|
|
libboost_json.so, libboost_locale.so,
|
2015-08-15 22:58:25 +08:00
|
|
|
libboost_log_setup.so, libboost_log.so, libboost_math_c99.so,
|
|
|
|
libboost_math_c99f.so, libboost_math_c99l.so, libboost_math_tr1.so,
|
|
|
|
libboost_math_tr1f.so, libboost_math_tr1l.so,
|
2021-08-15 13:21:44 +08:00
|
|
|
libboost_nowide.so, libboost_numpy39.so,
|
2015-08-15 22:58:25 +08:00
|
|
|
libboost_prg_exec_monitor.so, libboost_program_options.so,
|
2021-02-07 23:18:09 +08:00
|
|
|
libboost_python3&python3-minor;.so, libboost_random.so,
|
2020-04-30 01:24:53 +08:00
|
|
|
libboost_regex.so, libboost_serialization.so,
|
2017-09-04 20:19:38 +08:00
|
|
|
libboost_stacktrace_addr2line.so, libboost_stacktrace_basic.so,
|
2021-09-07 01:42:49 +08:00
|
|
|
libboost_stacktrace_noop.so, libboost_system.so,
|
2020-04-30 01:24:53 +08:00
|
|
|
libboost_test_exec_monitor.a, libboost_thread.so, libboost_timer.so,
|
|
|
|
libboost_type_erasure.so, libboost_unit_test_framework.so,
|
2015-08-15 22:58:25 +08:00
|
|
|
libboost_wave.so, and libboost_wserialization.so
|
2012-07-20 00:27:40 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/boost
|
|
|
|
</seg>
|
2011-02-09 05:13:13 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2012-07-20 00:27:40 +08:00
|
|
|
|
2011-02-09 05:13:13 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|