[feeb99a] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[feeb99a] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[1b9e36e] | 7 | <!ENTITY gtk2-download-http "&gnome-download-http;/gtk+/2.14/gtk+->k2-version;.tar.bz2">
|
---|
| 8 | <!ENTITY gtk2-download-ftp "ftp://ftp.gtk.org/pub/gtk/2.14/gtk+->k2-version;.tar.bz2">
|
---|
| 9 | <!ENTITY gtk2-md5sum "72bf65a54d2d29a6644dc0d28313ee67">
|
---|
| 10 | <!ENTITY gtk2-size "16.5 MB">
|
---|
| 11 | <!ENTITY gtk2-buildsize "285 MB">
|
---|
| 12 | <!ENTITY gtk2-time "4.6 SBU">
|
---|
[feeb99a] | 13 | ]>
|
---|
| 14 |
|
---|
[a8eba10] | 15 | <sect1 id="gtk2" xreflabel="GTK+->k2-version;">
|
---|
[39fbd200] | 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
|
---|
[b74ee079] | 33 | <application>GTK+</application> libraries. These are useful
|
---|
[39fbd200] | 34 | for creating graphical user interfaces for applications.</para>
|
---|
| 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>Download (HTTP): <ulink url=">k2-download-http;"/></para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (FTP): <ulink url=">k2-download-ftp;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download MD5 sum: >k2-md5sum;</para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download size: >k2-size;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Estimated disk space required: >k2-buildsize;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated build time: >k2-time;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | </itemizedlist>
|
---|
| 57 |
|
---|
| 58 | <bridgehead renderas="sect3">GTK+ Dependencies</bridgehead>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[76a39aa] | 61 | <para role="required"><xref linkend="cairo"/>,
|
---|
[39fbd200] | 62 | <xref linkend="pango"/>, and
|
---|
| 63 | <xref linkend="atk"/></para>
|
---|
| 64 |
|
---|
[f6deaf77] | 65 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[1b9e36e] | 66 | <para role="recommended"><xref linkend="libtiff"/>,
|
---|
[ed733658] | 67 | <xref linkend="jasper"/>
|
---|
[1b9e36e] | 68 | and <xref linkend="libjpeg"/></para>
|
---|
[f6deaf77] | 69 |
|
---|
| 70 | <para>Though not required, the GTK developers expect
|
---|
[1b9e36e] | 71 | <application>libtiff</application>, <application>libjasper</application>
|
---|
| 72 | and <application>libjpeg</application> to be installed. Other packages also
|
---|
| 73 | expect <application>GTK+</application>-2 to be built with support for these
|
---|
[f6deaf77] | 74 | graphics packages as well.</para>
|
---|
| 75 |
|
---|
[39fbd200] | 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[5d4e5c7] | 77 | <para role="optional"><xref linkend="cups"/>,
|
---|
| 78 | <xref linkend="gtk-doc"/>, and
|
---|
[39fbd200] | 79 | <xref linkend="docbook-utils"/></para>
|
---|
| 80 |
|
---|
[c5c2654] | 81 | <para condition="html" role="usernotes">User Notes:
|
---|
| 82 | <ulink url="&blfs-wiki;/gtk+2"/></para>
|
---|
| 83 |
|
---|
[39fbd200] | 84 | </sect2>
|
---|
| 85 |
|
---|
| 86 | <sect2 role="installation">
|
---|
| 87 | <title>Installation of GTK+</title>
|
---|
| 88 |
|
---|
| 89 | <para>Install <application>GTK+</application> by running
|
---|
| 90 | the following commands:</para>
|
---|
| 91 |
|
---|
[f6deaf77] | 92 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
[39fbd200] | 93 | make</userinput></screen>
|
---|
| 94 |
|
---|
[c9786f06] | 95 | <para>To test the results, issue: <command>make check</command>. Note that
|
---|
| 96 | you must run the tests from a session with X Window Display capability
|
---|
| 97 | (i.e., not a text-based terminal/console) as the tests attempt to open an X
|
---|
[1b9e36e] | 98 | window, and the tests can take an excessively long time.</para>
|
---|
[39fbd200] | 99 |
|
---|
| 100 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 101 |
|
---|
[0011bd6] | 102 | <screen role="root"><userinput>make install &&
|
---|
[4dffff6] | 103 | install -v -m755 -d /usr/share/doc/gtk+->k2-version;/{faq,tutorial} &&
|
---|
| 104 | cp -v -R docs/faq/html/* /usr/share/doc/gtk+->k2-version;/faq &&
|
---|
[5d4e5c7] | 105 | cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+->k2-version;/tutorial &&
|
---|
| 106 | install -v -m644 docs/*.txt /usr/share/doc/gtk+->k2-version;</userinput></screen>
|
---|
[39fbd200] | 107 |
|
---|
| 108 | </sect2>
|
---|
| 109 |
|
---|
| 110 | <sect2 role="commands">
|
---|
| 111 | <title>Command Explanations</title>
|
---|
| 112 |
|
---|
| 113 | <para><parameter>--sysconfdir=/etc</parameter>: This switch installs the
|
---|
| 114 | configuration files into <filename class="directory">/etc</filename>
|
---|
| 115 | instead of <filename class="directory">/usr/etc</filename>.</para>
|
---|
| 116 |
|
---|
| 117 | <para><option>--enable-gtk-doc</option>: This switch will rebuild
|
---|
[0d35663] | 118 | the API documentation during the <command>make</command> command. Ensure
|
---|
| 119 | you really want to rebuild this documentation (and end up with what is
|
---|
| 120 | already shipped in the source tree) as it takes a very long time.</para>
|
---|
[39fbd200] | 121 |
|
---|
[f6deaf77] | 122 | <para><option>--without-libtiff</option>: Use this switch if you
|
---|
| 123 | don't have <application>libtiff</application> installed.</para>
|
---|
| 124 |
|
---|
| 125 | <para><option>--without-libjpeg</option>: Use this switch if you
|
---|
| 126 | don't have <application>libjpeg</application> installed.</para>
|
---|
| 127 |
|
---|
[1b9e36e] | 128 | <para><option>--without-libjasper</option>: Use this switch if you
|
---|
| 129 | don't have <application>libjasper</application> installed.</para>
|
---|
| 130 |
|
---|
| 131 | <para><parameter>--disable-static</parameter>: This switch prevents the
|
---|
| 132 | static libraries from being built.</para>
|
---|
| 133 |
|
---|
[39fbd200] | 134 | </sect2>
|
---|
| 135 |
|
---|
| 136 | <sect2 role="content">
|
---|
| 137 | <title>Contents</title>
|
---|
| 138 |
|
---|
| 139 | <segmentedlist>
|
---|
| 140 | <segtitle>Installed Programs</segtitle>
|
---|
| 141 | <segtitle>Installed Libraries</segtitle>
|
---|
| 142 | <segtitle>Installed Directories</segtitle>
|
---|
| 143 |
|
---|
| 144 | <seglistitem>
|
---|
| 145 | <seg>gdk-pixbuf-csource, gdk-pixbuf-query-loaders, gtk-demo,
|
---|
| 146 | gtk-query-immodules-2.0, and gtk-update-icon-cache</seg>
|
---|
| 147 | <seg>libgdk_pixbuf-2.0.so, libgdk-x11-2.0.so, libgtk-x11-2.0.so,
|
---|
[1b9e36e] | 148 | libgdk_pixbuf_xlib-2.0.so, libgailutil.so and numerous engine, module, and
|
---|
[39fbd200] | 149 | loader plugins</seg>
|
---|
| 150 | <seg>/etc/gtk-2.0, /usr/include/gtk-2.0, /usr/lib/gtk-2.0,
|
---|
[0011bd6] | 151 | /usr/share/doc/gtk+->k2-version;, /usr/share/gtk-2.0,
|
---|
[c5c2654] | 152 | /usr/share/gtk-doc/html/{gdk,gdk-pixbuf,gtk},
|
---|
[0011bd6] | 153 | /usr/share/themes/Default/gtk*, /usr/share/themes/Emacs and
|
---|
| 154 | /usr/share/themes/Raleigh</seg>
|
---|
[39fbd200] | 155 | </seglistitem>
|
---|
| 156 | </segmentedlist>
|
---|
| 157 |
|
---|
| 158 | <variablelist>
|
---|
| 159 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 160 | <?dbfo list-presentation="list"?>
|
---|
| 161 | <?dbhtml list-presentation="table"?>
|
---|
| 162 |
|
---|
| 163 | <varlistentry id="gdk-pixbuf-csource">
|
---|
| 164 | <term><command>gdk-pixbuf-csource</command></term>
|
---|
| 165 | <listitem>
|
---|
| 166 | <para>generates C code containing images, useful for compiling
|
---|
| 167 | images directly into programs.</para>
|
---|
| 168 | <indexterm zone="gtk2 gdk-pixbuf-csource">
|
---|
| 169 | <primary sortas="b-gdk-pixbuf-csource">gdk-pixbuf-csource</primary>
|
---|
| 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
| 174 | <varlistentry id="gdk-pixbuf-query-loaders">
|
---|
| 175 | <term><command>gdk-pixbuf-query-loaders</command></term>
|
---|
| 176 | <listitem>
|
---|
| 177 | <para>collects information about loadable modules for gdk-pixbuf
|
---|
| 178 | and writes it to standard output.</para>
|
---|
| 179 | <indexterm zone="gtk2 gdk-pixbuf-query-loaders">
|
---|
| 180 | <primary
|
---|
| 181 | sortas="b-gdk-pixbuf-query-loaders">gdk-pixbuf-query-loaders</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
| 186 | <varlistentry id="gtk-query-immodules-2.0">
|
---|
| 187 | <term><command>gtk-query-immodules-2.0</command></term>
|
---|
| 188 | <listitem>
|
---|
| 189 | <para>collects information about loadable input method modules for
|
---|
| 190 | <application>GTK+</application> and writes it to standard output.</para>
|
---|
| 191 | <indexterm zone="gtk2 gtk-query-immodules-2.0">
|
---|
| 192 | <primary
|
---|
| 193 | sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
|
---|
| 194 | </indexterm>
|
---|
| 195 | </listitem>
|
---|
| 196 | </varlistentry>
|
---|
| 197 |
|
---|
| 198 | <varlistentry id="gtk-update-icon-cache">
|
---|
| 199 | <term><command>gtk-update-icon-cache</command></term>
|
---|
| 200 | <listitem>
|
---|
| 201 | <para>creates mmap()able cache files for icon themes.</para>
|
---|
| 202 | <indexterm zone="gtk2 gtk-update-icon-cache">
|
---|
| 203 | <primary sortas="b-gtk-update-icon-cache">gtk-update-icon-cache</primary>
|
---|
| 204 | </indexterm>
|
---|
| 205 | </listitem>
|
---|
| 206 | </varlistentry>
|
---|
| 207 |
|
---|
| 208 | <varlistentry id="GTK2libs">
|
---|
| 209 | <term>GTK+ Libraries</term>
|
---|
| 210 | <listitem>
|
---|
| 211 | <para>provide an API to implement graphical user interfaces.</para>
|
---|
| 212 | <indexterm zone="gtk2 GTK2libs">
|
---|
| 213 | <primary sortas="c-GTK2libs">GTK+ Libraries</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
| 218 | </variablelist>
|
---|
| 219 |
|
---|
| 220 | </sect2>
|
---|
[f45b1953] | 221 |
|
---|
| 222 | </sect1>
|
---|