Rev 1594 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1259 | jmengual | 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 | |||
8 | <sect1 id="ch-system-pkg-config" role="wrap"> |
||
9 | <?dbhtml filename="pkg-config.html"?> |
||
10 | |||
11 | <title>Pkg-config-&pkg-config-version;</title> |
||
12 | |||
13 | <indexterm zone="ch-system-pkg-config"> |
||
14 | <primary sortas="a-Pkg-config">Pkg-config</primary> |
||
15 | </indexterm> |
||
16 | |||
17 | <sect2 role="package"> |
||
18 | <title/> |
||
19 | |||
4004 | myou72 | 20 | <para>Pkg-config est un outil pour vous aider à insérer les bonnes options |
1259 | jmengual | 21 | du compilateur sur la ligne de commande lors de la compilation d'applications |
4004 | myou72 | 22 | et de bibliothèques.</para> |
1259 | jmengual | 23 | |
24 | </sect2> |
||
25 | |||
26 | <sect2 role="installation"> |
||
27 | <title>Installation de Pkg-config</title> |
||
28 | |||
4004 | myou72 | 29 | <para os="a">Préparez la compilation de Pkg-config :</para> |
1259 | jmengual | 30 | |
1322 | jmengual | 31 | <screen os="b"><userinput>GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \ |
32 | GLIB_LIBS="-lglib-2.0" \ |
||
33 | ./configure --prefix=/usr</userinput></screen> |
||
1259 | jmengual | 34 | |
1322 | jmengual | 35 | <variablelist os="bb"> |
36 | <title>Voici la signification de la nouvelle option de configuration :</title> |
||
37 | |||
38 | <varlistentry> |
||
39 | <term><parameter>GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include"</parameter></term> |
||
40 | <term><parameter>GLIB_LIBS="-lglib-2.0"</parameter></term> |
||
41 | <listitem> |
||
42 | <para>Pkg-config n'est plus fourni avec Glib et, vu que Pkg-config |
||
4004 | myou72 | 43 | ne l'a pas lui-même installé, il faut lui dire où se trouve Glib.</para> |
1322 | jmengual | 44 | </listitem> |
45 | </varlistentry> |
||
46 | </variablelist> |
||
47 | |||
1259 | jmengual | 48 | <para os="c">Compilez le paquet :</para> |
49 | |||
50 | <screen os="d"><userinput>make</userinput></screen> |
||
51 | |||
4004 | myou72 | 52 | <para os="e">Pour tester les résultats, effectuez : |
1259 | jmengual | 53 | <userinput>make check</userinput>.</para> |
54 | |||
55 | <para os="f">Installez le paquet :</para> |
||
56 | |||
57 | <screen os="g"><userinput>make install</userinput></screen> |
||
58 | |||
59 | </sect2> |
||
60 | |||
61 | <sect2 id="contents-pkg-config" role="content"> |
||
62 | <title>Contenu de Pkg-config</title> |
||
63 | |||
64 | <segmentedlist> |
||
4004 | myou72 | 65 | <segtitle>Programmes installés</segtitle> |
66 | <segtitle>Répertoire installé</segtitle> |
||
1259 | jmengual | 67 | |
68 | <seglistitem> |
||
69 | <seg>pkg-config</seg> |
||
70 | <seg>/usr/share/doc/pkg-config</seg> |
||
71 | </seglistitem> |
||
72 | </segmentedlist> |
||
73 | |||
74 | <variablelist> |
||
75 | <bridgehead renderas="sect3">Descriptions courtes</bridgehead> |
||
76 | <?dbfo list-presentation="list"?> |
||
77 | <?dbhtml list-presentation="table"?> |
||
78 | |||
79 | <varlistentry id="pkg-config"> |
||
80 | <term><command>pkg-config</command></term> |
||
81 | <listitem> |
||
4004 | myou72 | 82 | <para>Le programme <command>pkg-config</command> est utilisé pour |
83 | récupérer des informations sur les bibliothèques installées dans le |
||
84 | système. On l'utilise en général pour compiler et lier à une ou |
||
85 | plusieurs bibliothèques.</para> |
||
1259 | jmengual | 86 | <indexterm zone="ch-system-pkg-config pkg-config"> |
87 | <primary sortas="b-pkg-config">pkg-config</primary> |
||
88 | </indexterm> |
||
89 | </listitem> |
||
90 | </varlistentry> |
||
91 | |||
92 | </variablelist> |
||
93 | |||
94 | </sect2> |
||
95 | </sect1> |
||
96 |