mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-26 08:42:12 +08:00
49f7d8b908
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7915 af4574ff-66df-0310-9fd7-8a98e5e911e0
252 lines
9.3 KiB
XML
252 lines
9.3 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY gtk2-download-http "&gnome-download-http;/gtk+/2.16/gtk+->k2-version;.tar.bz2">
|
|
<!ENTITY gtk2-download-ftp "ftp://ftp.gtk.org/pub/gtk/2.16/gtk+->k2-version;.tar.bz2">
|
|
<!ENTITY gtk2-md5sum "8d1ea0b9b0400224d25b0cc2750b438d">
|
|
<!ENTITY gtk2-size "18 MB">
|
|
<!ENTITY gtk2-buildsize "288 MB">
|
|
<!ENTITY gtk2-time "3.4 SBU">
|
|
]>
|
|
|
|
<sect1 id="gtk2" xreflabel="GTK+->k2-version;">
|
|
<?dbhtml filename="gtk2.html" ?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>GTK+->k2-version;</title>
|
|
|
|
<indexterm zone="gtk2">
|
|
<primary sortas="a-GTK2">GTK2</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to GTK+</title>
|
|
|
|
<para>The <application>GTK+</application> package contains
|
|
<application>GTK+</application> libraries. These are useful
|
|
for creating graphical user interfaces for applications.</para>
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>Download (HTTP): <ulink url=">k2-download-http;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download (FTP): <ulink url=">k2-download-ftp;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download MD5 sum: >k2-md5sum;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download size: >k2-size;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated disk space required: >k2-buildsize;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated build time: >k2-time;</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">GTK+ Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required"><xref linkend="cairo"/>,
|
|
<xref linkend="pango"/>, and
|
|
<xref linkend="atk"/></para>
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
<para role="recommended"><xref linkend="libtiff"/>,
|
|
<xref linkend="jasper"/>,
|
|
<xref linkend="libjpeg"/>, and
|
|
<xref linkend="hicolor-icon-theme"/></para>
|
|
|
|
<!-- hicolor-icon-theme is required for the test suite -->
|
|
|
|
<para>Though not required, the <application>GTK+</application> developers expect
|
|
<application>libtiff</application>, <application>libjasper</application>
|
|
and <application>libjpeg</application> to be installed. Other packages also
|
|
expect <application>GTK+</application>-2 to be built with support for these
|
|
graphics packages as well.</para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional"><xref linkend="cups"/>,
|
|
<xref linkend="gtk-doc"/>, and
|
|
<xref linkend="docbook-utils"/></para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/gtk+2"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of GTK+</title>
|
|
|
|
<para>Install <application>GTK+</application> by running
|
|
the following commands:</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc &&
|
|
make</userinput></screen>
|
|
|
|
<para>To test the results, issue: <command>make check</command>. Note that
|
|
you must run the tests from a session with X Window Display capability
|
|
(i.e., not a text-based terminal/console) as the tests attempt to open an X
|
|
window, and the tests can take an excessively long time.</para>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
install -v -m755 -d /usr/share/doc/gtk+->k2-version;/{faq,tutorial} &&
|
|
cp -v -R docs/faq/html/* /usr/share/doc/gtk+->k2-version;/faq &&
|
|
cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+->k2-version;/tutorial &&
|
|
install -v -m644 docs/*.txt /usr/share/doc/gtk+->k2-version;</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para><parameter>--sysconfdir=/etc</parameter>: This switch installs the
|
|
configuration files into <filename class="directory">/etc</filename>
|
|
instead of <filename class="directory">/usr/etc</filename>.</para>
|
|
|
|
<para><option>--enable-gtk-doc</option>: This switch will rebuild
|
|
the API documentation during the <command>make</command> command. Ensure
|
|
you really want to rebuild this documentation (and end up with what is
|
|
already shipped in the source tree) as it takes a very long time.</para>
|
|
|
|
<para><option>--without-libtiff</option>: Use this switch if you
|
|
don't have <application>libtiff</application> installed.</para>
|
|
|
|
<para><option>--without-libjpeg</option>: Use this switch if you
|
|
don't have <application>libjpeg</application> installed.</para>
|
|
|
|
<para><option>--without-libjasper</option>: Use this switch if you
|
|
don't have <application>libjasper</application> installed.</para>
|
|
|
|
<para><parameter>--disable-static</parameter>: This switch prevents the
|
|
static libraries from being built.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>gdk-pixbuf-csource, gdk-pixbuf-query-loaders,
|
|
gtk-builder-convert, gtk-demo, gtk-query-immodules-2.0,
|
|
and gtk-update-icon-cache</seg>
|
|
<seg>libgailutil.so, libgdk-x11-2.0.so, libgdk_pixbuf-2.0.so,
|
|
libgdk_pixbuf_xlib-2.0.so, libgtk-x11-2.0.so, and numerous engine,
|
|
module, and loader plugins</seg>
|
|
<seg>/etc/gtk-2.0, /usr/include/gail-1.0, /usr/include/gtk-2.0,
|
|
/usr/include/gtk-unix-print-2.0, /usr/lib/gtk-2.0,
|
|
/usr/share/doc/gtk+->k2-version;, /usr/share/gtk-2.0,
|
|
/usr/share/gtk-doc/html/{gail-libgail-util,gdk,gdk-pixbuf,gtk},
|
|
/usr/share/themes/Default/gtk*, /usr/share/themes/Emacs, and
|
|
/usr/share/themes/Raleigh</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="gdk-pixbuf-csource">
|
|
<term><command>gdk-pixbuf-csource</command></term>
|
|
<listitem>
|
|
<para>generates C code containing images, useful for compiling
|
|
images directly into programs.</para>
|
|
<indexterm zone="gtk2 gdk-pixbuf-csource">
|
|
<primary sortas="b-gdk-pixbuf-csource">gdk-pixbuf-csource</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="gdk-pixbuf-query-loaders">
|
|
<term><command>gdk-pixbuf-query-loaders</command></term>
|
|
<listitem>
|
|
<para>collects information about loadable modules for gdk-pixbuf
|
|
and writes it to standard output.</para>
|
|
<indexterm zone="gtk2 gdk-pixbuf-query-loaders">
|
|
<primary
|
|
sortas="b-gdk-pixbuf-query-loaders">gdk-pixbuf-query-loaders</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="gtk-builder-convert">
|
|
<term><command>gtk-builder-convert</command></term>
|
|
<listitem>
|
|
<para>converts glade files into XML files which can be loaded with
|
|
GtkBuilder.</para>
|
|
<indexterm zone="gtk2 gtk-builder-convert">
|
|
<primary
|
|
sortas="b-gtk-builder-convert">gtk-builder-convert</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="gtk-demo">
|
|
<term><command>gtk-demo</command></term>
|
|
<listitem>
|
|
<para>demonstrates <application>GTK+</application> functionality and
|
|
provides code for the examples.</para>
|
|
<indexterm zone="gtk2 gtk-demo">
|
|
<primary
|
|
sortas="b-gtk-demo">gtk-demo</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="gtk-query-immodules-2.0">
|
|
<term><command>gtk-query-immodules-2.0</command></term>
|
|
<listitem>
|
|
<para>collects information about loadable input method modules for
|
|
<application>GTK+</application> and writes it to standard output.</para>
|
|
<indexterm zone="gtk2 gtk-query-immodules-2.0">
|
|
<primary
|
|
sortas="b-gtk-query-immodules-2.0">gtk-query-immodules-2.0</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="gtk-update-icon-cache">
|
|
<term><command>gtk-update-icon-cache</command></term>
|
|
<listitem>
|
|
<para>creates mmap()able cache files for icon themes.</para>
|
|
<indexterm zone="gtk2 gtk-update-icon-cache">
|
|
<primary sortas="b-gtk-update-icon-cache">gtk-update-icon-cache</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="GTK2libs">
|
|
<term>GTK+ Libraries</term>
|
|
<listitem>
|
|
<para>provide an API to implement graphical user interfaces.</para>
|
|
<indexterm zone="gtk2 GTK2libs">
|
|
<primary sortas="c-GTK2libs">GTK+ Libraries</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|