[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 " ">
|
---|
[fc2d473] | 9 | <!ENTITY boost-md5sum "15cb8c0803064faef0c4ddf5bc5ca279">
|
---|
| 10 | <!ENTITY boost-size "55 MB">
|
---|
| 11 | <!ENTITY boost-buildsize "713 MB">
|
---|
| 12 | <!ENTITY boost-time "5.4 SBU">
|
---|
[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 |
|
---|
[18c9ee54] | 39 | &lfs74_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 |
|
---|
[fa26ede] | 75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 76 | <itemizedlist spacing="compact">
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>
|
---|
| 79 | Required patch:
|
---|
[110ad1c] | 80 | <ulink url="&patch-root;/boost-&boost-version;-glibc-1.patch"/>
|
---|
[fa26ede] | 81 | </para>
|
---|
| 82 | </listitem>
|
---|
| 83 | </itemizedlist>
|
---|
| 84 |
|
---|
[355495ce] | 85 | <bridgehead renderas="sect3">Boost Dependencies</bridgehead>
|
---|
[47969a6] | 86 |
|
---|
| 87 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[f7fbe1f7] | 88 | <para role="optional">
|
---|
[355495ce] | 89 | <xref linkend="icu"/> and
|
---|
| 90 | <xref linkend="python2"/>
|
---|
[47969a6] | 91 | </para>
|
---|
| 92 |
|
---|
| 93 | <para condition="html" role="usernotes">User Notes:
|
---|
[355495ce] | 94 | <ulink url="&blfs-wiki;/boost"/>
|
---|
| 95 | </para>
|
---|
[47969a6] | 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2 role="installation">
|
---|
| 99 | <title>Installation of Boost</title>
|
---|
| 100 |
|
---|
[355495ce] | 101 | <para>
|
---|
| 102 | Install <application>Boost</application> by running the following
|
---|
[a7f550d8] | 103 | commands:
|
---|
[355495ce] | 104 | </para>
|
---|
[47969a6] | 105 |
|
---|
[110ad1c] | 106 | <screen><userinput>patch -Np1 -i ../boost-&boost-version;-glibc-1.patch &&
|
---|
[fa26ede] | 107 | ./bootstrap.sh --prefix=/usr &&
|
---|
[a7f550d8] | 108 | ./b2 stage threading=multi link=shared</userinput></screen>
|
---|
| 109 |
|
---|
| 110 | <para>
|
---|
| 111 | This package does not come with a test suite.
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
| 114 | <para>
|
---|
| 115 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <screen role="root"><userinput>./b2 install threading=multi link=shared</userinput></screen>
|
---|
[47969a6] | 119 |
|
---|
| 120 | </sect2>
|
---|
[54bed77b] | 121 |
|
---|
[47969a6] | 122 | <sect2 role="commands">
|
---|
| 123 | <title>Command Explanations</title>
|
---|
| 124 |
|
---|
[355495ce] | 125 | <para>
|
---|
| 126 | <parameter>threading=multi</parameter>: This parameter ensures that
|
---|
| 127 | <application>Boost</application> is built with multithreading support.
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
| 130 | <para>
|
---|
| 131 | <parameter>link=shared</parameter>: This parameter ensures that only shared
|
---|
| 132 | libraries are created, except for libboost_exception and libboost_test_exec_monitor
|
---|
| 133 | which are created as static. Most people will not need the static libraries, indeed
|
---|
[a98acfe7] | 134 | most programs using <application>Boost</application> only use the headers, but omit
|
---|
| 135 | this parameter if you do need them.
|
---|
[355495ce] | 136 | </para>
|
---|
[47969a6] | 137 |
|
---|
| 138 | </sect2>
|
---|
[54bed77b] | 139 |
|
---|
[47969a6] | 140 | <sect2 role="content">
|
---|
| 141 | <title>Contents</title>
|
---|
| 142 |
|
---|
| 143 | <segmentedlist>
|
---|
[c3c56b2] | 144 | <segtitle>Installed Programs</segtitle>
|
---|
[47969a6] | 145 | <segtitle>Installed Libraries</segtitle>
|
---|
| 146 | <segtitle>Installed Directory</segtitle>
|
---|
| 147 |
|
---|
| 148 | <seglistitem>
|
---|
[c3c56b2] | 149 | <seg>
|
---|
| 150 | None
|
---|
| 151 | </seg>
|
---|
[355495ce] | 152 | <seg>
|
---|
[a98acfe7] | 153 | libboost_atomic.so, libboost_chrono.so, libboost_context.so,
|
---|
| 154 | libboost_date_time.so, libboost_exception.a, libboost_filesystem.so,
|
---|
| 155 | libboost_graph.so, libboost_iostreams.so, libboost_locale.so,
|
---|
| 156 | libboost_math_c99f.so, libboost_math_c99l.so, libboost_math_c99.so,
|
---|
| 157 | libboost_math_tr1f.so, libboost_math_tr1l.so, libboost_math_tr1.so,
|
---|
| 158 | libboost_prg_exec_monitor.so, libboost_program_options.so, libboost_python.so,
|
---|
| 159 | libboost_random.so, libboost_regex.so, libboost_serialization.so,
|
---|
| 160 | libboost_signals.so, libboost_system.so, libboost_test_exec_monitor.a,
|
---|
[355495ce] | 161 | libboost_thread.so, libboost_timer.so, libboost_unit_test_framework.so,
|
---|
| 162 | libboost_wave.so and libboost_wserialization.so
|
---|
| 163 | </seg>
|
---|
| 164 | <seg>
|
---|
| 165 | /usr/include/boost
|
---|
| 166 | </seg>
|
---|
[47969a6] | 167 | </seglistitem>
|
---|
| 168 | </segmentedlist>
|
---|
[355495ce] | 169 |
|
---|
[47969a6] | 170 | </sect2>
|
---|
| 171 |
|
---|
| 172 | </sect1>
|
---|