source: general/prog/cmake.xml@ a9435c4

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 7.8 7.9 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 a9435c4 was a9435c4, checked in by Fernando de Oliveira <fernando@…>, 9 years ago

Update to cmake-3.1.0.
Update to dhcpcd-6.6.6.

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

  • Property mode set to 100644
File size: 8.5 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 cmake-download-http "http://www.cmake.org/files/v&cmake-major-version;/cmake-&cmake-version;.tar.gz">
8 <!ENTITY cmake-download-ftp " ">
9 <!ENTITY cmake-md5sum "188eb7dc9b1b82b363bc51c0d3f1d461">
10 <!ENTITY cmake-size "5.7 MB">
11 <!ENTITY cmake-buildsize "258 MB (additional 250 MB for tests)">
12 <!ENTITY cmake-time "1.9 SBU (additional 7.1 SBU for tests)">
13]>
14
15<sect1 id="cmake" xreflabel="CMake-&cmake-version;">
16 <?dbhtml filename="cmake.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>CMake-&cmake-version;</title>
24
25 <indexterm zone="cmake">
26 <primary sortas="a-CMake">CMake</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to CMake</title>
31
32 <para>
33 The <application>CMake</application> package contains a modern
34 toolset used for generating Makefiles. It is a successor of the
35 auto-generated <command>configure</command> script and aims to
36 be platform- and compiler-independent. A significant user of
37 <application>CMake</application> is <application>KDE</application>
38 since version 4.
39 </para>
40
41 &lfs76_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&cmake-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&cmake-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &cmake-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &cmake-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &cmake-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &cmake-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">CMake Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="curl"/> and
82 <xref linkend="libarchive"/>
83 </para>
84
85 <bridgehead renderas="sect4">Optional</bridgehead>
86 <para role="optional">
87 <xref linkend="clucene"/>,
88 <xref linkend="dbus"/>,
89 <xref linkend="freetype2"/>,
90 <xref linkend="giflib"/>,
91 <xref linkend="git"/>,
92 <xref linkend="gtkmm2"/>,
93 <xref linkend="libglade"/>,
94 <xref linkend="libjpeg"/>,
95 <xref linkend="libmng"/>,
96 <xref linkend="librsvg"/>,
97 <xref linkend="libtiff"/>,
98 <xref linkend="libxml2"/>,
99 <xref linkend="mercurial"/>,
100 <xref linkend="mesalib"/>,
101 <xref linkend="openjdk"/>, or
102 <xref linkend="java"/>, or
103 <ulink url="http://www.oracle.com/technetwork/java/javase/downloads/">Oracle's JDK</ulink>,
104 <xref linkend="openssh"/>,
105 <xref linkend="qt4"/>, or <xref linkend="qt5"/> (for the Qt-based GUI),
106 <xref linkend="pangomm"/>,
107 <xref linkend="phonon"/>,
108 <xref linkend="sqlite"/>,
109 <xref linkend="subversion"/> (for testing),
110 <xref linkend="valgrind"/>,
111 <ulink url="https://www.dartlang.org/tools/download.html">Dart</ulink>,
112 and
113 <ulink url="http://pypi.python.org/pypi/Sphinx">Sphinx</ulink>
114 (for building documents)
115 </para>
116
117 <para condition="html" role="usernotes">User Notes:
118 <ulink url="&blfs-wiki;/cmake"/>
119 </para>
120 </sect2>
121
122 <sect2 role="installation">
123 <title>Installation of CMake</title>
124
125 <para>
126 If <application>Qt4</application> and <application>Qt5</application> are
127 installed in <filename class="directory">/opt</filename>, use
128 <command>source setqt4</command> or <command>source setqt5</command> to
129 choose which one will be used to build the Qt-based GUI.
130 </para>
131
132 <para>
133 Install <application>CMake</application> by running the following
134 commands:
135 </para>
136
137<screen><userinput>./bootstrap --prefix=/usr \
138 --system-libs \
139 --mandir=/share/man \
140 --docdir=/share/doc/cmake-&cmake-version; &amp;&amp;
141make</userinput></screen>
142
143 <para>
144 To test the results, issue: <command>bin/ctest</command>.
145 <!-- Please, don't remove this comment, needed if tests start to fail
146 again. If you want to investigate a problem with a given "problem1-test",
147 use <command>bin/ctest -R "problem1-test"</command> and, to omit it, use
148 <command>bin/ctest -E "problem1-test"</command>. These options can be
149 used together: <command>bin/ctest -R "problem1-test" -E
150 "problem2-test"</command>. Option -N can be used to display all
151 available tests, and you can run <command>bin/ctest</command> for a
152 sub-set of tests by using separated by spaces names or numbers as
153 options. Option -/-help can be used to show all options.-->
154
155 </para>
156
157 <para>
158 Now, as the <systemitem class="username">root</systemitem> user:
159 </para>
160
161<screen role="root"><userinput>make install</userinput></screen>
162
163 </sect2>
164
165 <sect2 role="commands">
166 <title>Command Explanations</title>
167
168 <para>
169 <parameter>--system-libs</parameter>: This switch forces the build system
170 to link against <application>Zlib</application>,
171 <application>Bzip2</application>, <application>cURL</application>,
172 <application>Expat</application> and <application>libarchive</application>
173 installed on the system.
174 </para>
175
176 <para>
177 <option>--qt-gui</option>: This switch enables building of the
178 <application>Qt</application>-based GUI for
179 <application>CMake</application>.
180 </para>
181
182 </sect2>
183
184 <sect2 role="content">
185 <title>Contents</title>
186
187 <segmentedlist>
188 <segtitle>Installed Programs</segtitle>
189 <segtitle>Installed Libraries</segtitle>
190 <segtitle>Installed Directories</segtitle>
191
192 <seglistitem>
193 <seg>
194 ccmake, cmake, cmake-gui (optional), cpack and ctest
195 </seg>
196 <seg>
197 None
198 </seg>
199 <seg>
200 /usr/share/cmake-&cmake-major-version; and
201 /usr/share/doc/cmake-&cmake-version;
202 </seg>
203 </seglistitem>
204 </segmentedlist>
205
206
207 <variablelist>
208 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
209 <?dbfo list-presentation="list"?>
210 <?dbhtml list-presentation="table"?>
211
212 <varlistentry id="ccmake">
213 <term><command>ccmake</command></term>
214 <listitem>
215 <para>
216 is a curses based interactive frontend to
217 <command>cmake</command>.
218 </para>
219 <indexterm zone="cmake ccmake">
220 <primary sortas="b-ccmake">ccmake</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="cmake-prog">
226 <term><command>cmake</command></term>
227 <listitem>
228 <para>
229 is the makefile generator.
230 </para>
231 <indexterm zone="cmake cmake-prog">
232 <primary sortas="b-cmake">cmake</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="cmake-gui">
238 <term><command>cmake-gui</command></term>
239 <listitem>
240 <para>
241 (optional) is the <application>Qt</application>-based frontent to
242 <command>cmake</command>.
243 </para>
244 <indexterm zone="cmake cmake-gui">
245 <primary sortas="b-cmake-gui">cmake-gui</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="cpack">
251 <term><command>cpack</command></term>
252 <listitem>
253 <para>
254 is the <application>CMake</application> packaging program.
255 </para>
256 <indexterm zone="cmake cpack">
257 <primary sortas="b-cpack">cpack</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="ctest">
263 <term><command>ctest</command></term>
264 <listitem>
265 <para>
266 is a testing utility for cmake-generated build trees.
267 </para>
268 <indexterm zone="cmake ctest">
269 <primary sortas="b-ctest">ctest</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 </variablelist>
275
276 </sect2>
277
278</sect1>
Note: See TracBrowser for help on using the repository browser.