source: general/prog/tk.xml

trunk
Last change on this file was 2a0e02e, checked in by Bruce Dubbs <bdubbs@…>, 4 weeks ago

Update to tk8.6.14.

  • Property mode set to 100644
File size: 7.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY tk-download-http "&sourceforge-dl;/tcl/tk&tk-version;-src.tar.gz">
8 <!ENTITY tk-download-ftp " ">
9 <!ENTITY tk-md5sum "cf2aaac0478ef468b48e65c10e6b0d07">
10 <!ENTITY tk-size "4.3 MB">
11 <!ENTITY tk-buildsize "25 MB">
12 <!ENTITY tk-time "0.3 SBU (add 2.0 SBU for tests)">
13
14 <!-- Ensure this is updated when Tk moves from the 8.6.x branch -->
15 <!ENTITY tk-ver "8.6">
16]>
17
18<sect1 id="tk" xreflabel="Tk-&tk-version;">
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
31 <para>
32 The <application>Tk</application> package contains a
33 TCL GUI Toolkit.
34 </para>
35
36 &lfs121_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&tk-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&tk-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &tk-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &tk-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &tk-buildsize;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated build time: &tk-time;
68 </para>
69 </listitem>
70 </itemizedlist>
71
72 <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
73
74 <bridgehead renderas="sect4">Required</bridgehead>
75 <para role="required">
76 <!-- <xref linkend="tcl"/> and -->
77 <xref linkend="xorg7-lib"/>
78 </para>
79
80 </sect2>
81
82 <sect2 role="installation">
83 <title>Installation of Tk</title>
84
85 <para>
86 Install <application>Tk</application> by running the following
87 commands:
88 </para>
89
90<screen><userinput>cd unix &amp;&amp;
91./configure --prefix=/usr \
92 --mandir=/usr/share/man \
93 $([ $(uname -m) = x86_64 ] &amp;&amp; echo --enable-64bit) &amp;&amp;
94
95make &amp;&amp;
96
97sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
98 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
99 -i tkConfig.sh</userinput></screen>
100
101 <para>
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
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
108 even so, tests might hang.
109 <!-- Test Statistics (tk8.6.9 - renodr):
110 Total: 466
111 Passed: 447
112 Skipped: 17
113 Failed: 2
114 The two tests that fail have to do with ttk.test
115
116 tk8.6.10 - bdubbs 11/25/2019
117 Total 480 Passed 463 Skipped 17 Failed 0
118
119 tk8.6.11.1 - pierre 01/16/2021 There are two summary lines apparently:
120 Total 9650 Passed 8847 Skipped 708 Failed 95
121 Total 488 Passed 470 Skipped 17 Failed 1
122 -->
123 </para>
124
125 <para>
126 Now, as the <systemitem class="username">root</systemitem> user:
127 </para>
128
129<screen role="root"><userinput>make install &amp;&amp;
130make install-private-headers &amp;&amp;
131ln -v -sf wish&tk-ver; /usr/bin/wish &amp;&amp;
132chmod -v 755 /usr/lib/libtk&tk-ver;.so</userinput></screen>
133
134 </sect2>
135
136 <sect2 role="commands">
137 <title>Command Explanations</title>
138
139 <para>
140 <parameter>--enable-64bit</parameter>: This switch is used to enable
141 64 bit support in <application>Tk</application> on 64 bit operating
142 systems.
143 </para>
144
145 <para>
146 <command>make install-private-headers</command>: This command is
147 used to install the <application>Tk</application> library interface
148 headers used by other packages if they link to the
149 <application>Tk</application> library.
150 </para>
151
152 <para>
153 <command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
154 command is used to create a compatibility symbolic link to the
155 <command>wish&tk-ver;</command> file as many packages expect a file
156 named <command>wish</command>.
157 </para>
158
159 <para>
160 <command>sed -e ... tkConfig.sh</command>: The
161 <application>Tk</application> package expects that its source tree is
162 preserved so that packages depending on it for their compilation
163 can utilize it. This <command>sed</command> removes the references to the
164 build directory and replaces them with saner system-wide locations.
165 </para>
166
167 </sect2>
168
169 <sect2 role="content">
170 <title>Contents</title>
171
172 <segmentedlist>
173 <segtitle>Installed Programs</segtitle>
174 <segtitle>Installed Libraries</segtitle>
175 <segtitle>Installed Directory</segtitle>
176
177 <seglistitem>
178 <seg>
179 wish and wish&tk-ver;
180 </seg>
181 <seg>
182 libtk&tk-ver;.so and libtkstub&tk-ver;.a
183 </seg>
184 <seg>
185 /usr/lib/tk&tk-ver;
186 </seg>
187 </seglistitem>
188 </segmentedlist>
189
190 <variablelist>
191 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
192 <?dbfo list-presentation="list"?>
193 <?dbhtml list-presentation="table"?>
194
195 <varlistentry id="wish">
196 <term><command>wish</command></term>
197 <listitem>
198 <para>
199 is a symlink to the <command>wish&tk-ver;</command> program
200 </para>
201 <indexterm zone="tk wish">
202 <primary sortas="b-wish">wish</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="wish-eight">
208 <term><command>wish&tk-ver;</command></term>
209 <listitem>
210 <para>
211 is a simple shell containing the
212 <application>Tk</application> toolkit that creates a main window and
213 then processes <application>Tcl</application> commands
214 </para>
215 <indexterm zone="tk wish-eight">
216 <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="libtk">
222 <term><filename class="libraryfile">libtk&tk-ver;.so</filename></term>
223 <listitem>
224 <para>
225 contains the API functions required
226 by <application>Tk</application>
227 </para>
228 <indexterm zone="tk libtk">
229 <primary sortas="c-libtk">libtk&tk-ver;.so</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 </variablelist>
235
236 </sect2>
237
238</sect1>
Note: See TracBrowser for help on using the repository browser.