File: compiling.sgml

package info (click to toggle)
gtkextra 3.3.4-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,580 kB
  • sloc: ansic: 60,728; xml: 28,485; sh: 4,758; makefile: 476
file content (61 lines) | stat: -rw-r--r-- 2,071 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
]>
<refentry id="compiling" revision="22 Oct 2008">
<refmeta>
<refentrytitle>Compiling GtkExtra Applications</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GtkExtra Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>Compiling GtkExtra Applications</refname>
<refpurpose>
How to compile your GtkExtra+ application
</refpurpose>
</refnamediv>

<refsect1>
<title>Compiling GtkExtra Applications on UNIX</title>

<para>
To compile a GtkExtra application, you need to tell the compiler where to 
find the GtkExtra header files and libraries. This is done with the
<literal>pkg-config</literal> utility.
</para>
<para>
The following interactive shell session demonstrates how
<literal>pkg-config</literal> is used (the actual output on 
your system may be different):
<programlisting>
$ pkg-config --cflags gtkextra-3.0 
-Iusr/include/gtkextra-3.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1  
$ pkg-config --libs gtkextra-3.0
-lgtkextra-x11-3.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  

</programlisting>
</para>
<para>
The simplest way to compile a program is to use the "backticks"
feature of the shell. If you enclose a command in backticks
(<emphasis>not single quotes</emphasis>), then its output will be
substituted into the command line before execution. So to compile 
a GtkExtra program, you would type the following:
<programlisting>
$ cc `pkg-config --cflags --libs gtkextra-3.0` hello.c -o hello
</programlisting>
</para>


<para>
The recommended way of using GtkExtra has always been to only include the
toplevel headers <filename>gtkextra.h</filename>.
</para>

</refsect1>
</refentry>