[f586fdb] | 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">
|
---|
[8ab693a] | 14 | <primary sortas="a-Pkg-config">Pkg-config</primary>
|
---|
[f586fdb] | 15 | </indexterm>
|
---|
| 16 |
|
---|
[dabbced] | 17 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[f586fdb] | 18 | href="../common/pkg-config.xml"
|
---|
| 19 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
| 20 |
|
---|
| 21 | <sect2 role="installation">
|
---|
| 22 | <title>Installation of Pkg-config</title>
|
---|
| 23 |
|
---|
[dabbced] | 24 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[f586fdb] | 25 | href="../common/pkg-config.xml"
|
---|
| 26 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
| 27 |
|
---|
[db065d5] | 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}" \
|
---|
[f586fdb] | 31 | ./configure --prefix=/usr \
|
---|
| 32 | --with-pc-path=/usr/share/pkgconfig </userinput></screen>
|
---|
| 33 |
|
---|
[db065d5] | 34 | <variablelist os="bb">
|
---|
| 35 | <title>The meaning of the new configure option:</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 no longer comes with Glib and because Pkg-config
|
---|
| 42 | has not been installed itself it needs to be told where Glib is.</para>
|
---|
| 43 | </listitem>
|
---|
| 44 | </varlistentry>
|
---|
| 45 | </variablelist>
|
---|
| 46 |
|
---|
| 47 |
|
---|
[dabbced] | 48 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[f586fdb] | 49 | href="../common/pkg-config.xml"
|
---|
| 50 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
| 51 |
|
---|
[dabbced] | 52 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[f586fdb] | 53 | href="../common/pkg-config.xml"
|
---|
| 54 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
| 55 |
|
---|
[dabbced] | 56 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[f586fdb] | 57 | href="../common/pkg-config.xml"
|
---|
| 58 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
| 59 |
|
---|
[dabbced] | 60 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[f586fdb] | 61 | href="../common/pkg-config.xml"
|
---|
| 62 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
| 63 |
|
---|
[dabbced] | 64 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[f586fdb] | 65 | href="../common/pkg-config.xml"
|
---|
| 66 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
| 67 |
|
---|
| 68 | <para os="m1">On multilib builds the library direcory has been removed from
|
---|
| 69 | the default search path of <command>pkg-config</command>. Set some
|
---|
| 70 | environment variables to help set the path correctly in the future:</para>
|
---|
| 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 |
|
---|
| 78 | <screen os="m4"><userinput>cat >> ${CLFS}/root/.bash_profile << EOF
|
---|
| 79 | export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}"
|
---|
| 80 | export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}"
|
---|
| 81 | EOF</userinput></screen>
|
---|
| 82 |
|
---|
| 83 | </sect2>
|
---|
| 84 |
|
---|
[dabbced] | 85 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[f586fdb] | 86 | href="../common/pkg-config.xml"
|
---|
| 87 | xpointer="xpointer(id('contents-pkg-config'))"/>
|
---|
| 88 |
|
---|
| 89 | </sect1>
|
---|