source: general/prog/tk.xml@ ad112fd5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.0 9.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 ad112fd5 was 38489aa0, checked in by Pierre Labastie <pieere@…>, 5 years ago

Tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21156 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.9 KB
RevLine 
[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 " ">
[92b444d]9 <!ENTITY tk-md5sum "e3cf6290999ee30651d75864eccfec63">
10 <!ENTITY tk-size "4.2 MB">
11 <!ENTITY tk-buildsize "30 MB">
12 <!ENTITY tk-time "0.3 SBU (add 1.8 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 <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
[38489aa0]40 &lfs84_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 &amp;&amp;
[1d82919]98./configure --prefix=/usr \
[82fac2c]99 --mandir=/usr/share/man \
100 $([ $(uname -m) = x86_64 ] &amp;&amp; echo --enable-64bit) &amp;&amp;
101
[206b7a1]102make &amp;&amp;
[82fac2c]103
[e8f7606]104sed -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>
[66f48aa2]109 Running the tests is not recommended. Failures will be reported during the
110 tests, depending on the screen resolution/capabilities, fonts installed
111 and other X related parameters, but the end report can show 0 failures.
112 Some tests will steal focus and some might crash your X Server. To test
[1b3d6bd4]113 the results anyway, issue: <command>make test</command>. Ensure you run
114 it from an X Window display device with the GLX extensions loaded, but
[92b444d]115 even so, tests might hang. 2 tests are known to fail regardless.
116 <!-- Test Statistics (tk8.6.9 - renodr):
117 Total: 466
118 Passed: 447
119 Skipped: 17
120 Failed: 2
121 The two tests that fail have to do with ttk.test
122 -->
[e8f7606]123 </para>
[516af114]124
[e8f7606]125 <para>
126 Now, as the <systemitem class="username">root</systemitem> user:
127 </para>
[516af114]128
129<screen role="root"><userinput>make install &amp;&amp;
[33fd7e43]130make install-private-headers &amp;&amp;
[dd01532b]131ln -v -sf wish&tk-ver; /usr/bin/wish &amp;&amp;
[e8f7606]132chmod -v 755 /usr/lib/libtk&tk-ver;.so</userinput></screen>
[d8614521]133
[516af114]134 </sect2>
135
136 <sect2 role="commands">
137 <title>Command Explanations</title>
138
[e8f7606]139 <para>
[5a464e4d]140 <parameter>$([ $(uname -m) = x86_64 ] &amp;&amp; echo
141 --enable-64bit)</parameter>: This switch is used to enable 64 bit
[82fac2c]142 support in <application>Tk</application> on 64 bit operating
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>
200 is a symlink to the <command>wish&tk-ver;</command> program.
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
214 then processes <application>Tcl</application> commands.
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
227 by <application>Tk</application>.
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>
Note: See TracBrowser for help on using the repository browser.