source: general/prog/tk.xml@ abf8d12

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since abf8d12 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

  • Property mode set to 100644
File size: 7.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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 "964d69b6307f86bb7e51f7c189666880">
10 <!ENTITY tk-size "4.3 MB">
11 <!ENTITY tk-buildsize "31 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 <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
34 <para>
35 The <application>Tk</application> package contains a
36 TCL GUI Toolkit.
37 </para>
38
39 &lfs101_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&tk-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&tk-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &tk-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &tk-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &tk-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &tk-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required">
79 <!-- <xref linkend="tcl"/> and -->
80 <xref linkend="xorg7-lib"/>
81 </para>
82
83 <para condition="html" role="usernotes">User Notes:
84 <ulink url="&blfs-wiki;/tk"/>
85 </para>
86 </sect2>
87
88 <sect2 role="installation">
89 <title>Installation of Tk</title>
90
91 <para>
92 Install <application>Tk</application> by running the following
93 commands:
94 </para>
95
96<screen><userinput>cd unix &amp;&amp;
97./configure --prefix=/usr \
98 --mandir=/usr/share/man \
99 $([ $(uname -m) = x86_64 ] &amp;&amp; echo --enable-64bit) &amp;&amp;
100
101make &amp;&amp;
102
103sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
104 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
105 -i tkConfig.sh</userinput></screen>
106
107 <para>
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
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 might hang.
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
121
122 tk8.6.10 - bdubbs 11/25/2019
123 Total 480 Passed 463 Skipped 17 Failed 0
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
128 -->
129 </para>
130
131 <para>
132 Now, as the <systemitem class="username">root</systemitem> user:
133 </para>
134
135<screen role="root"><userinput>make install &amp;&amp;
136make install-private-headers &amp;&amp;
137ln -v -sf wish&tk-ver; /usr/bin/wish &amp;&amp;
138chmod -v 755 /usr/lib/libtk&tk-ver;.so</userinput></screen>
139
140 </sect2>
141
142 <sect2 role="commands">
143 <title>Command Explanations</title>
144
145 <para>
146 <parameter>$([ $(uname -m) = x86_64 ] &amp;&amp; echo
147 --enable-64bit)</parameter>: This switch is used to enable 64 bit
148 support in <application>Tk</application> on 64 bit operating
149 systems.
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>
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>
182 <segtitle>Installed Directory</segtitle>
183
184 <seglistitem>
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>
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>
205 <para>
206 is a symlink to the <command>wish&tk-ver;</command> program
207 </para>
208 <indexterm zone="tk wish">
209 <primary sortas="b-wish">wish</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry id="wish-eight">
215 <term><command>wish&tk-ver;</command></term>
216 <listitem>
217 <para>
218 is a simple shell containing the
219 <application>Tk</application> toolkit that creates a main window and
220 then processes <application>Tcl</application> commands
221 </para>
222 <indexterm zone="tk wish-eight">
223 <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="libtk">
229 <term><filename class="libraryfile">libtk&tk-ver;.so</filename></term>
230 <listitem>
231 <para>
232 contains the API functions required
233 by <application>Tk</application>
234 </para>
235 <indexterm zone="tk libtk">
236 <primary sortas="c-libtk">libtk&tk-ver;.so</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 </variablelist>
242
243 </sect2>
244
245</sect1>
Note: See TracBrowser for help on using the repository browser.