source: BOOK/final-system/common/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.8 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  <sect2 role="package">
18    <title/>
19
20    <para>Pkg-config is a tool to help you insert the correct compiler options
21    on the command line when compiling applications and libraries.</para>
22
23  </sect2>
24
25  <sect2 role="installation">
26    <title>Installation of Pkg-config</title>
27
28    <para os="a">Prepare Pkg-config for compilation:</para>
29
30<screen os="b"><userinput>./configure --prefix=/usr</userinput></screen>
31
32    <variablelist os="bb">
33      <title>The meaning of the new configure option:</title>
34
35      <varlistentry>
36        <term><parameter>GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include"</parameter></term>
37        <term><parameter>GLIB_LIBS="-lglib-2.0"</parameter></term>
38        <listitem>
39          <para>Pkg-config no longer comes with Glib, and because Pkg-config
40        has not been installed itself it needs to be told where Glib is.</para>
41        </listitem>
42      </varlistentry>
43    </variablelist>
44
45    <para os="c">Compile the package:</para>
46
47<screen os="d"><userinput>make</userinput></screen>
48
49    <para os="e">To test the results, issue:
50    <userinput>make check</userinput>.</para>
51
52    <para os="f">Install the package:</para>
53
54<screen os="g"><userinput>make install</userinput></screen>
55
56  </sect2>
57
58  <sect2 id="contents-pkg-config" role="content">
59    <title>Contents of Pkg-config</title>
60
61    <segmentedlist>
62      <segtitle>Installed programs</segtitle>
63      <segtitle>Installed directory</segtitle>
64
65      <seglistitem>
66        <seg>pkg-config</seg>
67        <seg>/usr/share/doc/pkg-config</seg>
68      </seglistitem>
69    </segmentedlist>
70
71    <variablelist>
72      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
73      <?dbfo list-presentation="list"?>
74      <?dbhtml list-presentation="table"?>
75
76      <varlistentry id="pkg-config">
77        <term><command>pkg-config</command></term>
78        <listitem>
79          <para>The <command>pkg-config</command> program is used to retrieve
80          information about installed libraries in the system. It is typically
81          used to compile and link against one or more libraries.</para>
82          <indexterm zone="ch-system-pkg-config pkg-config">
83            <primary sortas="b-pkg-config">pkg-config</primary>
84          </indexterm>
85        </listitem>
86      </varlistentry>
87
88    </variablelist>
89
90  </sect2>
91
92</sect1>
Note: See TracBrowser for help on using the repository browser.