Subversion Repositories svn LFS-FR

Rev

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">
1325 jmengual 14
    <primary sortas="a-Pkg-config">Pkg-config</primary>
1259 jmengual 15
  </indexterm>
16
 
1270 jmengual 17
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
1259 jmengual 18
  href="../common/pkg-config.xml"
19
  xpointer="xpointer(//*[@role='package'])"/>
20
 
21
  <sect2 role="installation">
22
    <title>Installation de Pkg-config</title>
23
 
1270 jmengual 24
    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
1259 jmengual 25
    href="../common/pkg-config.xml"
26
    xpointer="xpointer(//*[@os='a'])"/>
27
 
1322 jmengual 28
<screen os="b"><userinput>GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include" \
29
  GLIB_LIBS="-lglib-2.0" \
30
  CC="gcc ${BUILD64}" \
1259 jmengual 31
  ./configure --prefix=/usr \
32
    --with-pc-path=/usr/share/pkgconfig </userinput></screen>
33
 
1322 jmengual 34
    <variablelist os="bb">
35
      <title>Voici la signification de la nouvelle option de configuratinn&nbsp;:</title>
36
 
37
      <varlistentry>
38
        <term><parameter>GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/libi64/glib-2.0/include"</parameter></term>
39
        <term><parameter>GLIB_LIBS="-lglib-2.0"</parameter></term>
40
        <listitem>
41
          <para>Pkg-config n'est plus fourni avec Glib et, Pkg-config ne l'ayant pas
4004 myou72 42
          installé lui-même, il faut lui dire où se trouve Glib.</para>
1322 jmengual 43
        </listitem>
44
      </varlistentry>
45
    </variablelist>
46
 
1270 jmengual 47
    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
1259 jmengual 48
    href="../common/pkg-config.xml"
49
    xpointer="xpointer(//*[@os='c'])"/>
50
 
1270 jmengual 51
    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
1259 jmengual 52
    href="../common/pkg-config.xml"
53
    xpointer="xpointer(//*[@os='d'])"/>
54
 
1270 jmengual 55
    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
1259 jmengual 56
    href="../common/pkg-config.xml"
57
    xpointer="xpointer(//*[@os='e'])"/>
58
 
1270 jmengual 59
    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
1259 jmengual 60
    href="../common/pkg-config.xml"
61
    xpointer="xpointer(//*[@os='f'])"/>
62
 
1270 jmengual 63
    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
1259 jmengual 64
    href="../common/pkg-config.xml"
65
    xpointer="xpointer(//*[@os='g'])"/>
66
 
4004 myou72 67
    <para os="m1">Sur des constructions multilib, le répertoire de la
68
    bibliothèque a été enlevé du path de recherche par défaut de <command>pkg-config</command>.
69
    Réglez des variables d'environnement pour aider à régler correctement
70
    le chemin à l'avenir&nbsp;:</para>
1259 jmengual 71
 
72
<screen os="m2"><userinput>export PKG_CONFIG_PATH32="/usr/lib/pkgconfig"
73
export PKG_CONFIG_PATH64="/usr/lib64/pkgconfig"</userinput></screen>
74
 
75
    <para os="m3">Export these variables to prevent any issues in the
76
    future.</para>
77
 
1396 jmengual 78
<screen os="m4"><userinput>cat &gt;&gt; /root/.bash_profile &lt;&lt; EOF
1259 jmengual 79
export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}"
80
export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}"
81
EOF</userinput></screen>
82
 
83
  </sect2>
84
 
1270 jmengual 85
  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
1259 jmengual 86
  href="../common/pkg-config.xml"
87
  xpointer="xpointer(id('contents-pkg-config'))"/>
88
 
89
</sect1>