Rev 7042 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5853 | myou72 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
1443 | jmengual | 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; |
||
1774 | jmengual | 6 | <!ENTITY cmake-download-http "http://www.cmake.org/files/v&cmake-major-version;/cmake-&cmake-version;.tar.gz"> |
1443 | jmengual | 7 | <!ENTITY cmake-download-ftp " "> |
7042 | myou72 | 8 | <!ENTITY cmake-md5sum "4cb3ff35b2472aae70f542116d616e63"> |
7015 | myou72 | 9 | <!ENTITY cmake-size "6.5 Mo"> |
7039 | myou72 | 10 | <!ENTITY cmake-buildsize "704 Mo (avec les tests and cmake-gui)"> |
11 | <!ENTITY cmake-time "4 SBU, with parallelism = 4 (avec les tests and cmake-gui)"> |
||
1443 | jmengual | 12 | ]> |
13 | <sect1 id="cmake" xreflabel="cmake-&cmake-version;"> |
||
14 | <?dbhtml filename="cmake.html"?> |
||
15 | <sect1info> |
||
3167 | myou72 | 16 | <othername>$LastChangedBy : krejzi $</othername> |
3210 | myou72 | 17 | <date>$Date : 2013-01-25 17:32:25 +0100 (Fri, 25 Jan 2013) $</date> |
1443 | jmengual | 18 | </sect1info> |
19 | <title>CMake-&cmake-version;</title> |
||
20 | <indexterm zone="cmake"> |
||
21 | <primary sortas="a-CMake">CMake</primary> |
||
22 | </indexterm> |
||
23 | <sect2 role="package"> |
||
5853 | myou72 | 24 | <title>Introduction à CMake</title> |
1443 | jmengual | 25 | <para>Le paquet <application>CMake</application> contient un ensemble d'outils |
7054 | myou72 | 26 | modernes utilisé pour générer des fichiers Makefile. C'est |
5853 | myou72 | 27 | le successeur du script <command>configure</command> autogénéré et souhaite être |
28 | indépendant de la plate-forme et du compilateur. Un utilisateur significatif de |
||
2292 | myou72 | 29 | <application>CMake</application> est <application>KDE</application> depuis la version |
2295 | myou72 | 30 | 4.</para> |
31 | |||
6976 | myou72 | 32 | &lfs78_checked; |
1443 | jmengual | 33 | <bridgehead renderas="sect3">Informations sur le paquet</bridgehead> |
34 | <itemizedlist spacing="compact"> |
||
35 | <listitem> |
||
5853 | myou72 | 36 | <para>Téléchargement (HTTP) : <ulink url="&cmake-download-http;"/></para> |
1443 | jmengual | 37 | </listitem> |
38 | <listitem> |
||
5853 | myou72 | 39 | <para>Téléchargement (FTP) : <ulink url="&cmake-download-ftp;"/></para> |
1443 | jmengual | 40 | </listitem> |
41 | <listitem> |
||
5853 | myou72 | 42 | <para>Somme de contrôle MD5 du téléchargement : &cmake-md5sum;</para> |
1443 | jmengual | 43 | </listitem> |
44 | <listitem> |
||
5853 | myou72 | 45 | <para>Taille du téléchargement : &cmake-size;</para> |
1443 | jmengual | 46 | </listitem> |
47 | <listitem> |
||
48 | <para>Estimation de l'espace disque requis : &cmake-buildsize;</para> |
||
49 | </listitem> |
||
50 | <listitem> |
||
51 | <para>Estimation du temps de construction : &cmake-time;</para> |
||
52 | </listitem> |
||
53 | </itemizedlist> |
||
5853 | myou72 | 54 | <bridgehead renderas="sect3">Dépendances de CMake</bridgehead> |
55 | <bridgehead renderas="sect4">Recommandées</bridgehead> |
||
4188 | myou72 | 56 | <para role="recommented"> |
7011 | myou72 | 57 | <xref linkend="curl"/>, |
58 | <xref linkend="libarchive"/> et |
||
1443 | jmengual | 59 | </para> |
1774 | jmengual | 60 | <bridgehead renderas="sect4">Facultatives</bridgehead> |
1443 | jmengual | 61 | <para role="optional"> |
6507 | myou72 | 62 | <xref linkend="qt4"/> ou <xref linkend="qt5"/> (pour l'interface basée sur Qt), |
63 | <xref linkend="subversion"/> (pour les tests) et |
||
6354 | myou72 | 64 | <ulink url="http://pypi.python.org/pypi/Sphinx">Sphinx</ulink> |
6507 | myou72 | 65 | (pour la construction de la documentation) |
1443 | jmengual | 66 | </para> |
67 | <para condition="html" role="usernotes">Notes utilisateur : |
||
68 | <ulink url="&blfs-wiki;/cmake"/></para> |
||
69 | </sect2> |
||
70 | <sect2 role="installation"> |
||
71 | <title>Installation de CMake</title> |
||
6354 | myou72 | 72 | <para> |
73 | Si <application>Qt4</application> et <application>Qt5</application> sont installés |
||
74 | dans <filename class="directory">/opt</filename>, utilisez |
||
75 | <command>source setqt4</command> ou <command>source setqt5</command> pour choisir |
||
76 | lequel sera utilisé pour construire le GUI basé sur QT. |
||
77 | </para> |
||
5853 | myou72 | 78 | <para>Installez <application>CMake</application> en lançant les commandes |
1443 | jmengual | 79 | suivantes :</para> |
3532 | myou72 | 80 | <screen> |
7039 | myou72 | 81 | <userinput>./bootstrap --prefix=/usr --system-libs --mandir=/share/man --no-system-jsoncpp --docdir=/share/doc/cmake-&cmake-version; && |
3532 | myou72 | 82 | make</userinput> |
83 | </screen> |
||
5111 | myou72 | 84 | <para> |
6746 | myou72 | 85 | Pour tester les résultats, tapez: <command>bin/ctest |
86 | -j<replaceable><N></replaceable> -O |
||
87 | ../cmake-&cmake-version;-test.log</command>, ou |
||
88 | <replaceable><N></replaceable> est un entier entre 1 et le nombre de coeurs inclus de votre |
||
7016 | myou72 | 89 | processeur. Pour quelques systèmes, il peut être nécéssaire de lancer les tests seulement pour Qt4 en utilisant |
90 | <command>source setq4</command>, ensuite <command>export CXXFLAGS="-std=c++11"</command> (juste avant <command>./bootstrap ...</command>) |
||
91 | et penser à le désinitialiser après avoir terminé, avec <command>unset CXXFLAGS</command>. |
||
92 | Un des tests problématiques indique que la procédure de test trouve les bons fichiers Qt. Huit des 447 |
||
93 | tests sont connus pour échouer dans ces circonstances. |
||
6746 | myou72 | 94 | </para> |
2558 | myou72 | 95 | <para>Maintenant, en tant qu'utilisateur <systemitem class="username">root</systemitem> :</para> |
3532 | myou72 | 96 | <screen role="root"> |
97 | <userinput>make install</userinput> |
||
98 | </screen> |
||
1443 | jmengual | 99 | </sect2> |
100 | <sect2 role="commands"> |
||
101 | <title>Explications des commandes</title> |
||
5853 | myou72 | 102 | <para><parameter>--system-libs</parameter> : Ce paramètre oblige le système |
7011 | myou72 | 103 | de construction à se lier à <application>Zlib</application>, <application>Bzip2</application>, |
104 | <application>cURL</application>, <application>Expat</application> et |
||
105 | <application>libarchive</application> |
||
5853 | myou72 | 106 | installés sur le système.</para> |
6801 | myou72 | 107 | <para> |
108 | <parameter>--no-system-jsoncpp</parameter>: Ce paramètre enlève la bibliothèque |
||
109 | <application>JSON-C++</application> de la liste des bibliothèques systèmes. |
||
110 | Une version empaquetée de cette bibliothèque est utilisé à la place. |
||
111 | </para> |
||
5853 | myou72 | 112 | <para><option>--qt4-gui</option> : Ce paramètre construit une interface |
113 | graphique basée sur <application>Qt</application> pour |
||
1774 | jmengual | 114 | <application>CMake</application>.</para> |
1443 | jmengual | 115 | </sect2> |
116 | <sect2 role="content"> |
||
117 | <title>Contenu</title> |
||
118 | <segmentedlist> |
||
5853 | myou72 | 119 | <segtitle>Programmes installés</segtitle> |
120 | <segtitle>Bibliothèque installée</segtitle> |
||
121 | <segtitle>Répertoires installés</segtitle> |
||
1443 | jmengual | 122 | <seglistitem> |
3165 | myou72 | 123 | <seg> |
5583 | myou72 | 124 | ccmake, cmake, cmake-gui (facultative), cpack et ctest |
3165 | myou72 | 125 | </seg> |
126 | <seg> |
||
3225 | myou72 | 127 | Aucune |
128 | </seg> |
||
129 | <seg> |
||
3165 | myou72 | 130 | /usr/share/cmake-&cmake-major-version; et |
131 | /usr/share/doc/cmake-&cmake-version; |
||
132 | </seg> |
||
1443 | jmengual | 133 | </seglistitem> |
134 | </segmentedlist> |
||
135 | <variablelist> |
||
136 | <bridgehead renderas="sect3">Descriptions courtes</bridgehead> |
||
137 | <?dbfo list-presentation="list"?> |
||
138 | <?dbhtml list-presentation="table"?> |
||
139 | <varlistentry id="ccmake"> |
||
140 | <term><command>ccmake</command></term> |
||
141 | <listitem> |
||
5853 | myou72 | 142 | <para>est une interface interactive avec <command>cmake</command> basée sur curses.</para> |
1443 | jmengual | 143 | <indexterm zone="cmake ccmake"> |
144 | <primary sortas="b-ccmake">ccmake</primary> |
||
145 | </indexterm> |
||
146 | </listitem> |
||
147 | </varlistentry> |
||
3165 | myou72 | 148 | <varlistentry id="cmake-prog"> |
1443 | jmengual | 149 | <term><command>cmake</command></term> |
150 | <listitem> |
||
5853 | myou72 | 151 | <para>est le générateur de makefile.</para> |
3165 | myou72 | 152 | <indexterm zone="cmake cmake-prog"> |
1443 | jmengual | 153 | <primary sortas="b-cmake">cmake</primary> |
154 | </indexterm> |
||
155 | </listitem> |
||
156 | </varlistentry> |
||
1774 | jmengual | 157 | <varlistentry id="cmake-gui"> |
158 | <term><command>cmake-gui</command></term> |
||
159 | <listitem> |
||
5853 | myou72 | 160 | <para>(facultatif) est l'interface basée sur <application>Qt</application> de <command>cmake</command>.</para> |
1774 | jmengual | 161 | <indexterm zone="cmake cmake-gui"> |
162 | <primary sortas="b-cmake-gui">cmake-gui</primary> |
||
163 | </indexterm> |
||
164 | </listitem> |
||
165 | </varlistentry> |
||
166 | <varlistentry id="cpack"> |
||
167 | <term><command>cpack</command></term> |
||
168 | <listitem> |
||
3165 | myou72 | 169 | <para>est le programme d'empaquetage de <application>CMake</application>.</para> |
1774 | jmengual | 170 | <indexterm zone="cmake cpack"> |
171 | <primary sortas="b-cpack">cpack</primary> |
||
172 | </indexterm> |
||
173 | </listitem> |
||
7011 | myou72 | 174 | </varlistentry> |
1774 | jmengual | 175 | <varlistentry id="ctest"> |
176 | <term><command>ctest</command></term> |
||
177 | <listitem> |
||
5853 | myou72 | 178 | <para>est un outil de test des arborescences des constructions générées |
1774 | jmengual | 179 | par cmake.</para> |
180 | <indexterm zone="cmake ctest"> |
||
181 | <primary sortas="b-ctest">ctest</primary> |
||
182 | </indexterm> |
||
183 | </listitem> |
||
184 | </varlistentry> |
||
1443 | jmengual | 185 | </variablelist> |
186 | </sect2> |
||
187 | </sect1> |