[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY tk-download-http "&sourceforge-dl;/tcl/tk&tk-version;-src.tar.gz">
|
---|
[c786e55] | 8 | <!ENTITY tk-download-ftp " ">
|
---|
[c298e39] | 9 | <!ENTITY tk-md5sum "6d64b6eb021062f378017d403fedcbe6">
|
---|
| 10 | <!ENTITY tk-size "4.4 MB">
|
---|
[24b16275] | 11 | <!ENTITY tk-buildsize "25 MB">
|
---|
[c298e39] | 12 | <!ENTITY tk-time "0.2 SBU (add 5.6 SBU for tests)">
|
---|
[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 |
|
---|
| 22 | <title>Tk-&tk-version;</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="tk">
|
---|
| 25 | <primary sortas="a-Tk">Tk</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to Tk</title>
|
---|
| 30 |
|
---|
[e8f7606] | 31 | <para>
|
---|
| 32 | The <application>Tk</application> package contains a
|
---|
| 33 | TCL GUI Toolkit.
|
---|
| 34 | </para>
|
---|
[516af114] | 35 |
|
---|
[fc87c5a0] | 36 | &lfs122_checked;
|
---|
[4a40984] | 37 |
|
---|
[516af114] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
[e8f7606] | 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&tk-download-http;"/>
|
---|
| 43 | </para>
|
---|
[516af114] | 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
[e8f7606] | 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&tk-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
[516af114] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[e8f7606] | 51 | <para>
|
---|
| 52 | Download MD5 sum: &tk-md5sum;
|
---|
| 53 | </para>
|
---|
[516af114] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[e8f7606] | 56 | <para>
|
---|
| 57 | Download size: &tk-size;
|
---|
| 58 | </para>
|
---|
[516af114] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[e8f7606] | 61 | <para>
|
---|
| 62 | Estimated disk space required: &tk-buildsize;
|
---|
| 63 | </para>
|
---|
[516af114] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[e8f7606] | 66 | <para>
|
---|
| 67 | Estimated build time: &tk-time;
|
---|
| 68 | </para>
|
---|
[516af114] | 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[e8f7606] | 75 | <para role="required">
|
---|
[f4002c5] | 76 | <!-- <xref linkend="tcl"/> and -->
|
---|
[e8f7606] | 77 | <xref linkend="xorg7-lib"/>
|
---|
| 78 | </para>
|
---|
[516af114] | 79 |
|
---|
| 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 role="installation">
|
---|
| 83 | <title>Installation of Tk</title>
|
---|
[511fd69c] | 84 |
|
---|
[e8f7606] | 85 | <para>
|
---|
| 86 | Install <application>Tk</application> by running the following
|
---|
| 87 | commands:
|
---|
| 88 | </para>
|
---|
[511fd69c] | 89 |
|
---|
[33fd7e43] | 90 | <screen><userinput>cd unix &&
|
---|
[1d82919] | 91 | ./configure --prefix=/usr \
|
---|
[82fac2c] | 92 | --mandir=/usr/share/man \
|
---|
| 93 | $([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
|
---|
| 94 |
|
---|
[206b7a1] | 95 | make &&
|
---|
[82fac2c] | 96 |
|
---|
[e8f7606] | 97 | sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
|
---|
[206b7a1] | 98 | -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
|
---|
[e8f7606] | 99 | -i tkConfig.sh</userinput></screen>
|
---|
[516af114] | 100 |
|
---|
[e8f7606] | 101 | <para>
|
---|
[66f48aa2] | 102 | Running the tests is not recommended. Failures will be reported during the
|
---|
| 103 | tests, depending on the screen resolution/capabilities, fonts installed
|
---|
| 104 | and other X related parameters, but the end report can show 0 failures.
|
---|
| 105 | Some tests will steal focus and some might crash your X Server. To test
|
---|
[1b3d6bd4] | 106 | the results anyway, issue: <command>make test</command>. Ensure you run
|
---|
| 107 | it from an X Window display device with the GLX extensions loaded, but
|
---|
[8c5b0070] | 108 | even so, tests might hang.
|
---|
[92b444d] | 109 | <!-- Test Statistics (tk8.6.9 - renodr):
|
---|
[c298e39] | 110 | Total 466 Passed 447 Skipped 17 Failed 2
|
---|
[92b444d] | 111 | The two tests that fail have to do with ttk.test
|
---|
[8c5b0070] | 112 |
|
---|
| 113 | tk8.6.10 - bdubbs 11/25/2019
|
---|
| 114 | Total 480 Passed 463 Skipped 17 Failed 0
|
---|
[bc38b45] | 115 |
|
---|
| 116 | tk8.6.11.1 - pierre 01/16/2021 There are two summary lines apparently:
|
---|
| 117 | Total 9650 Passed 8847 Skipped 708 Failed 95
|
---|
| 118 | Total 488 Passed 470 Skipped 17 Failed 1
|
---|
[c298e39] | 119 |
|
---|
| 120 | tk8.6.15 - bdubbs 22/09/24
|
---|
| 121 | Total 505 Passed 488 Skipped 17 Failed 0
|
---|
| 122 | But when running there were several FAILED messages.
|
---|
[92b444d] | 123 | -->
|
---|
[e8f7606] | 124 | </para>
|
---|
[516af114] | 125 |
|
---|
[e8f7606] | 126 | <para>
|
---|
| 127 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 128 | </para>
|
---|
[516af114] | 129 |
|
---|
| 130 | <screen role="root"><userinput>make install &&
|
---|
[33fd7e43] | 131 | make install-private-headers &&
|
---|
[dd01532b] | 132 | ln -v -sf wish&tk-ver; /usr/bin/wish &&
|
---|
[e8f7606] | 133 | chmod -v 755 /usr/lib/libtk&tk-ver;.so</userinput></screen>
|
---|
[d8614521] | 134 |
|
---|
[516af114] | 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2 role="commands">
|
---|
| 138 | <title>Command Explanations</title>
|
---|
| 139 |
|
---|
[e8f7606] | 140 | <para>
|
---|
[875b3b57] | 141 | <parameter>--enable-64bit</parameter>: This switch is used to enable
|
---|
| 142 | 64 bit support in <application>Tk</application> on 64 bit operating
|
---|
[82fac2c] | 143 | systems.
|
---|
[e8f7606] | 144 | </para>
|
---|
| 145 |
|
---|
| 146 | <para>
|
---|
| 147 | <command>make install-private-headers</command>: This command is
|
---|
| 148 | used to install the <application>Tk</application> library interface
|
---|
| 149 | headers used by other packages if they link to the
|
---|
| 150 | <application>Tk</application> library.
|
---|
| 151 | </para>
|
---|
| 152 |
|
---|
| 153 | <para>
|
---|
| 154 | <command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
|
---|
| 155 | command is used to create a compatibility symbolic link to the
|
---|
| 156 | <command>wish&tk-ver;</command> file as many packages expect a file
|
---|
| 157 | named <command>wish</command>.
|
---|
| 158 | </para>
|
---|
| 159 |
|
---|
| 160 | <para>
|
---|
| 161 | <command>sed -e ... tkConfig.sh</command>: The
|
---|
| 162 | <application>Tk</application> package expects that its source tree is
|
---|
| 163 | preserved so that packages depending on it for their compilation
|
---|
| 164 | can utilize it. This <command>sed</command> removes the references to the
|
---|
| 165 | build directory and replaces them with saner system-wide locations.
|
---|
| 166 | </para>
|
---|
[516af114] | 167 |
|
---|
| 168 | </sect2>
|
---|
| 169 |
|
---|
| 170 | <sect2 role="content">
|
---|
| 171 | <title>Contents</title>
|
---|
| 172 |
|
---|
| 173 | <segmentedlist>
|
---|
| 174 | <segtitle>Installed Programs</segtitle>
|
---|
| 175 | <segtitle>Installed Libraries</segtitle>
|
---|
[e8f7606] | 176 | <segtitle>Installed Directory</segtitle>
|
---|
[516af114] | 177 |
|
---|
| 178 | <seglistitem>
|
---|
[e8f7606] | 179 | <seg>
|
---|
| 180 | wish and wish&tk-ver;
|
---|
| 181 | </seg>
|
---|
| 182 | <seg>
|
---|
| 183 | libtk&tk-ver;.so and libtkstub&tk-ver;.a
|
---|
| 184 | </seg>
|
---|
| 185 | <seg>
|
---|
| 186 | /usr/lib/tk&tk-ver;
|
---|
| 187 | </seg>
|
---|
[516af114] | 188 | </seglistitem>
|
---|
| 189 | </segmentedlist>
|
---|
| 190 |
|
---|
| 191 | <variablelist>
|
---|
| 192 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 193 | <?dbfo list-presentation="list"?>
|
---|
| 194 | <?dbhtml list-presentation="table"?>
|
---|
| 195 |
|
---|
| 196 | <varlistentry id="wish">
|
---|
| 197 | <term><command>wish</command></term>
|
---|
| 198 | <listitem>
|
---|
[e8f7606] | 199 | <para>
|
---|
[4c24eb0a] | 200 | is a symlink to the <command>wish&tk-ver;</command> program
|
---|
[e8f7606] | 201 | </para>
|
---|
[516af114] | 202 | <indexterm zone="tk wish">
|
---|
[b960e3ec] | 203 | <primary sortas="b-wish">wish</primary>
|
---|
[516af114] | 204 | </indexterm>
|
---|
| 205 | </listitem>
|
---|
| 206 | </varlistentry>
|
---|
| 207 |
|
---|
[36f2c9e] | 208 | <varlistentry id="wish-eight">
|
---|
| 209 | <term><command>wish&tk-ver;</command></term>
|
---|
[516af114] | 210 | <listitem>
|
---|
[e8f7606] | 211 | <para>
|
---|
| 212 | is a simple shell containing the
|
---|
| 213 | <application>Tk</application> toolkit that creates a main window and
|
---|
[4c24eb0a] | 214 | then processes <application>Tcl</application> commands
|
---|
[e8f7606] | 215 | </para>
|
---|
[36f2c9e] | 216 | <indexterm zone="tk wish-eight">
|
---|
| 217 | <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
|
---|
[516af114] | 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
| 222 | <varlistentry id="libtk">
|
---|
[82fac2c] | 223 | <term><filename class="libraryfile">libtk&tk-ver;.so</filename></term>
|
---|
[516af114] | 224 | <listitem>
|
---|
[e8f7606] | 225 | <para>
|
---|
| 226 | contains the API functions required
|
---|
[4c24eb0a] | 227 | by <application>Tk</application>
|
---|
[e8f7606] | 228 | </para>
|
---|
[516af114] | 229 | <indexterm zone="tk libtk">
|
---|
[e8f7606] | 230 | <primary sortas="c-libtk">libtk&tk-ver;.so</primary>
|
---|
[516af114] | 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
| 235 | </variablelist>
|
---|
| 236 |
|
---|
| 237 | </sect2>
|
---|
[c4f1401] | 238 |
|
---|
| 239 | </sect1>
|
---|