[57f7cfa] | 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 |
|
---|
[2bcddd4] | 7 | <!ENTITY cmake-download-http "http://www.cmake.org/files/v&cmake-major-version;/cmake-&cmake-version;.tar.gz">
|
---|
[57f7cfa] | 8 | <!ENTITY cmake-download-ftp " ">
|
---|
[8ed30d52] | 9 | <!ENTITY cmake-md5sum "17c6513483d23590cbce6957ec6d1e66">
|
---|
[407637c] | 10 | <!ENTITY cmake-size "5.8 MB">
|
---|
[8ed30d52] | 11 | <!ENTITY cmake-buildsize "222 MB (additional 175 MB for tests)">
|
---|
| 12 | <!ENTITY cmake-time "1.5 SBU (additional 3.5 SBU for tests)">
|
---|
[57f7cfa] | 13 | ]>
|
---|
| 14 |
|
---|
[b7b6efc] | 15 | <sect1 id="cmake" xreflabel="CMake-&cmake-version;">
|
---|
[57f7cfa] | 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 |
|
---|
[b7b6efc] | 32 | <para>
|
---|
[0d7900a] | 33 | The <application>CMake</application> package contains a modern
|
---|
| 34 | toolset used for generating Makefiles. It is a successor of the
|
---|
[b7b6efc] | 35 | auto-generated <command>configure</command> script and aims to
|
---|
[0d7900a] | 36 | be platform- and compiler-independent. A significant user of
|
---|
[b7b6efc] | 37 | <application>CMake</application> is <application>KDE</application>
|
---|
| 38 | since version 4.
|
---|
| 39 | </para>
|
---|
[57f7cfa] | 40 |
|
---|
[6392ac9] | 41 | &lfs75_checked;
|
---|
[57f7cfa] | 42 |
|
---|
| 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
[b7b6efc] | 46 | <para>
|
---|
| 47 | Download (HTTP): <ulink url="&cmake-download-http;"/>
|
---|
| 48 | </para>
|
---|
[57f7cfa] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[b7b6efc] | 51 | <para>
|
---|
| 52 | Download (FTP): <ulink url="&cmake-download-ftp;"/>
|
---|
| 53 | </para>
|
---|
[57f7cfa] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[b7b6efc] | 56 | <para>
|
---|
| 57 | Download MD5 sum: &cmake-md5sum;
|
---|
| 58 | </para>
|
---|
[57f7cfa] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[b7b6efc] | 61 | <para>
|
---|
| 62 | Download size: &cmake-size;
|
---|
| 63 | </para>
|
---|
[57f7cfa] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[b7b6efc] | 66 | <para>
|
---|
| 67 | Estimated disk space required: &cmake-buildsize;
|
---|
| 68 | </para>
|
---|
[57f7cfa] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[b7b6efc] | 71 | <para>
|
---|
| 72 | Estimated build time: &cmake-time;
|
---|
| 73 | </para>
|
---|
[57f7cfa] | 74 | </listitem>
|
---|
| 75 | </itemizedlist>
|
---|
| 76 |
|
---|
[dae9ec4] | 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 |
|
---|
[57f7cfa] | 87 | <bridgehead renderas="sect3">CMake Dependencies</bridgehead>
|
---|
| 88 |
|
---|
[e1b2c0e] | 89 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 90 | <para role="recommended">
|
---|
[0d7900a] | 91 | <xref linkend="curl"/>,
|
---|
| 92 | <xref linkend="libarchive"/> and
|
---|
[b88be39] | 93 | <xref linkend="expat"/>
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
[2bcddd4] | 96 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b88be39] | 97 | <para role="optional">
|
---|
[2bcddd4] | 98 | <xref linkend="subversion"/> (for testing) and
|
---|
[e51a42b6] | 99 | <xref linkend="qt4"/> or <xref linkend="qt5"/> (for the Qt-based GUI)
|
---|
[57f7cfa] | 100 | </para>
|
---|
| 101 |
|
---|
| 102 | <para condition="html" role="usernotes">User Notes:
|
---|
[b7b6efc] | 103 | <ulink url="&blfs-wiki;/cmake"/>
|
---|
| 104 | </para>
|
---|
[57f7cfa] | 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2 role="installation">
|
---|
| 108 | <title>Installation of CMake</title>
|
---|
| 109 |
|
---|
[b7b6efc] | 110 | <para>
|
---|
| 111 | Install <application>CMake</application> by running the following
|
---|
| 112 | commands:
|
---|
| 113 | </para>
|
---|
[57f7cfa] | 114 |
|
---|
[dae9ec4] | 115 | <screen><userinput>patch -Np1 -i ../cmake-&cmake-version;-freetype-1.patch &&
|
---|
| 116 | ./bootstrap --prefix=/usr \
|
---|
[b88be39] | 117 | --system-libs \
|
---|
[57f7cfa] | 118 | --mandir=/share/man \
|
---|
[dae9ec4] | 119 | --docdir=/share/doc/cmake-&cmake-version; &&
|
---|
[57f7cfa] | 120 | make</userinput></screen>
|
---|
| 121 |
|
---|
[b7b6efc] | 122 | <para>
|
---|
[dfff8213] | 123 | To test the results, issue: <command>make -k test</command>. Some
|
---|
[94b68056] | 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.
|
---|
[b7b6efc] | 127 | </para>
|
---|
[b88be39] | 128 |
|
---|
[b7b6efc] | 129 | <para>
|
---|
| 130 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 131 | </para>
|
---|
[57f7cfa] | 132 |
|
---|
| 133 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 134 |
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2 role="commands">
|
---|
| 138 | <title>Command Explanations</title>
|
---|
| 139 |
|
---|
[b7b6efc] | 140 | <para>
|
---|
[407637c] | 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.
|
---|
[b7b6efc] | 146 | </para>
|
---|
[0d7900a] | 147 |
|
---|
[b7b6efc] | 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>
|
---|
[57f7cfa] | 153 |
|
---|
| 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | <sect2 role="content">
|
---|
| 157 | <title>Contents</title>
|
---|
| 158 |
|
---|
| 159 | <segmentedlist>
|
---|
[fd27868] | 160 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 161 | <segtitle>Installed Libraries</segtitle>
|
---|
[fd27868] | 162 | <segtitle>Installed Directories</segtitle>
|
---|
[57f7cfa] | 163 |
|
---|
| 164 | <seglistitem>
|
---|
[b7b6efc] | 165 | <seg>
|
---|
[8ed30d52] | 166 | ccmake, cmake, cmake-gui (optional), cpack and ctest
|
---|
[b7b6efc] | 167 | </seg>
|
---|
[c3c56b2] | 168 | <seg>
|
---|
| 169 | None
|
---|
| 170 | </seg>
|
---|
[b7b6efc] | 171 | <seg>
|
---|
| 172 | /usr/share/cmake-&cmake-major-version; and
|
---|
| 173 | /usr/share/doc/cmake-&cmake-version;
|
---|
| 174 | </seg>
|
---|
[57f7cfa] | 175 | </seglistitem>
|
---|
| 176 | </segmentedlist>
|
---|
| 177 |
|
---|
[0d7900a] | 178 |
|
---|
[57f7cfa] | 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>
|
---|
[b7b6efc] | 187 | <para>
|
---|
| 188 | is a curses based interactive frontend to
|
---|
| 189 | <command>cmake</command>.
|
---|
| 190 | </para>
|
---|
[57f7cfa] | 191 | <indexterm zone="cmake ccmake">
|
---|
| 192 | <primary sortas="b-ccmake">ccmake</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
| 196 |
|
---|
[b7b6efc] | 197 | <varlistentry id="cmake-prog">
|
---|
[57f7cfa] | 198 | <term><command>cmake</command></term>
|
---|
| 199 | <listitem>
|
---|
[b7b6efc] | 200 | <para>
|
---|
| 201 | is the makefile generator.
|
---|
| 202 | </para>
|
---|
| 203 | <indexterm zone="cmake cmake-prog">
|
---|
[57f7cfa] | 204 | <primary sortas="b-cmake">cmake</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
[0d7900a] | 208 |
|
---|
[2bcddd4] | 209 | <varlistentry id="cmake-gui">
|
---|
| 210 | <term><command>cmake-gui</command></term>
|
---|
| 211 | <listitem>
|
---|
[b7b6efc] | 212 | <para>
|
---|
[8ed30d52] | 213 | (optional) is the <application>Qt</application>-based frontent to
|
---|
[b7b6efc] | 214 | <command>cmake</command>.
|
---|
| 215 | </para>
|
---|
[2bcddd4] | 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>
|
---|
[b7b6efc] | 225 | <para>
|
---|
| 226 | is the <application>CMake</application> packaging program.
|
---|
| 227 | </para>
|
---|
[2bcddd4] | 228 | <indexterm zone="cmake cpack">
|
---|
| 229 | <primary sortas="b-cpack">cpack</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
[0d7900a] | 232 | </varlistentry>
|
---|
| 233 |
|
---|
[2bcddd4] | 234 | <varlistentry id="ctest">
|
---|
| 235 | <term><command>ctest</command></term>
|
---|
| 236 | <listitem>
|
---|
[b7b6efc] | 237 | <para>
|
---|
| 238 | is a testing utility for cmake-generated build trees.
|
---|
| 239 | </para>
|
---|
[2bcddd4] | 240 | <indexterm zone="cmake ctest">
|
---|
| 241 | <primary sortas="b-ctest">ctest</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
[57f7cfa] | 245 |
|
---|
| 246 | </variablelist>
|
---|
| 247 |
|
---|
| 248 | </sect2>
|
---|
| 249 |
|
---|
| 250 | </sect1>
|
---|