source: BOOK/final-system/common/pkg-config.xml@ 813a65f

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 813a65f was fcf5e38, checked in by Chris Staub <chris@…>, 13 years ago

Grammar fix

  • 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 <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>GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \
31 GLIB_LIBS="-lglib-2.0" \
32 ./configure --prefix=/usr</userinput></screen>
33
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/lib/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 <para os="c">Compile the package:</para>
48
49<screen os="d"><userinput>make</userinput></screen>
50
51 <para os="e">To test the results, issue:
52 <userinput>make check</userinput>.</para>
53
54 <para os="f">Install the package:</para>
55
56<screen os="g"><userinput>make install</userinput></screen>
57
58 </sect2>
59
60 <sect2 id="contents-pkg-config" role="content">
61 <title>Contents of Pkg-config</title>
62
63 <segmentedlist>
64 <segtitle>Installed programs</segtitle>
65 <segtitle>Installed directory</segtitle>
66
67 <seglistitem>
68 <seg>pkg-config</seg>
69 <seg>/usr/share/doc/pkg-config</seg>
70 </seglistitem>
71 </segmentedlist>
72
73 <variablelist>
74 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
75 <?dbfo list-presentation="list"?>
76 <?dbhtml list-presentation="table"?>
77
78 <varlistentry id="pkg-config">
79 <term><command>pkg-config</command></term>
80 <listitem>
81 <para>The <command>pkg-config</command> program is used to retrieve
82 information about installed libraries in the system. It is typically
83 used to compile and link against one or more libraries.</para>
84 <indexterm zone="ch-system-pkg-config pkg-config">
85 <primary sortas="b-pkg-config">pkg-config</primary>
86 </indexterm>
87 </listitem>
88 </varlistentry>
89
90 </variablelist>
91
92 </sect2>
93
94</sect1>
Note: See TracBrowser for help on using the repository browser.