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 "9d38cd4e2c94c3cea97d0e2924814acc">
|
---|
10 | <!ENTITY cmake-size "5.8 MB">
|
---|
11 | <!ENTITY cmake-buildsize "247 MB (additional 176 MB for tests)">
|
---|
12 | <!ENTITY cmake-time "0.9 SBU (additional 5.5 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 | &lfs74_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">Additional Downloads</bridgehead>
|
---|
78 | <itemizedlist spacing="compact">
|
---|
79 | <listitem>
|
---|
80 | <para>
|
---|
81 | Required patch:
|
---|
82 | <ulink url="&patch-root;/cmake-&cmake-version;-freetype-1.patch"/>
|
---|
83 | </para>
|
---|
84 | </listitem>
|
---|
85 | </itemizedlist>
|
---|
86 |
|
---|
87 | <bridgehead renderas="sect3">CMake Dependencies</bridgehead>
|
---|
88 |
|
---|
89 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
90 | <para role="recommended">
|
---|
91 | <xref linkend="curl"/>,
|
---|
92 | <xref linkend="libarchive"/> and
|
---|
93 | <xref linkend="expat"/>
|
---|
94 | </para>
|
---|
95 |
|
---|
96 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
97 | <para role="optional">
|
---|
98 | <xref linkend="subversion"/> (for testing) and
|
---|
99 | <xref linkend="qt4"/> (for the Qt-based GUI)
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <para condition="html" role="usernotes">User Notes:
|
---|
103 | <ulink url="&blfs-wiki;/cmake"/>
|
---|
104 | </para>
|
---|
105 | </sect2>
|
---|
106 |
|
---|
107 | <sect2 role="installation">
|
---|
108 | <title>Installation of CMake</title>
|
---|
109 |
|
---|
110 | <para>
|
---|
111 | Install <application>CMake</application> by running the following
|
---|
112 | commands:
|
---|
113 | </para>
|
---|
114 |
|
---|
115 | <screen><userinput>patch -Np1 -i ../cmake-&cmake-version;-freetype-1.patch &&
|
---|
116 | ./bootstrap --prefix=/usr \
|
---|
117 | --system-libs \
|
---|
118 | --mandir=/share/man \
|
---|
119 | --docdir=/share/doc/cmake-&cmake-version; &&
|
---|
120 | make</userinput></screen>
|
---|
121 |
|
---|
122 | <para>
|
---|
123 | To test the results, issue: <command>make -k test</command>. Some
|
---|
124 | tests may fail for unknown reasons. Other tests depend on the
|
---|
125 | availability of remote sites, and may fail if those sites are
|
---|
126 | not available.
|
---|
127 | </para>
|
---|
128 |
|
---|
129 | <para>
|
---|
130 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
131 | </para>
|
---|
132 |
|
---|
133 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
134 |
|
---|
135 | </sect2>
|
---|
136 |
|
---|
137 | <sect2 role="commands">
|
---|
138 | <title>Command Explanations</title>
|
---|
139 |
|
---|
140 | <para>
|
---|
141 | <parameter>--system-libs</parameter>: This switch forces the build system
|
---|
142 | to link against <application>Zlib</application>,
|
---|
143 | <application>Bzip2</application>, <application>cURL</application>,
|
---|
144 | <application>Expat</application> and <application>libarchive</application>
|
---|
145 | installed on the system.
|
---|
146 | </para>
|
---|
147 |
|
---|
148 | <para>
|
---|
149 | <option>--qt-gui</option>: This switch enables building of the
|
---|
150 | <application>Qt</application>-based GUI for
|
---|
151 | <application>CMake</application>.
|
---|
152 | </para>
|
---|
153 |
|
---|
154 | </sect2>
|
---|
155 |
|
---|
156 | <sect2 role="content">
|
---|
157 | <title>Contents</title>
|
---|
158 |
|
---|
159 | <segmentedlist>
|
---|
160 | <segtitle>Installed Programs</segtitle>
|
---|
161 | <segtitle>Installed Libraries</segtitle>
|
---|
162 | <segtitle>Installed Directories</segtitle>
|
---|
163 |
|
---|
164 | <seglistitem>
|
---|
165 | <seg>
|
---|
166 | ccmake, cmake, cmake-gui, cpack and ctest
|
---|
167 | </seg>
|
---|
168 | <seg>
|
---|
169 | None
|
---|
170 | </seg>
|
---|
171 | <seg>
|
---|
172 | /usr/share/cmake-&cmake-major-version; and
|
---|
173 | /usr/share/doc/cmake-&cmake-version;
|
---|
174 | </seg>
|
---|
175 | </seglistitem>
|
---|
176 | </segmentedlist>
|
---|
177 |
|
---|
178 |
|
---|
179 | <variablelist>
|
---|
180 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
181 | <?dbfo list-presentation="list"?>
|
---|
182 | <?dbhtml list-presentation="table"?>
|
---|
183 |
|
---|
184 | <varlistentry id="ccmake">
|
---|
185 | <term><command>ccmake</command></term>
|
---|
186 | <listitem>
|
---|
187 | <para>
|
---|
188 | is a curses based interactive frontend to
|
---|
189 | <command>cmake</command>.
|
---|
190 | </para>
|
---|
191 | <indexterm zone="cmake ccmake">
|
---|
192 | <primary sortas="b-ccmake">ccmake</primary>
|
---|
193 | </indexterm>
|
---|
194 | </listitem>
|
---|
195 | </varlistentry>
|
---|
196 |
|
---|
197 | <varlistentry id="cmake-prog">
|
---|
198 | <term><command>cmake</command></term>
|
---|
199 | <listitem>
|
---|
200 | <para>
|
---|
201 | is the makefile generator.
|
---|
202 | </para>
|
---|
203 | <indexterm zone="cmake cmake-prog">
|
---|
204 | <primary sortas="b-cmake">cmake</primary>
|
---|
205 | </indexterm>
|
---|
206 | </listitem>
|
---|
207 | </varlistentry>
|
---|
208 |
|
---|
209 | <varlistentry id="cmake-gui">
|
---|
210 | <term><command>cmake-gui</command></term>
|
---|
211 | <listitem>
|
---|
212 | <para>
|
---|
213 | is the <application>Qt</application>-based frontent to
|
---|
214 | <command>cmake</command>.
|
---|
215 | </para>
|
---|
216 | <indexterm zone="cmake cmake-gui">
|
---|
217 | <primary sortas="b-cmake-gui">cmake-gui</primary>
|
---|
218 | </indexterm>
|
---|
219 | </listitem>
|
---|
220 | </varlistentry>
|
---|
221 |
|
---|
222 | <varlistentry id="cpack">
|
---|
223 | <term><command>cpack</command></term>
|
---|
224 | <listitem>
|
---|
225 | <para>
|
---|
226 | is the <application>CMake</application> packaging program.
|
---|
227 | </para>
|
---|
228 | <indexterm zone="cmake cpack">
|
---|
229 | <primary sortas="b-cpack">cpack</primary>
|
---|
230 | </indexterm>
|
---|
231 | </listitem>
|
---|
232 | </varlistentry>
|
---|
233 |
|
---|
234 | <varlistentry id="ctest">
|
---|
235 | <term><command>ctest</command></term>
|
---|
236 | <listitem>
|
---|
237 | <para>
|
---|
238 | is a testing utility for cmake-generated build trees.
|
---|
239 | </para>
|
---|
240 | <indexterm zone="cmake ctest">
|
---|
241 | <primary sortas="b-ctest">ctest</primary>
|
---|
242 | </indexterm>
|
---|
243 | </listitem>
|
---|
244 | </varlistentry>
|
---|
245 |
|
---|
246 | </variablelist>
|
---|
247 |
|
---|
248 | </sect2>
|
---|
249 |
|
---|
250 | </sect1>
|
---|