2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2008-10-13 22:49:44 +08:00
|
|
|
<!ENTITY tk-download-http "&sourceforge-repo;/tcl/tk&tk-version;-src.tar.gz">
|
2008-04-10 03:18:42 +08:00
|
|
|
<!ENTITY tk-download-ftp "&gentoo-ftp-repo;/tk&tk-version;-src.tar.gz">
|
2011-01-04 22:47:55 +08:00
|
|
|
<!ENTITY tk-md5sum "7cdeb9feb61593f58a0ae61f2497580e">
|
|
|
|
<!ENTITY tk-size "3.8 MB">
|
2010-03-10 22:09:54 +08:00
|
|
|
<!ENTITY tk-buildsize "32 MB">
|
2008-12-27 09:27:40 +08:00
|
|
|
<!ENTITY tk-time "0.5 SBU">
|
2007-07-06 04:15:02 +08:00
|
|
|
|
2010-03-10 22:09:54 +08:00
|
|
|
<!-- Ensure this is updated when Tk moves from the 8.5.x branch -->
|
2008-12-27 09:27:40 +08:00
|
|
|
<!ENTITY tk-ver "8.5">
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
2003-10-05 18:00:31 +08:00
|
|
|
<sect1 id="tk" xreflabel="Tk-&tk-version;">
|
2005-05-06 04:46:59 +08:00
|
|
|
<?dbhtml filename="tk.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Tk-&tk-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="tk">
|
|
|
|
<primary sortas="a-Tk">Tk</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Tk</title>
|
|
|
|
|
|
|
|
<para>The <application>Tk</application> package contains a
|
|
|
|
TCL GUI Toolkit.</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&tk-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&tk-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &tk-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &tk-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &tk-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &tk-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Tk Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2006-04-10 00:06:53 +08:00
|
|
|
<para role="required"><xref linkend="x-window-system"/> and
|
2005-05-06 04:46:59 +08:00
|
|
|
<xref linkend="tcl"/></para>
|
|
|
|
|
2006-04-11 02:35:56 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/tk"/></para>
|
|
|
|
|
2005-05-06 04:46:59 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Tk</title>
|
2004-07-28 03:39:58 +08:00
|
|
|
|
2005-05-31 05:38:32 +08:00
|
|
|
<para>Install <application>Tk</application> by running the following
|
2004-07-28 03:39:58 +08:00
|
|
|
commands:</para>
|
|
|
|
|
2006-05-07 11:58:14 +08:00
|
|
|
<screen><userinput>cd unix &&
|
2008-04-10 03:18:42 +08:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-threads \
|
|
|
|
--mandir=/usr/share/man &&
|
2008-03-27 03:44:59 +08:00
|
|
|
make &&
|
|
|
|
sed -i \
|
|
|
|
-e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
|
|
|
|
-e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
|
2008-03-27 04:01:17 +08:00
|
|
|
tkConfig.sh</userinput></screen>
|
2005-05-06 04:46:59 +08:00
|
|
|
|
2006-04-29 22:17:21 +08:00
|
|
|
<para>Running the tests is not recommended. Some tests may crash your X
|
|
|
|
Server. To test the results anyway, issue: <command>make test</command>.
|
|
|
|
Ensure you run it from an X Window display device with the GLX extensions
|
2008-12-27 09:27:40 +08:00
|
|
|
loaded, otherwise the tests will hang.</para>
|
2005-05-06 04:46:59 +08:00
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install &&
|
2006-05-07 11:58:14 +08:00
|
|
|
make install-private-headers &&
|
2010-03-10 22:09:54 +08:00
|
|
|
ln -v -sf wish&tk-ver; /usr/bin/wish &&
|
2010-03-14 13:55:06 +08:00
|
|
|
chmod -v 755 /usr/lib/libtk8.5.so</userinput></screen>
|
2005-01-31 07:01:56 +08:00
|
|
|
|
2005-05-06 04:46:59 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2006-04-29 22:17:21 +08:00
|
|
|
<para><parameter>--enable-threads</parameter>: This switch forces the
|
|
|
|
package to build with thread support.</para>
|
2005-12-25 04:09:19 +08:00
|
|
|
|
2006-05-07 11:58:14 +08:00
|
|
|
<para><command>make install-private-headers</command>: This command is
|
|
|
|
used to install the <application>Tk</application> library interface
|
|
|
|
headers used by other packages if they link to the
|
|
|
|
<application>Tk</application> library.</para>
|
|
|
|
|
|
|
|
<para><command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
|
|
|
|
command is used to create a compatibility symbolic link to the
|
|
|
|
<command>wish&tk-ver;</command> file as many packages expect a file
|
|
|
|
named <command>wish</command>.</para>
|
|
|
|
|
2005-12-25 04:09:19 +08:00
|
|
|
<para><command>sed -i -e ... tkConfig.sh</command>: The
|
2006-04-29 22:17:21 +08:00
|
|
|
<application>Tk</application> package expects that its source tree is
|
|
|
|
preserved so that packages depending on it for their compilation
|
|
|
|
can utilize it. This <command>sed</command> removes the references to the
|
|
|
|
build directory and replaces them with saner system-wide locations.</para>
|
2005-05-06 04:46:59 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2006-04-29 22:17:21 +08:00
|
|
|
<seg>wish and wish&tk-ver;</seg>
|
|
|
|
<seg>libtk.so and libtkstub&tk-ver;.a</seg>
|
2006-05-08 03:13:14 +08:00
|
|
|
<seg>/usr/lib/tk&tk-ver;</seg>
|
2005-05-06 04:46:59 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="wish">
|
|
|
|
<term><command>wish</command></term>
|
|
|
|
<listitem>
|
2006-04-29 22:17:21 +08:00
|
|
|
<para> is a symlink to the <command>wish&tk-ver;</command>
|
|
|
|
program.</para>
|
2005-05-06 04:46:59 +08:00
|
|
|
<indexterm zone="tk wish">
|
2005-07-28 04:49:55 +08:00
|
|
|
<primary sortas="g-wish">wish</primary>
|
2005-05-06 04:46:59 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-04-29 22:17:21 +08:00
|
|
|
<varlistentry id="wish-eight">
|
|
|
|
<term><command>wish&tk-ver;</command></term>
|
2005-05-06 04:46:59 +08:00
|
|
|
<listitem>
|
|
|
|
<para> is a simple shell containing the
|
|
|
|
<application>Tk</application> toolkit that creates a main window and
|
|
|
|
then processes <application>Tcl</application> commands.</para>
|
2006-04-29 22:17:21 +08:00
|
|
|
<indexterm zone="tk wish-eight">
|
|
|
|
<primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
|
2005-05-06 04:46:59 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libtk">
|
|
|
|
<term><filename role="library">libtk.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>contains the API functions required
|
|
|
|
by <application>Tk</application>.</para>
|
|
|
|
<indexterm zone="tk libtk">
|
|
|
|
<primary sortas="c-libtk">libtk.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2003-09-21 23:07:05 +08:00
|
|
|
|
|
|
|
</sect1>
|