source: general/prog/tk.xml@ 0648192

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 0648192 was 92d2b83, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to curl-7.55.0.
Update to tcl-core-8.6.7 and tk-8.6.7.
Update to openjpeg2-2.2.0.
Update to gnupg-2.1.23.

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

  • Property mode set to 100644
File size: 6.7 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
[fce275e]7 <!ENTITY tk-download-http "&sourceforge-repo;/tcl/tk&tk-version;-src.tar.gz">
[c786e55]8 <!ENTITY tk-download-ftp " ">
[92d2b83]9 <!ENTITY tk-md5sum "46ea9c0165c515d87393700f4891ab6f">
[b5e1815e]10 <!ENTITY tk-size "4.1 MB">
11 <!ENTITY tk-buildsize "24 MB">
[92d2b83]12 <!ENTITY tk-time "0.3 SBU">
[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
[995a461b]40 &lfs80_checked;
[92d2b83]41 &gcc7_checked;
[4a40984]42
[516af114]43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
[e8f7606]46 <para>
47 Download (HTTP): <ulink url="&tk-download-http;"/>
48 </para>
[516af114]49 </listitem>
50 <listitem>
[e8f7606]51 <para>
52 Download (FTP): <ulink url="&tk-download-ftp;"/>
53 </para>
[516af114]54 </listitem>
55 <listitem>
[e8f7606]56 <para>
57 Download MD5 sum: &tk-md5sum;
58 </para>
[516af114]59 </listitem>
60 <listitem>
[e8f7606]61 <para>
62 Download size: &tk-size;
63 </para>
[516af114]64 </listitem>
65 <listitem>
[e8f7606]66 <para>
67 Estimated disk space required: &tk-buildsize;
68 </para>
[516af114]69 </listitem>
70 <listitem>
[e8f7606]71 <para>
72 Estimated build time: &tk-time;
73 </para>
[516af114]74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Required</bridgehead>
[e8f7606]80 <para role="required">
81 <xref linkend="tcl"/> and
82 <xref linkend="xorg7-lib"/>
83 </para>
[516af114]84
[1039de3]85 <para condition="html" role="usernotes">User Notes:
[82fac2c]86 <ulink url="&blfs-wiki;/tk"/>
87 </para>
[516af114]88 </sect2>
89
90 <sect2 role="installation">
91 <title>Installation of Tk</title>
[511fd69c]92
[e8f7606]93 <para>
94 Install <application>Tk</application> by running the following
95 commands:
96 </para>
[511fd69c]97
[33fd7e43]98<screen><userinput>cd unix &amp;&amp;
[1d82919]99./configure --prefix=/usr \
[82fac2c]100 --mandir=/usr/share/man \
101 $([ $(uname -m) = x86_64 ] &amp;&amp; echo --enable-64bit) &amp;&amp;
102
[206b7a1]103make &amp;&amp;
[82fac2c]104
[e8f7606]105sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
[206b7a1]106 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
[e8f7606]107 -i tkConfig.sh</userinput></screen>
[516af114]108
[e8f7606]109 <para>
[66f48aa2]110 Running the tests is not recommended. Failures will be reported during the
111 tests, depending on the screen resolution/capabilities, fonts installed
112 and other X related parameters, but the end report can show 0 failures.
113 Some tests will steal focus and some might crash your X Server. To test
[1b3d6bd4]114 the results anyway, issue: <command>make test</command>. Ensure you run
115 it from an X Window display device with the GLX extensions loaded, but
[66f48aa2]116 even so, tests might hang.
[e8f7606]117 </para>
[516af114]118
[e8f7606]119 <para>
120 Now, as the <systemitem class="username">root</systemitem> user:
121 </para>
[516af114]122
123<screen role="root"><userinput>make install &amp;&amp;
[33fd7e43]124make install-private-headers &amp;&amp;
[dd01532b]125ln -v -sf wish&tk-ver; /usr/bin/wish &amp;&amp;
[e8f7606]126chmod -v 755 /usr/lib/libtk&tk-ver;.so</userinput></screen>
[d8614521]127
[516af114]128 </sect2>
129
130 <sect2 role="commands">
131 <title>Command Explanations</title>
132
[e8f7606]133 <para>
[5a464e4d]134 <parameter>$([ $(uname -m) = x86_64 ] &amp;&amp; echo
135 --enable-64bit)</parameter>: This switch is used to enable 64 bit
[82fac2c]136 support in <application>Tk</application> on 64 bit operating
137 systems.
[e8f7606]138 </para>
139
140 <para>
141 <command>make install-private-headers</command>: This command is
142 used to install the <application>Tk</application> library interface
143 headers used by other packages if they link to the
144 <application>Tk</application> library.
145 </para>
146
147 <para>
148 <command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
149 command is used to create a compatibility symbolic link to the
150 <command>wish&tk-ver;</command> file as many packages expect a file
151 named <command>wish</command>.
152 </para>
153
154 <para>
155 <command>sed -e ... tkConfig.sh</command>: The
156 <application>Tk</application> package expects that its source tree is
157 preserved so that packages depending on it for their compilation
158 can utilize it. This <command>sed</command> removes the references to the
159 build directory and replaces them with saner system-wide locations.
160 </para>
[516af114]161
162 </sect2>
163
164 <sect2 role="content">
165 <title>Contents</title>
166
167 <segmentedlist>
168 <segtitle>Installed Programs</segtitle>
169 <segtitle>Installed Libraries</segtitle>
[e8f7606]170 <segtitle>Installed Directory</segtitle>
[516af114]171
172 <seglistitem>
[e8f7606]173 <seg>
174 wish and wish&tk-ver;
175 </seg>
176 <seg>
177 libtk&tk-ver;.so and libtkstub&tk-ver;.a
178 </seg>
179 <seg>
180 /usr/lib/tk&tk-ver;
181 </seg>
[516af114]182 </seglistitem>
183 </segmentedlist>
184
185 <variablelist>
186 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
187 <?dbfo list-presentation="list"?>
188 <?dbhtml list-presentation="table"?>
189
190 <varlistentry id="wish">
191 <term><command>wish</command></term>
192 <listitem>
[e8f7606]193 <para>
194 is a symlink to the <command>wish&tk-ver;</command> program.
195 </para>
[516af114]196 <indexterm zone="tk wish">
[b960e3ec]197 <primary sortas="b-wish">wish</primary>
[516af114]198 </indexterm>
199 </listitem>
200 </varlistentry>
201
[36f2c9e]202 <varlistentry id="wish-eight">
203 <term><command>wish&tk-ver;</command></term>
[516af114]204 <listitem>
[e8f7606]205 <para>
206 is a simple shell containing the
207 <application>Tk</application> toolkit that creates a main window and
208 then processes <application>Tcl</application> commands.
209 </para>
[36f2c9e]210 <indexterm zone="tk wish-eight">
211 <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
[516af114]212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="libtk">
[82fac2c]217 <term><filename class="libraryfile">libtk&tk-ver;.so</filename></term>
[516af114]218 <listitem>
[e8f7606]219 <para>
220 contains the API functions required
221 by <application>Tk</application>.
222 </para>
[516af114]223 <indexterm zone="tk libtk">
[e8f7606]224 <primary sortas="c-libtk">libtk&tk-ver;.so</primary>
[516af114]225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 </variablelist>
230
231 </sect2>
[c4f1401]232
233</sect1>
Note: See TracBrowser for help on using the repository browser.