source: general/genlib/boost.xml@ af40aac

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since af40aac was af40aac, checked in by Bruce Dubbs <bdubbs@…>, 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.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17361 af4574ff-66df-0310-9fd7-8a98e5e911e0

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