source: BOOK/final-system/multilib/pkg-config.xml @ 8518b40

clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 8518b40 was 8518b40, checked in by William Harrington <kb0iic@…>, 12 years ago

Update pkg-config-lite commands as glib isn't required.

  • Property mode set to 100644
File size: 2.9 KB
Line 
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  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
18  href="../common/pkg-config.xml"
19  xpointer="xpointer(//*[@role='package'])"/>
20
21  <sect2 role="installation">
22    <title>Installation of Pkg-config</title>
23
24    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
25    href="../common/pkg-config.xml"
26    xpointer="xpointer(//*[@os='a'])"/>
27
28<screen os="b"><userinput>CC="gcc ${BUILD64}" ./configure --prefix=/usr \
29    --with-pc-path=/usr/share/pkgconfig </userinput></screen>
30
31    <variablelist os="bb">
32      <title>The meaning of the new configure option:</title>
33
34      <varlistentry>
35        <term><parameter>GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/libi64/glib-2.0/include"</parameter></term>
36        <term><parameter>GLIB_LIBS="-lglib-2.0"</parameter></term>
37        <listitem>
38          <para>Pkg-config no longer comes with Glib and because Pkg-config
39        has not been installed itself it needs to be told where Glib is.</para>
40        </listitem>
41      </varlistentry>
42    </variablelist>
43
44
45    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
46    href="../common/pkg-config.xml"
47    xpointer="xpointer(//*[@os='c'])"/>
48
49    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
50    href="../common/pkg-config.xml"
51    xpointer="xpointer(//*[@os='d'])"/>
52
53    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
54    href="../common/pkg-config.xml"
55    xpointer="xpointer(//*[@os='e'])"/>
56
57    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
58    href="../common/pkg-config.xml"
59    xpointer="xpointer(//*[@os='f'])"/>
60
61    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
62    href="../common/pkg-config.xml"
63    xpointer="xpointer(//*[@os='g'])"/>
64
65    <para os="m1">On multilib builds the library direcory has been removed from
66    the default search path of <command>pkg-config</command>. Set some
67    environment variables to help set the path correctly in the future:</para>
68
69<screen os="m2"><userinput>export PKG_CONFIG_PATH32="/usr/lib/pkgconfig"
70export PKG_CONFIG_PATH64="/usr/lib64/pkgconfig"</userinput></screen>
71
72    <para os="m3">Export these variables to prevent any issues in the
73    future.</para>
74
75<screen os="m4"><userinput>cat &gt;&gt; /root/.bash_profile &lt;&lt; EOF
76export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}"
77export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}"
78EOF</userinput></screen>
79
80  </sect2>
81
82  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
83  href="../common/pkg-config.xml"
84  xpointer="xpointer(id('contents-pkg-config'))"/>
85
86</sect1>
Note: See TracBrowser for help on using the repository browser.