source: general/genlib/boost.xml@ dd9e0c3

systemd-13485
Last change on this file since dd9e0c3 was 1fb2507, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Update to xf86-input-wacom-0.33.0
Update to boost-1.61.0
Update to btrfs-progs-v4.5.3
Update to glib-networking-2.48.2
All of the above merged from trunk r17361

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@17362 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.0 KB
Line 
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
7 <!ENTITY boost-download-http "&sourceforge-repo;/boost/boost_&boost-dl-version;.tar.bz2">
8 <!ENTITY boost-download-ftp " ">
9 <!ENTITY boost-md5sum "6095876341956f65f9d35939ccea1a9f">
10 <!ENTITY boost-size "81 MB">
11 <!ENTITY boost-buildsize "921 MB (add 2 MB for regression tests))">
12 <!ENTITY boost-time "1.3 SBU (add 2.3 SBU for regression tests)">
13]>
14
15<sect1 id="boost" xreflabel="Boost-&boost-version;">
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">
26 <primary sortas="a-Boost">Boost</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Boost</title>
31
32 <para>
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.
37 </para>
38
39 &lfs79_checked;
40
41 &gcc6_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&boost-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&boost-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &boost-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &boost-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &boost-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &boost-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Boost Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="which"/>
82 </para>
83
84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional">
86 <xref linkend="icu"/>,
87 <xref linkend="python2"/> or <xref linkend="python3"/>, and
88 <ulink url="https://www.open-mpi.org/">Open MPI</ulink>
89 </para>
90
91 <para condition="html" role="usernotes">User Notes:
92 <ulink url="&blfs-wiki;/boost"/>
93 </para>
94 </sect2>
95
96 <sect2 role="installation">
97 <title>Installation of Boost</title>
98
99 <para>
100 First, fix a bug with the header files path, when Python3 is used:
101 </para>
102
103<screen><userinput>sed -e '/using python/ s@;@: /usr/include/python${PYTHON_VERSION/3*/${PYTHON_VERSION}m} ;@' \
104-i bootstrap.sh</userinput></screen>
105
106 <para>
107 Install <application>Boost</application> by running the following
108 commands:
109 </para>
110
111<screen><userinput>sed -e '1 i#ifndef Q_MOC_RUN' \
112 -e '$ a#endif' \
113 -i boost/type_traits/detail/has_binary_operator.hpp &amp;&amp;
114
115./bootstrap.sh --prefix=/usr &amp;&amp;
116./b2 stage threading=multi link=shared</userinput></screen>
117
118 <para>
119 To run the Boost.Build's regression test (<xref linkend="python2"/>
120 is required), issue <command>pushd tools/build/test; python test_all.py;
121 popd</command>. All 131 tests should pass.
122 </para>
123
124 <para>
125 To run every library's regression tests, issue <command>pushd status;
126 ../b2; popd</command>. A few tests may fail. They take very long (over
127 120 SBU at -j1, 50 SBU at -j4) and use a very large amount of disk space
128 (up to 40 GB). You can use the <parameter>-jN</parameter> switch to
129 speed them up.
130 </para>
131
132 <para>
133 Now, as the <systemitem class="username">root</systemitem> user:
134 </para>
135
136<!-- dev note: ./b2 - -prefix=<DESTDIR>/usr install threading=multi link=shared -->
137
138<screen role="root"><userinput>./b2 install threading=multi link=shared</userinput></screen>
139
140 </sect2>
141
142 <sect2 role="commands">
143 <title>Command Explanations</title>
144
145 <para>
146 <command>sed ... has_binary_operator.hpp</command>: This command
147 fixes a header to overcome a problem with Qt's moc command. It
148 is necessary for building some KDE packages.
149 </para>
150
151 <para>
152 <parameter>threading=multi</parameter>: This parameter ensures that
153 <application>Boost</application> is built with multithreading support.
154 </para>
155
156 <para>
157 <parameter>link=shared</parameter>: This parameter ensures that only
158 shared libraries are created, except for libboost_exception and
159 libboost_test_exec_monitor which are created as static. Most people
160 will not need the static libraries. Indeed most programs using
161 <application>Boost</application> only use the headers. Omit
162 this parameter if you do need static libraries.
163 </para>
164
165 <para>
166 <option>-jN</option>: This switch may be added to the
167 <command>b2</command> command lines, to run up to N processes in
168 parallel.
169 </para>
170
171 <para>
172 <option>--with-python=python3</option>: Add this switch if you want Boost
173 to use Python3 instead of Python2.
174 </para>
175
176 </sect2>
177
178 <sect2 role="content">
179 <title>Contents</title>
180
181 <segmentedlist>
182 <segtitle>Installed Programs</segtitle>
183 <segtitle>Installed Libraries</segtitle>
184 <segtitle>Installed Directory</segtitle>
185
186 <seglistitem>
187 <seg>
188 None
189 </seg>
190 <seg>
191 libboost_atomic.so,
192 libboost_chrono.a,
193 libboost_chrono.so,
194 libboost_container.so,
195 libboost_context.so,
196 libboost_coroutine.so,
197 libboost_date_time.so,
198 libboost_exception.a,
199 libboost_filesystem.so,
200 libboost_graph.so,
201 libboost_iostreams.so,
202 libboost_locale.so,
203 libboost_log_setup.so,
204 libboost_log.so,
205 libboost_math_c99.so,
206 libboost_math_c99f.so,
207 libboost_math_c99l.so,
208 libboost_math_tr1.so,
209 libboost_math_tr1f.so,
210 libboost_math_tr1l.so,
211 libboost_prg_exec_monitor.so,
212 libboost_program_options.so,
213 libboost_python.so,
214 libboost_python3.so,
215 libboost_random.so,
216 libboost_regex.so,
217 libboost_serialization.so,
218 libboost_signals.so,
219 libboost_system.a,
220 libboost_system.so,
221 libboost_test_exec_monitor.a,
222 libboost_thread.so,
223 libboost_timer.a,
224 libboost_timer.so,
225 libboost_type_erasure.so,
226 libboost_unit_test_framework.so,
227 libboost_wave.so,
228 and libboost_wserialization.so
229 </seg>
230 <seg>
231 /usr/include/boost
232 </seg>
233 </seglistitem>
234 </segmentedlist>
235
236 </sect2>
237
238</sect1>
Note: See TracBrowser for help on using the repository browser.