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