[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 |
|
---|
[70c255a] | 7 | <!ENTITY gtk2-download-http "&gnome-download-http;/gtk+/2.18/gtk+->k2-version;.tar.bz2">
|
---|
| 8 | <!ENTITY gtk2-download-ftp "ftp://ftp.gtk.org/pub/gtk/2.18/gtk+->k2-version;.tar.bz2">
|
---|
[74cfec8] | 9 | <!ENTITY gtk2-md5sum "3047875309f7f6030e03b0a95cf99c8c">
|
---|
| 10 | <!ENTITY gtk2-size "17.3 MB">
|
---|
| 11 | <!ENTITY gtk2-buildsize "294 MB">
|
---|
| 12 | <!ENTITY gtk2-time "3.8 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 |
|
---|
[70c255a] | 58 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 59 | <itemizedlist spacing="compact">
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Required patch: <ulink
|
---|
| 62 | url="&patch-root;/gtk+->k2-version;-jpeg7compatibility-1.patch"/></para>
|
---|
| 63 | </listitem>
|
---|
| 64 | </itemizedlist>
|
---|
| 65 |
|
---|
[39fbd200] | 66 | <bridgehead renderas="sect3">GTK+ Dependencies</bridgehead>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[76a39aa] | 69 | <para role="required"><xref linkend="cairo"/>,
|
---|
[39fbd200] | 70 | <xref linkend="pango"/>, and
|
---|
| 71 | <xref linkend="atk"/></para>
|
---|
| 72 |
|
---|
[f6deaf77] | 73 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[1b9e36e] | 74 | <para role="recommended"><xref linkend="libtiff"/>,
|
---|
[49f7d8b] | 75 | <xref linkend="jasper"/>,
|
---|
| 76 | <xref linkend="libjpeg"/>, and
|
---|
| 77 | <xref linkend="hicolor-icon-theme"/></para>
|
---|
[f6deaf77] | 78 |
|
---|
[49f7d8b] | 79 | <!-- hicolor-icon-theme is required for the test suite -->
|
---|
| 80 |
|
---|
| 81 | <para>Though not required, the <application>GTK+</application> developers expect
|
---|
[1b9e36e] | 82 | <application>libtiff</application>, <application>libjasper</application>
|
---|
| 83 | and <application>libjpeg</application> to be installed. Other packages also
|
---|
| 84 | expect <application>GTK+</application>-2 to be built with support for these
|
---|
[f6deaf77] | 85 | graphics packages as well.</para>
|
---|
| 86 |
|
---|
[39fbd200] | 87 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[5d4e5c7] | 88 | <para role="optional"><xref linkend="cups"/>,
|
---|
[74cfec8] | 89 | <xref linkend="docbook-utils"/>,
|
---|
| 90 | <ulink url="http://beagle-project.org/Main_Page">libbeagle</ulink>,
|
---|
[5d4e5c7] | 91 | <xref linkend="gtk-doc"/>, and
|
---|
[74cfec8] | 92 | <ulink url="http://www.tracker-project.org/">Tracker</ulink></para>
|
---|
[39fbd200] | 93 |
|
---|
[c5c2654] | 94 | <para condition="html" role="usernotes">User Notes:
|
---|
| 95 | <ulink url="&blfs-wiki;/gtk+2"/></para>
|
---|
| 96 |
|
---|
[39fbd200] | 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2 role="installation">
|
---|
| 100 | <title>Installation of GTK+</title>
|
---|
| 101 |
|
---|
| 102 | <para>Install <application>GTK+</application> by running
|
---|
| 103 | the following commands:</para>
|
---|
| 104 |
|
---|
[ae6001ee] | 105 | <screen><userinput>patch -Np1 -i ../gtk+->k2-version;-jpeg7compatibility-1.patch &&
|
---|
| 106 | ./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
[39fbd200] | 107 | make</userinput></screen>
|
---|
| 108 |
|
---|
[c9786f06] | 109 | <para>To test the results, issue: <command>make check</command>. Note that
|
---|
| 110 | you must run the tests from a session with X Window Display capability
|
---|
| 111 | (i.e., not a text-based terminal/console) as the tests attempt to open an X
|
---|
[1b9e36e] | 112 | window, and the tests can take an excessively long time.</para>
|
---|
[39fbd200] | 113 |
|
---|
| 114 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 115 |
|
---|
[0011bd6] | 116 | <screen role="root"><userinput>make install &&
|
---|
[4dffff6] | 117 | install -v -m755 -d /usr/share/doc/gtk+->k2-version;/{faq,tutorial} &&
|
---|
| 118 | cp -v -R docs/faq/html/* /usr/share/doc/gtk+->k2-version;/faq &&
|
---|
[5d4e5c7] | 119 | cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+->k2-version;/tutorial &&
|
---|
| 120 | install -v -m644 docs/*.txt /usr/share/doc/gtk+->k2-version;</userinput></screen>
|
---|
[39fbd200] | 121 |
|
---|
| 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 | <sect2 role="commands">
|
---|
| 125 | <title>Command Explanations</title>
|
---|
| 126 |
|
---|
| 127 | <para><parameter>--sysconfdir=/etc</parameter>: This switch installs the
|
---|
| 128 | configuration files into <filename class="directory">/etc</filename>
|
---|
| 129 | instead of <filename class="directory">/usr/etc</filename>.</para>
|
---|
| 130 |
|
---|
| 131 | <para><option>--enable-gtk-doc</option>: This switch will rebuild
|
---|
[0d35663] | 132 | the API documentation during the <command>make</command> command. Ensure
|
---|
| 133 | you really want to rebuild this documentation (and end up with what is
|
---|
| 134 | already shipped in the source tree) as it takes a very long time.</para>
|
---|
[39fbd200] | 135 |
|
---|
[f6deaf77] | 136 | <para><option>--without-libtiff</option>: Use this switch if you
|
---|
| 137 | don't have <application>libtiff</application> installed.</para>
|
---|
| 138 |
|
---|
| 139 | <para><option>--without-libjpeg</option>: Use this switch if you
|
---|
| 140 | don't have <application>libjpeg</application> installed.</para>
|
---|
| 141 |
|
---|
[1b9e36e] | 142 | <para><option>--without-libjasper</option>: Use this switch if you
|
---|
| 143 | don't have <application>libjasper</application> installed.</para>
|
---|
| 144 |
|
---|
| 145 | <para><parameter>--disable-static</parameter>: This switch prevents the
|
---|
| 146 | static libraries from being built.</para>
|
---|
| 147 |
|
---|
[39fbd200] | 148 | </sect2>
|
---|
| 149 |
|
---|
| 150 | <sect2 role="content">
|
---|
| 151 | <title>Contents</title>
|
---|
| 152 |
|
---|
| 153 | <segmentedlist>
|
---|
| 154 | <segtitle>Installed Programs</segtitle>
|
---|
| 155 | <segtitle>Installed Libraries</segtitle>
|
---|
| 156 | <segtitle>Installed Directories</segtitle>
|
---|
| 157 |
|
---|
| 158 | <seglistitem>
|
---|
[49f7d8b] | 159 | <seg>gdk-pixbuf-csource, gdk-pixbuf-query-loaders,
|
---|
| 160 | gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0,
|
---|
| 161 | and gtk-update-icon-cache</seg>
|
---|
| 162 | <seg>libgailutil.so, libgdk-x11-2.0.so, libgdk_pixbuf-2.0.so,
|
---|
| 163 | libgdk_pixbuf_xlib-2.0.so, libgtk-x11-2.0.so, and numerous engine,
|
---|
| 164 | module, and loader plugins</seg>
|
---|
| 165 | <seg>/etc/gtk-2.0, /usr/include/gail-1.0, /usr/include/gtk-2.0,
|
---|
| 166 | /usr/include/gtk-unix-print-2.0, /usr/lib/gtk-2.0,
|
---|
[0011bd6] | 167 | /usr/share/doc/gtk+->k2-version;, /usr/share/gtk-2.0,
|
---|
[49f7d8b] | 168 | /usr/share/gtk-doc/html/{gail-libgail-util,gdk,gdk-pixbuf,gtk},
|
---|
| 169 | /usr/share/themes/Default/gtk*, /usr/share/themes/Emacs, and
|
---|
[0011bd6] | 170 | /usr/share/themes/Raleigh</seg>
|
---|
[39fbd200] | 171 | </seglistitem>
|
---|
| 172 | </segmentedlist>
|
---|
| 173 |
|
---|
| 174 | <variablelist>
|
---|
| 175 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 176 | <?dbfo list-presentation="list"?>
|
---|
| 177 | <?dbhtml list-presentation="table"?>
|
---|
| 178 |
|
---|
| 179 | <varlistentry id="gdk-pixbuf-csource">
|
---|
| 180 | <term><command>gdk-pixbuf-csource</command></term>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>generates C code containing images, useful for compiling
|
---|
| 183 | images directly into programs.</para>
|
---|
| 184 | <indexterm zone="gtk2 gdk-pixbuf-csource">
|
---|
| 185 | <primary sortas="b-gdk-pixbuf-csource">gdk-pixbuf-csource</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 |
|
---|
| 190 | <varlistentry id="gdk-pixbuf-query-loaders">
|
---|
| 191 | <term><command>gdk-pixbuf-query-loaders</command></term>
|
---|
| 192 | <listitem>
|
---|
| 193 | <para>collects information about loadable modules for gdk-pixbuf
|
---|
| 194 | and writes it to standard output.</para>
|
---|
| 195 | <indexterm zone="gtk2 gdk-pixbuf-query-loaders">
|
---|
| 196 | <primary
|
---|
| 197 | sortas="b-gdk-pixbuf-query-loaders">gdk-pixbuf-query-loaders</primary>
|
---|
| 198 | </indexterm>
|
---|
| 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
| 201 |
|
---|
[49f7d8b] | 202 | <varlistentry id="gtk-builder-convert">
|
---|
| 203 | <term><command>gtk-builder-convert</command></term>
|
---|
| 204 | <listitem>
|
---|
| 205 | <para>converts glade files into XML files which can be loaded with
|
---|
| 206 | GtkBuilder.</para>
|
---|
| 207 | <indexterm zone="gtk2 gtk-builder-convert">
|
---|
| 208 | <primary
|
---|
| 209 | sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
| 214 | <varlistentry id="gtk-demo">
|
---|
| 215 | <term><command>gtk-demo</command></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>demonstrates <application>GTK+</application> functionality and
|
---|
| 218 | provides code for the examples.</para>
|
---|
| 219 | <indexterm zone="gtk2 gtk-demo">
|
---|
| 220 | <primary
|
---|
| 221 | sortas="b-gtk-demo">gtk-demo</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
[39fbd200] | 226 | <varlistentry id="gtk-query-immodules-2.0">
|
---|
| 227 | <term><command>gtk-query-immodules-2.0</command></term>
|
---|
| 228 | <listitem>
|
---|
| 229 | <para>collects information about loadable input method modules for
|
---|
| 230 | <application>GTK+</application> and writes it to standard output.</para>
|
---|
| 231 | <indexterm zone="gtk2 gtk-query-immodules-2.0">
|
---|
| 232 | <primary
|
---|
| 233 | sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
|
---|
| 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
| 237 |
|
---|
| 238 | <varlistentry id="gtk-update-icon-cache">
|
---|
| 239 | <term><command>gtk-update-icon-cache</command></term>
|
---|
| 240 | <listitem>
|
---|
| 241 | <para>creates mmap()able cache files for icon themes.</para>
|
---|
| 242 | <indexterm zone="gtk2 gtk-update-icon-cache">
|
---|
| 243 | <primary sortas="b-gtk-update-icon-cache">gtk-update-icon-cache</primary>
|
---|
| 244 | </indexterm>
|
---|
| 245 | </listitem>
|
---|
| 246 | </varlistentry>
|
---|
| 247 |
|
---|
| 248 | <varlistentry id="GTK2libs">
|
---|
| 249 | <term>GTK+ Libraries</term>
|
---|
| 250 | <listitem>
|
---|
| 251 | <para>provide an API to implement graphical user interfaces.</para>
|
---|
| 252 | <indexterm zone="gtk2 GTK2libs">
|
---|
| 253 | <primary sortas="c-GTK2libs">GTK+ Libraries</primary>
|
---|
| 254 | </indexterm>
|
---|
| 255 | </listitem>
|
---|
| 256 | </varlistentry>
|
---|
| 257 |
|
---|
| 258 | </variablelist>
|
---|
| 259 |
|
---|
| 260 | </sect2>
|
---|
[f45b1953] | 261 |
|
---|
| 262 | </sect1>
|
---|