[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 |
|
---|
[355495ce] | 7 | <!ENTITY boost-download-http "&sourceforge-repo;/boost/boost_&boost-dl-version;.tar.bz2">
|
---|
[47969a6] | 8 | <!ENTITY boost-download-ftp " ">
|
---|
[31b8fd26] | 9 | <!ENTITY boost-md5sum "6aa9a5c6a4ca1016edd0ed1178e3cb87">
|
---|
[684ab13] | 10 | <!ENTITY boost-size "68 MB">
|
---|
| 11 | <!ENTITY boost-buildsize "884 MB (additional 1 MB for Boost.Build's regression test)">
|
---|
| 12 | <!ENTITY boost-time "3.9 SBU (additional 1.5 SBU for Boost.Build's regression test)">
|
---|
[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 |
|
---|
[33c9d33] | 39 | &lfs78_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 |
|
---|
| 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[f7fbe1f7] | 78 | <para role="optional">
|
---|
[31b8fd26] | 79 | <xref linkend="icu"/>,
|
---|
| 80 | <xref linkend="python2"/> and
|
---|
| 81 | <ulink url="https://www.open-mpi.org/">Open MPI</ulink>
|
---|
[47969a6] | 82 | </para>
|
---|
| 83 |
|
---|
| 84 | <para condition="html" role="usernotes">User Notes:
|
---|
[355495ce] | 85 | <ulink url="&blfs-wiki;/boost"/>
|
---|
| 86 | </para>
|
---|
[47969a6] | 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2 role="installation">
|
---|
| 90 | <title>Installation of Boost</title>
|
---|
| 91 |
|
---|
[355495ce] | 92 | <para>
|
---|
| 93 | Install <application>Boost</application> by running the following
|
---|
[a7f550d8] | 94 | commands:
|
---|
[355495ce] | 95 | </para>
|
---|
[47969a6] | 96 |
|
---|
[2b9f9dc] | 97 | <screen><userinput>sed -e '1 i#ifndef Q_MOC_RUN' \
|
---|
| 98 | -e '$ a#endif' \
|
---|
| 99 | -i boost/type_traits/detail/has_binary_operator.hpp &&
|
---|
| 100 |
|
---|
| 101 | ./bootstrap.sh --prefix=/usr &&
|
---|
[a7f550d8] | 102 | ./b2 stage threading=multi link=shared</userinput></screen>
|
---|
| 103 |
|
---|
| 104 | <para>
|
---|
[684ab13] | 105 | To run the Boost.Build's regression test (<xref linkend="python2"/>
|
---|
| 106 | required), issue <command>pushd tools/build/test; python test_all.py;
|
---|
[31b8fd26] | 107 | popd</command>. One test out of 130 fails.
|
---|
[684ab13] | 108 | </para>
|
---|
| 109 |
|
---|
| 110 | <para>
|
---|
| 111 | To run every library's regression tests, issue <command>pushd status;
|
---|
| 112 | ../b2; popd</command>. A few tests may fail. They take very long (over
|
---|
| 113 | 120/50 SBU, one/four cores) and use a very large disk space (up to
|
---|
| 114 | 40 GB). You can use the <parameter>-jN</parameter> switch to
|
---|
| 115 | speed them up.
|
---|
[a7f550d8] | 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <para>
|
---|
| 119 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 120 | </para>
|
---|
| 121 |
|
---|
[4adf827] | 122 | <!-- dev note: ./b2 - -prefix=<DESTDIR>/usr install threading=multi link=shared -->
|
---|
| 123 |
|
---|
[a7f550d8] | 124 | <screen role="root"><userinput>./b2 install threading=multi link=shared</userinput></screen>
|
---|
[47969a6] | 125 |
|
---|
| 126 | </sect2>
|
---|
[54bed77b] | 127 |
|
---|
[47969a6] | 128 | <sect2 role="commands">
|
---|
| 129 | <title>Command Explanations</title>
|
---|
| 130 |
|
---|
[2b9f9dc] | 131 | <para>
|
---|
| 132 | <command>sed ... has_binary_operator.hpp</command>: This command
|
---|
| 133 | fixes a header to overcome a problem with Qt's moc command. It
|
---|
| 134 | is necessary for building some KDE packages.
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
[355495ce] | 137 | <para>
|
---|
| 138 | <parameter>threading=multi</parameter>: This parameter ensures that
|
---|
| 139 | <application>Boost</application> is built with multithreading support.
|
---|
| 140 | </para>
|
---|
| 141 |
|
---|
| 142 | <para>
|
---|
[155d1f80] | 143 | <parameter>link=shared</parameter>: This parameter ensures that only
|
---|
| 144 | shared libraries are created, except for libboost_exception and
|
---|
| 145 | libboost_test_exec_monitor which are created as static. Most people
|
---|
| 146 | will not need the static libraries. Indeed most programs using
|
---|
| 147 | <application>Boost</application> only use the headers. 0mit
|
---|
| 148 | this parameter if you do need static libraries.
|
---|
| 149 | </para>
|
---|
| 150 |
|
---|
| 151 | <para>
|
---|
| 152 | <option>-jN</option>: This switch may be added to the
|
---|
| 153 | <command>b2</command> command lines, to run up to N processes in
|
---|
| 154 | parallel.
|
---|
[355495ce] | 155 | </para>
|
---|
[47969a6] | 156 |
|
---|
| 157 | </sect2>
|
---|
[54bed77b] | 158 |
|
---|
[47969a6] | 159 | <sect2 role="content">
|
---|
| 160 | <title>Contents</title>
|
---|
| 161 |
|
---|
| 162 | <segmentedlist>
|
---|
[c3c56b2] | 163 | <segtitle>Installed Programs</segtitle>
|
---|
[47969a6] | 164 | <segtitle>Installed Libraries</segtitle>
|
---|
| 165 | <segtitle>Installed Directory</segtitle>
|
---|
| 166 |
|
---|
| 167 | <seglistitem>
|
---|
[c3c56b2] | 168 | <seg>
|
---|
| 169 | None
|
---|
| 170 | </seg>
|
---|
[355495ce] | 171 | <seg>
|
---|
[31b8fd26] | 172 | libboost_atomic.so, libboost_chrono.a, libboost_chrono.so,
|
---|
| 173 | libboost_container.so, libboost_context.so, libboost_coroutine.so,
|
---|
| 174 | libboost_date_time.so, libboost_exception.a, libboost_filesystem.so,
|
---|
| 175 | libboost_graph.so, libboost_iostreams.so, libboost_locale.so,
|
---|
| 176 | libboost_log_setup.so, libboost_log.so, libboost_math_c99.so,
|
---|
| 177 | libboost_math_c99f.so, libboost_math_c99l.so, libboost_math_tr1.so,
|
---|
| 178 | libboost_math_tr1f.so, libboost_math_tr1l.so,
|
---|
| 179 | libboost_prg_exec_monitor.so, libboost_program_options.so,
|
---|
| 180 | libboost_python.so, libboost_random.so, libboost_regex.so,
|
---|
| 181 | libboost_serialization.so, libboost_signals.so, libboost_system.a,
|
---|
[b77479e] | 182 | libboost_system.so, libboost_test_exec_monitor.a, libboost_thread.so,
|
---|
[31b8fd26] | 183 | libboost_timer.a, libboost_timer.so, libboost_unit_test_framework.so,
|
---|
| 184 | libboost_wave.so, and libboost_wserialization.so
|
---|
[355495ce] | 185 | </seg>
|
---|
| 186 | <seg>
|
---|
| 187 | /usr/include/boost
|
---|
| 188 | </seg>
|
---|
[47969a6] | 189 | </seglistitem>
|
---|
| 190 | </segmentedlist>
|
---|
[355495ce] | 191 |
|
---|
[47969a6] | 192 | </sect2>
|
---|
| 193 |
|
---|
| 194 | </sect1>
|
---|