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 | <!ENTITY gtk2-download-http "&gnome-download-http;/gtk+/2.20/gtk+->k2-version;.tar.bz2">
|
---|
8 | <!ENTITY gtk2-download-ftp "ftp://ftp.gtk.org/pub/gtk/2.20/gtk+->k2-version;.tar.bz2">
|
---|
9 | <!ENTITY gtk2-md5sum "53e6f3a93bd22934878fc4a4a34c68aa">
|
---|
10 | <!ENTITY gtk2-size "18.2 MB">
|
---|
11 | <!ENTITY gtk2-buildsize "331 MB">
|
---|
12 | <!ENTITY gtk2-time "7.0 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="gtk2" xreflabel="GTK+->k2-version;">
|
---|
16 | <?dbhtml filename="gtk2.html" ?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>GTK+->k2-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="gtk2">
|
---|
26 | <primary sortas="a-GTK2">GTK2</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to GTK+</title>
|
---|
31 |
|
---|
32 | <para>The <application>GTK+</application> package contains
|
---|
33 | <application>GTK+</application> libraries. These are useful
|
---|
34 | for creating graphical user interfaces for applications.</para>
|
---|
35 |
|
---|
36 | &lfs65_checked;
|
---|
37 |
|
---|
38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
39 | <itemizedlist spacing="compact">
|
---|
40 | <listitem>
|
---|
41 | <para>Download (HTTP): <ulink url=">k2-download-http;"/></para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>Download (FTP): <ulink url=">k2-download-ftp;"/></para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download MD5 sum: >k2-md5sum;</para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download size: >k2-size;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Estimated disk space required: >k2-buildsize;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Estimated build time: >k2-time;</para>
|
---|
57 | </listitem>
|
---|
58 | </itemizedlist>
|
---|
59 |
|
---|
60 | <bridgehead renderas="sect3">GTK+ Dependencies</bridgehead>
|
---|
61 |
|
---|
62 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
63 | <para role="required"><xref linkend="cairo"/>,
|
---|
64 | <xref linkend="pango"/>, and
|
---|
65 | <xref linkend="atk"/></para>
|
---|
66 |
|
---|
67 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
68 | <para role="recommended"><xref linkend="libtiff"/>,
|
---|
69 | <xref linkend="libjpeg"/>, and
|
---|
70 | <xref linkend="hicolor-icon-theme"/></para>
|
---|
71 |
|
---|
72 | <!-- hicolor-icon-theme is required for the test suite -->
|
---|
73 |
|
---|
74 | <para>Though not required, the <application>GTK+</application> developers
|
---|
75 | expect <application>libtiff</application>, and
|
---|
76 | <application>libjpeg</application> to be installed. Other packages also
|
---|
77 | expect <application>GTK+</application>-2 to be built with support for these
|
---|
78 | graphics packages as well.</para>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
81 | <para role="optional"><xref linkend="cups"/>,
|
---|
82 | <xref linkend="jasper"/>,
|
---|
83 | <xref linkend="docbook-utils"/>,
|
---|
84 | <ulink url="http://beagle-project.org/Main_Page">libbeagle</ulink>,
|
---|
85 | <xref linkend="gobject-introspection"/>,
|
---|
86 | <xref linkend="gtk-doc"/>, and
|
---|
87 | <ulink url="http://www.tracker-project.org/">Tracker</ulink></para>
|
---|
88 |
|
---|
89 | <para condition="html" role="usernotes">User Notes:
|
---|
90 | <ulink url="&blfs-wiki;/gtk+2"/></para>
|
---|
91 |
|
---|
92 | </sect2>
|
---|
93 |
|
---|
94 | <sect2 role="installation">
|
---|
95 | <title>Installation of GTK+</title>
|
---|
96 |
|
---|
97 | <para>Install <application>GTK+</application> by running
|
---|
98 | the following commands:</para>
|
---|
99 |
|
---|
100 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
101 | make</userinput></screen>
|
---|
102 |
|
---|
103 | <para>To test the results, issue: <command>make check</command>. Note that
|
---|
104 | you must run the tests from a session with X Window Display capability
|
---|
105 | (i.e., not a text-based terminal/console) as the tests attempt to open an X
|
---|
106 | window, and the tests can take an excessively long time. Using an X Window,
|
---|
107 | the tests should take less than .3 SBUs</para>
|
---|
108 |
|
---|
109 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
110 |
|
---|
111 | <screen role="root"><userinput>make install &&
|
---|
112 | install -v -m755 -d /usr/share/doc/gtk+->k2-version;/{faq,tutorial} &&
|
---|
113 | cp -v -R docs/faq/html/* /usr/share/doc/gtk+->k2-version;/faq &&
|
---|
114 | cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+->k2-version;/tutorial &&
|
---|
115 | install -v -m644 docs/*.txt /usr/share/doc/gtk+->k2-version;</userinput></screen>
|
---|
116 |
|
---|
117 | <warning>
|
---|
118 | <para>If you installed the package on to your system using a
|
---|
119 | <quote>DESTDIR</quote> method, important files were not installed and
|
---|
120 | must be copied and/or generated. First generate two files using the
|
---|
121 | following commands as the <systemitem class="username">root</systemitem>
|
---|
122 | user:</para>
|
---|
123 |
|
---|
124 | <screen role="root"><userinput>gdk-pixbuf-query-loaders >/etc/gtk-2.0/gdk-pixbuf.loaders &&
|
---|
125 | gtk-query-immodules-2.0 >/etc/gtk-2.0/gtk.immodules</userinput></screen>
|
---|
126 |
|
---|
127 | <para>There is a bug in the <filename>Makefile</filename> that skips the
|
---|
128 | installation of the <filename class="extension">.1</filename> man files.
|
---|
129 | Install them using the following commands as the
|
---|
130 | <systemitem class="username">root</systemitem> user:</para>
|
---|
131 | <screen role="root"><userinput>install -m644 -v gdk-pixbuf/gdk-pixbuf-csource.1 \
|
---|
132 | docs/reference/gdk-pixbuf/gdk-pixbuf-query-loaders.1 \
|
---|
133 | docs/reference/gtk/gtk-builder-convert.1 \
|
---|
134 | docs/reference/gtk/gtk-query-immodules-2.0.1 \
|
---|
135 | docs/reference/gtk/gtk-update-icon-cache.1 \
|
---|
136 | /usr/share/man/man1</userinput></screen>
|
---|
137 | </warning>
|
---|
138 |
|
---|
139 | </sect2>
|
---|
140 |
|
---|
141 | <sect2 role="commands">
|
---|
142 | <title>Command Explanations</title>
|
---|
143 |
|
---|
144 | <para><parameter>--sysconfdir=/etc</parameter>: This switch installs the
|
---|
145 | configuration files into <filename class="directory">/etc</filename>
|
---|
146 | instead of <filename class="directory">/usr/etc</filename>.</para>
|
---|
147 |
|
---|
148 | <para><option>--enable-gtk-doc</option>: This switch will rebuild
|
---|
149 | the API documentation during the <command>make</command> command. Ensure
|
---|
150 | you really want to rebuild this documentation (and end up with what is
|
---|
151 | already shipped in the source tree) as it takes a very long time.</para>
|
---|
152 |
|
---|
153 | <para><option>--without-libtiff</option>: Use this switch if you
|
---|
154 | don't have <application>libtiff</application> installed.</para>
|
---|
155 |
|
---|
156 | <para><option>--without-libjpeg</option>: Use this switch if you
|
---|
157 | don't have <application>libjpeg</application> installed.</para>
|
---|
158 |
|
---|
159 | <para><option>--with-libjasper</option>: Use this option if you
|
---|
160 | have <application>libjasper</application> installed.</para>
|
---|
161 |
|
---|
162 | <para><parameter>--disable-static</parameter>: This switch prevents the
|
---|
163 | static libraries from being built.</para>
|
---|
164 |
|
---|
165 | </sect2>
|
---|
166 |
|
---|
167 | <sect2 role="content">
|
---|
168 | <title>Contents</title>
|
---|
169 |
|
---|
170 | <segmentedlist>
|
---|
171 | <segtitle>Installed Programs</segtitle>
|
---|
172 | <segtitle>Installed Libraries</segtitle>
|
---|
173 | <segtitle>Installed Directories</segtitle>
|
---|
174 |
|
---|
175 | <seglistitem>
|
---|
176 | <seg>gdk-pixbuf-csource, gdk-pixbuf-query-loaders, gtk-builder-convert,
|
---|
177 | gtk-demo, gtk-query-immodules-2.0, and gtk-update-icon-cache</seg>
|
---|
178 | <seg>libpixmap.so, im-am-et.so, im-cedilla.so, im-cyrillic-translit.so,
|
---|
179 | im-inuktitut.so, im-ipa.so, im-multipress.so, im-thai.so, im-ti-er.so,
|
---|
180 | im-ti-et.so, im-viqr.so, im-xim.so, libpixbufloader-ani.so,
|
---|
181 | libpixbufloader-bmp.so, libpixbufloader-gif.so, libpixbufloader-icns.so,
|
---|
182 | libpixbufloader-ico.so, libpixbufloader-jpeg.so, libpixbufloader-pcx.so,
|
---|
183 | libpixbufloader-png.so, libpixbufloader-pnm.so, libpixbufloader-qtif.so,
|
---|
184 | libpixbufloader-ras.so, libpixbufloader-tga.so, libpixbufloader-tiff.so,
|
---|
185 | libpixbufloader-wbmp.so, libpixbufloader-xbm.so, libpixbufloader-xpm.so,
|
---|
186 | libprintbackend-file.so, libprintbackend-lpr.so,
|
---|
187 | libferret.so, libgail.so, libgailutil.so, libgdk-x11-2.0.so,
|
---|
188 | libgdk_pixbuf-2.0.so, libgdk_pixbuf_xlib-2.0.so, and
|
---|
189 | libgtk-x11-2.0.so</seg>
|
---|
190 | <seg>/etc/gtk-2.0, /usr/{include/{gail-1.0/{gail,libgail-util},
|
---|
191 | gtk-2.0/{gdk-pixbuf-xlib,gtk},gtk-unix-print-2.0/gtk},
|
---|
192 | lib/gtk-2.0/{2.10.0/{engines,immodules,loaders,printbackends},include,
|
---|
193 | modules},share/{doc/gtk+->k2-version;/{faq/stylesheet-images,
|
---|
194 | tutorial/{images,stylesheet-images}},gtk-2.0/demo,
|
---|
195 | gtk-doc/html/{gail-libgail-util,gdk-pixbuf,gtk},
|
---|
196 | themes/{Default/gtk-2.0-key,Emacs/gtk-2.0-key,Raleigh/gtk-2.0}}}</seg>
|
---|
197 | </seglistitem>
|
---|
198 | </segmentedlist>
|
---|
199 |
|
---|
200 | <variablelist>
|
---|
201 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
202 | <?dbfo list-presentation="list"?>
|
---|
203 | <?dbhtml list-presentation="table"?>
|
---|
204 |
|
---|
205 | <varlistentry id="gdk-pixbuf-csource">
|
---|
206 | <term><command>gdk-pixbuf-csource</command></term>
|
---|
207 | <listitem>
|
---|
208 | <para>generates C code containing images, useful for compiling
|
---|
209 | images directly into programs.</para>
|
---|
210 | <indexterm zone="gtk2 gdk-pixbuf-csource">
|
---|
211 | <primary sortas="b-gdk-pixbuf-csource">gdk-pixbuf-csource</primary>
|
---|
212 | </indexterm>
|
---|
213 | </listitem>
|
---|
214 | </varlistentry>
|
---|
215 |
|
---|
216 | <varlistentry id="gdk-pixbuf-query-loaders">
|
---|
217 | <term><command>gdk-pixbuf-query-loaders</command></term>
|
---|
218 | <listitem>
|
---|
219 | <para>collects information about loadable modules for gdk-pixbuf
|
---|
220 | and writes it to standard output.</para>
|
---|
221 | <indexterm zone="gtk2 gdk-pixbuf-query-loaders">
|
---|
222 | <primary
|
---|
223 | sortas="b-gdk-pixbuf-query-loaders">gdk-pixbuf-query-loaders</primary>
|
---|
224 | </indexterm>
|
---|
225 | </listitem>
|
---|
226 | </varlistentry>
|
---|
227 |
|
---|
228 | <varlistentry id="gtk-builder-convert">
|
---|
229 | <term><command>gtk-builder-convert</command></term>
|
---|
230 | <listitem>
|
---|
231 | <para>converts glade files into XML files which can be loaded with
|
---|
232 | GtkBuilder.</para>
|
---|
233 | <indexterm zone="gtk2 gtk-builder-convert">
|
---|
234 | <primary
|
---|
235 | sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
|
---|
236 | </indexterm>
|
---|
237 | </listitem>
|
---|
238 | </varlistentry>
|
---|
239 |
|
---|
240 | <varlistentry id="gtk-demo">
|
---|
241 | <term><command>gtk-demo</command></term>
|
---|
242 | <listitem>
|
---|
243 | <para>demonstrates <application>GTK+</application> functionality and
|
---|
244 | provides code for the examples.</para>
|
---|
245 | <indexterm zone="gtk2 gtk-demo">
|
---|
246 | <primary
|
---|
247 | sortas="b-gtk-demo">gtk-demo</primary>
|
---|
248 | </indexterm>
|
---|
249 | </listitem>
|
---|
250 | </varlistentry>
|
---|
251 |
|
---|
252 | <varlistentry id="gtk-query-immodules-2.0">
|
---|
253 | <term><command>gtk-query-immodules-2.0</command></term>
|
---|
254 | <listitem>
|
---|
255 | <para>collects information about loadable input method modules for
|
---|
256 | <application>GTK+</application> and writes it to standard output.</para>
|
---|
257 | <indexterm zone="gtk2 gtk-query-immodules-2.0">
|
---|
258 | <primary
|
---|
259 | sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
|
---|
260 | </indexterm>
|
---|
261 | </listitem>
|
---|
262 | </varlistentry>
|
---|
263 |
|
---|
264 | <varlistentry id="gtk-update-icon-cache">
|
---|
265 | <term><command>gtk-update-icon-cache</command></term>
|
---|
266 | <listitem>
|
---|
267 | <para>creates mmap()able cache files for icon themes.</para>
|
---|
268 | <indexterm zone="gtk2 gtk-update-icon-cache">
|
---|
269 | <primary sortas="b-gtk-update-icon-cache">gtk-update-icon-cache</primary>
|
---|
270 | </indexterm>
|
---|
271 | </listitem>
|
---|
272 | </varlistentry>
|
---|
273 |
|
---|
274 | <varlistentry id="GTK2libs">
|
---|
275 | <term>GTK+ Libraries</term>
|
---|
276 | <listitem>
|
---|
277 | <para>provide an API to implement graphical user interfaces.</para>
|
---|
278 | <indexterm zone="gtk2 GTK2libs">
|
---|
279 | <primary sortas="c-GTK2libs">GTK+ Libraries</primary>
|
---|
280 | </indexterm>
|
---|
281 | </listitem>
|
---|
282 | </varlistentry>
|
---|
283 |
|
---|
284 | </variablelist>
|
---|
285 |
|
---|
286 | </sect2>
|
---|
287 |
|
---|
288 | </sect1>
|
---|