Subversion Repositories svn LFS-FR

Rev

Rev 1594 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;
]>

<sect1 id="ch-system-pkg-config" role="wrap">
  <?dbhtml filename="pkg-config.html"?>

  <title>Pkg-config-&pkg-config-version;</title>

  <indexterm zone="ch-system-pkg-config">
    <primary sortas="a-Pkg-config">Pkg-config</primary>
  </indexterm>

  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
 href="../common/pkg-config.xml"
 xpointer="xpointer(//*[@role='package'])"/>

  <sect2 role="installation">
    <title>Installation de Pkg-config</title>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
   href="../common/pkg-config.xml"
   xpointer="xpointer(//*[@os='a'])"/>

<screen os="b"><userinput>GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include" \
  GLIB_LIBS="-lglib-2.0" \
  CC="gcc ${BUILD64}" \
  ./configure --prefix=/usr \
    --with-pc-path=/usr/share/pkgconfig </userinput></screen>

    <variablelist os="bb">
      <title>Voici la signification de la nouvelle option de configuratinn&nbsp;:</title>

      <varlistentry>
        <term><parameter>GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/libi64/glib-2.0/include"</parameter></term>
        <term><parameter>GLIB_LIBS="-lglib-2.0"</parameter></term>
        <listitem>
          <para>Pkg-config n'est plus fourni avec Glib et, Pkg-config ne l'ayant pas
          installé lui-même, il faut lui dire où se trouve Glib.</para>
        </listitem>
      </varlistentry>
    </variablelist>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
   href="../common/pkg-config.xml"
   xpointer="xpointer(//*[@os='c'])"/>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
   href="../common/pkg-config.xml"
   xpointer="xpointer(//*[@os='d'])"/>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
   href="../common/pkg-config.xml"
   xpointer="xpointer(//*[@os='e'])"/>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
   href="../common/pkg-config.xml"
   xpointer="xpointer(//*[@os='f'])"/>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
   href="../common/pkg-config.xml"
   xpointer="xpointer(//*[@os='g'])"/>

    <para os="m1">Sur des constructions multilib, le répertoire de la
    bibliothèque a été enlevé du path de recherche par défaut de <command>pkg-config</command>.
    Réglez des variables d'environnement pour aider à régler correctement
    le chemin à l'avenir&nbsp;:</para>

<screen os="m2"><userinput>export PKG_CONFIG_PATH32="/usr/lib/pkgconfig"
export PKG_CONFIG_PATH64="/usr/lib64/pkgconfig"</userinput></screen>

    <para os="m3">Export these variables to prevent any issues in the
    future.</para>

<screen os="m4"><userinput>cat &gt;&gt; /root/.bash_profile &lt;&lt; EOF
export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}"
export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}"
EOF</userinput></screen>

  </sect2>

  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
 href="../common/pkg-config.xml"
 xpointer="xpointer(id('contents-pkg-config'))"/>

</sect1>