[52d29f7] | 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" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[fce275e] | 7 | <!ENTITY tk-download-http "&sourceforge-repo;/tcl/tk&tk-version;-src.tar.gz">
|
---|
[c786e55] | 8 | <!ENTITY tk-download-ftp " ">
|
---|
[1b3d6bd4] | 9 | <!ENTITY tk-md5sum "63f21c3a0e0cefbd854b4eb29b129ac6">
|
---|
[82fac2c] | 10 | <!ENTITY tk-size "4.1 MB">
|
---|
[1b3d6bd4] | 11 | <!ENTITY tk-buildsize "24 MB">
|
---|
[7368969] | 12 | <!ENTITY tk-time "0.3 SBU">
|
---|
[4d62032] | 13 |
|
---|
[82fac2c] | 14 | <!-- Ensure this is updated when Tk moves from the 8.6.x branch -->
|
---|
| 15 | <!ENTITY tk-ver "8.6">
|
---|
[52d29f7] | 16 | ]>
|
---|
| 17 |
|
---|
[503b39f] | 18 | <sect1 id="tk" xreflabel="Tk-&tk-version;">
|
---|
[516af114] | 19 | <?dbhtml filename="tk.html"?>
|
---|
| 20 |
|
---|
| 21 | <sect1info>
|
---|
| 22 | <othername>$LastChangedBy$</othername>
|
---|
| 23 | <date>$Date$</date>
|
---|
| 24 | </sect1info>
|
---|
| 25 |
|
---|
| 26 | <title>Tk-&tk-version;</title>
|
---|
| 27 |
|
---|
| 28 | <indexterm zone="tk">
|
---|
| 29 | <primary sortas="a-Tk">Tk</primary>
|
---|
| 30 | </indexterm>
|
---|
| 31 |
|
---|
| 32 | <sect2 role="package">
|
---|
| 33 | <title>Introduction to Tk</title>
|
---|
| 34 |
|
---|
[e8f7606] | 35 | <para>
|
---|
| 36 | The <application>Tk</application> package contains a
|
---|
| 37 | TCL GUI Toolkit.
|
---|
| 38 | </para>
|
---|
[516af114] | 39 |
|
---|
[b5404468] | 40 | &lfs75_checked;
|
---|
[4a40984] | 41 |
|
---|
[516af114] | 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
[e8f7606] | 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&tk-download-http;"/>
|
---|
| 47 | </para>
|
---|
[516af114] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[e8f7606] | 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&tk-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
[516af114] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[e8f7606] | 55 | <para>
|
---|
| 56 | Download MD5 sum: &tk-md5sum;
|
---|
| 57 | </para>
|
---|
[516af114] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[e8f7606] | 60 | <para>
|
---|
| 61 | Download size: &tk-size;
|
---|
| 62 | </para>
|
---|
[516af114] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[e8f7606] | 65 | <para>
|
---|
| 66 | Estimated disk space required: &tk-buildsize;
|
---|
| 67 | </para>
|
---|
[516af114] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[e8f7606] | 70 | <para>
|
---|
| 71 | Estimated build time: &tk-time;
|
---|
| 72 | </para>
|
---|
[516af114] | 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[e8f7606] | 79 | <para role="required">
|
---|
| 80 | <xref linkend="tcl"/> and
|
---|
| 81 | <xref linkend="xorg7-lib"/>
|
---|
| 82 | </para>
|
---|
[516af114] | 83 |
|
---|
[1039de3] | 84 | <para condition="html" role="usernotes">User Notes:
|
---|
[82fac2c] | 85 | <ulink url="&blfs-wiki;/tk"/>
|
---|
| 86 | </para>
|
---|
[516af114] | 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2 role="installation">
|
---|
| 90 | <title>Installation of Tk</title>
|
---|
[511fd69c] | 91 |
|
---|
[e8f7606] | 92 | <para>
|
---|
| 93 | Install <application>Tk</application> by running the following
|
---|
| 94 | commands:
|
---|
| 95 | </para>
|
---|
[511fd69c] | 96 |
|
---|
[33fd7e43] | 97 | <screen><userinput>cd unix &&
|
---|
[1d82919] | 98 | ./configure --prefix=/usr \
|
---|
[82fac2c] | 99 | --mandir=/usr/share/man \
|
---|
| 100 | $([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
|
---|
| 101 |
|
---|
[206b7a1] | 102 | make &&
|
---|
[82fac2c] | 103 |
|
---|
[e8f7606] | 104 | sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
|
---|
[206b7a1] | 105 | -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
|
---|
[e8f7606] | 106 | -i tkConfig.sh</userinput></screen>
|
---|
[516af114] | 107 |
|
---|
[e8f7606] | 108 | <para>
|
---|
[1b3d6bd4] | 109 | Running the tests is not recommended. Failures will occur in the tests,
|
---|
| 110 | depending on the screen resolution/capabilities, fonts installed and
|
---|
| 111 | other X related parameters. Some tests may crash your X Server. To test
|
---|
| 112 | the results anyway, issue: <command>make test</command>. Ensure you run
|
---|
| 113 | it from an X Window display device with the GLX extensions loaded, but
|
---|
| 114 | even so, tests may hang.
|
---|
[e8f7606] | 115 | </para>
|
---|
[516af114] | 116 |
|
---|
[e8f7606] | 117 | <para>
|
---|
| 118 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 119 | </para>
|
---|
[516af114] | 120 |
|
---|
| 121 | <screen role="root"><userinput>make install &&
|
---|
[33fd7e43] | 122 | make install-private-headers &&
|
---|
[dd01532b] | 123 | ln -v -sf wish&tk-ver; /usr/bin/wish &&
|
---|
[e8f7606] | 124 | chmod -v 755 /usr/lib/libtk&tk-ver;.so</userinput></screen>
|
---|
[d8614521] | 125 |
|
---|
[516af114] | 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2 role="commands">
|
---|
| 129 | <title>Command Explanations</title>
|
---|
| 130 |
|
---|
[e8f7606] | 131 | <para>
|
---|
[5a464e4d] | 132 | <parameter>$([ $(uname -m) = x86_64 ] && echo
|
---|
| 133 | --enable-64bit)</parameter>: This switch is used to enable 64 bit
|
---|
[82fac2c] | 134 | support in <application>Tk</application> on 64 bit operating
|
---|
| 135 | systems.
|
---|
[e8f7606] | 136 | </para>
|
---|
| 137 |
|
---|
| 138 | <para>
|
---|
| 139 | <command>make install-private-headers</command>: This command is
|
---|
| 140 | used to install the <application>Tk</application> library interface
|
---|
| 141 | headers used by other packages if they link to the
|
---|
| 142 | <application>Tk</application> library.
|
---|
| 143 | </para>
|
---|
| 144 |
|
---|
| 145 | <para>
|
---|
| 146 | <command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
|
---|
| 147 | command is used to create a compatibility symbolic link to the
|
---|
| 148 | <command>wish&tk-ver;</command> file as many packages expect a file
|
---|
| 149 | named <command>wish</command>.
|
---|
| 150 | </para>
|
---|
| 151 |
|
---|
| 152 | <para>
|
---|
| 153 | <command>sed -e ... tkConfig.sh</command>: The
|
---|
| 154 | <application>Tk</application> package expects that its source tree is
|
---|
| 155 | preserved so that packages depending on it for their compilation
|
---|
| 156 | can utilize it. This <command>sed</command> removes the references to the
|
---|
| 157 | build directory and replaces them with saner system-wide locations.
|
---|
| 158 | </para>
|
---|
[516af114] | 159 |
|
---|
| 160 | </sect2>
|
---|
| 161 |
|
---|
| 162 | <sect2 role="content">
|
---|
| 163 | <title>Contents</title>
|
---|
| 164 |
|
---|
| 165 | <segmentedlist>
|
---|
| 166 | <segtitle>Installed Programs</segtitle>
|
---|
| 167 | <segtitle>Installed Libraries</segtitle>
|
---|
[e8f7606] | 168 | <segtitle>Installed Directory</segtitle>
|
---|
[516af114] | 169 |
|
---|
| 170 | <seglistitem>
|
---|
[e8f7606] | 171 | <seg>
|
---|
| 172 | wish and wish&tk-ver;
|
---|
| 173 | </seg>
|
---|
| 174 | <seg>
|
---|
| 175 | libtk&tk-ver;.so and libtkstub&tk-ver;.a
|
---|
| 176 | </seg>
|
---|
| 177 | <seg>
|
---|
| 178 | /usr/lib/tk&tk-ver;
|
---|
| 179 | </seg>
|
---|
[516af114] | 180 | </seglistitem>
|
---|
| 181 | </segmentedlist>
|
---|
| 182 |
|
---|
| 183 | <variablelist>
|
---|
| 184 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 185 | <?dbfo list-presentation="list"?>
|
---|
| 186 | <?dbhtml list-presentation="table"?>
|
---|
| 187 |
|
---|
| 188 | <varlistentry id="wish">
|
---|
| 189 | <term><command>wish</command></term>
|
---|
| 190 | <listitem>
|
---|
[e8f7606] | 191 | <para>
|
---|
| 192 | is a symlink to the <command>wish&tk-ver;</command> program.
|
---|
| 193 | </para>
|
---|
[516af114] | 194 | <indexterm zone="tk wish">
|
---|
[b960e3ec] | 195 | <primary sortas="b-wish">wish</primary>
|
---|
[516af114] | 196 | </indexterm>
|
---|
| 197 | </listitem>
|
---|
| 198 | </varlistentry>
|
---|
| 199 |
|
---|
[36f2c9e] | 200 | <varlistentry id="wish-eight">
|
---|
| 201 | <term><command>wish&tk-ver;</command></term>
|
---|
[516af114] | 202 | <listitem>
|
---|
[e8f7606] | 203 | <para>
|
---|
| 204 | is a simple shell containing the
|
---|
| 205 | <application>Tk</application> toolkit that creates a main window and
|
---|
| 206 | then processes <application>Tcl</application> commands.
|
---|
| 207 | </para>
|
---|
[36f2c9e] | 208 | <indexterm zone="tk wish-eight">
|
---|
| 209 | <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
|
---|
[516af114] | 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
| 214 | <varlistentry id="libtk">
|
---|
[82fac2c] | 215 | <term><filename class="libraryfile">libtk&tk-ver;.so</filename></term>
|
---|
[516af114] | 216 | <listitem>
|
---|
[e8f7606] | 217 | <para>
|
---|
| 218 | contains the API functions required
|
---|
| 219 | by <application>Tk</application>.
|
---|
| 220 | </para>
|
---|
[516af114] | 221 | <indexterm zone="tk libtk">
|
---|
[e8f7606] | 222 | <primary sortas="c-libtk">libtk&tk-ver;.so</primary>
|
---|
[516af114] | 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
| 226 |
|
---|
| 227 | </variablelist>
|
---|
| 228 |
|
---|
| 229 | </sect2>
|
---|
[c4f1401] | 230 |
|
---|
| 231 | </sect1>
|
---|