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-repo;/tcl/tk&tk-version;-src.tar.gz">
|
---|
8 | <!ENTITY tk-download-ftp "">
|
---|
9 | <!-- might be useful again in the future
|
---|
10 | <!ENTITY tk-download-ftp "&gentoo-ftp-repo;/tk&tk-version;-src.tar.gz">-->
|
---|
11 | <!ENTITY tk-md5sum "a01640176845c1f654a412cfc9bab13b">
|
---|
12 | <!ENTITY tk-size "3.7 MB">
|
---|
13 | <!ENTITY tk-buildsize "28 MB">
|
---|
14 | <!ENTITY tk-time "0.3 SBU">
|
---|
15 |
|
---|
16 | <!-- Ensure this is updated when Tk moves from the 8.5.x branch -->
|
---|
17 | <!ENTITY tk-ver "8.5">
|
---|
18 | ]>
|
---|
19 |
|
---|
20 | <sect1 id="tk" xreflabel="Tk-&tk-version;">
|
---|
21 | <?dbhtml filename="tk.html"?>
|
---|
22 |
|
---|
23 | <sect1info>
|
---|
24 | <othername>$LastChangedBy$</othername>
|
---|
25 | <date>$Date$</date>
|
---|
26 | </sect1info>
|
---|
27 |
|
---|
28 | <title>Tk-&tk-version;</title>
|
---|
29 |
|
---|
30 | <indexterm zone="tk">
|
---|
31 | <primary sortas="a-Tk">Tk</primary>
|
---|
32 | </indexterm>
|
---|
33 |
|
---|
34 | <sect2 role="package">
|
---|
35 | <title>Introduction to Tk</title>
|
---|
36 |
|
---|
37 | <para>
|
---|
38 | The <application>Tk</application> package contains a
|
---|
39 | TCL GUI Toolkit.
|
---|
40 | </para>
|
---|
41 |
|
---|
42 | &lfs71_checked;
|
---|
43 |
|
---|
44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
45 | <itemizedlist spacing="compact">
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (HTTP): <ulink url="&tk-download-http;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download (FTP): <ulink url="&tk-download-ftp;"/>
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download MD5 sum: &tk-md5sum;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Download size: &tk-size;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated disk space required: &tk-buildsize;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | <listitem>
|
---|
72 | <para>
|
---|
73 | Estimated build time: &tk-time;
|
---|
74 | </para>
|
---|
75 | </listitem>
|
---|
76 | </itemizedlist>
|
---|
77 |
|
---|
78 | <bridgehead renderas="sect3">Tk Dependencies</bridgehead>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
81 | <para role="required">
|
---|
82 | <xref linkend="tcl"/> and
|
---|
83 | <xref linkend="xorg7-lib"/>
|
---|
84 | </para>
|
---|
85 |
|
---|
86 | <para condition="html" role="usernotes">User Notes:
|
---|
87 | <ulink url="&blfs-wiki;/tk"/></para>
|
---|
88 |
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 | <sect2 role="installation">
|
---|
92 | <title>Installation of Tk</title>
|
---|
93 |
|
---|
94 | <para>
|
---|
95 | Install <application>Tk</application> by running the following
|
---|
96 | commands:
|
---|
97 | </para>
|
---|
98 |
|
---|
99 | <screen><userinput>cd unix &&
|
---|
100 | ./configure --prefix=/usr \
|
---|
101 | --enable-threads \
|
---|
102 | --mandir=/usr/share/man &&
|
---|
103 | make &&
|
---|
104 | sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
|
---|
105 | -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
|
---|
106 | -i tkConfig.sh</userinput></screen>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | Running the tests is not recommended. Some tests may crash your X
|
---|
110 | Server. To test the results anyway, issue: <command>make test</command>.
|
---|
111 | Ensure you run it from an X Window display device with the GLX extensions
|
---|
112 | loaded, otherwise the tests will hang.
|
---|
113 | </para>
|
---|
114 |
|
---|
115 | <para>
|
---|
116 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
117 | </para>
|
---|
118 |
|
---|
119 | <screen role="root"><userinput>make install &&
|
---|
120 | make install-private-headers &&
|
---|
121 | ln -v -sf wish&tk-ver; /usr/bin/wish &&
|
---|
122 | chmod -v 755 /usr/lib/libtk&tk-ver;.so</userinput></screen>
|
---|
123 |
|
---|
124 | </sect2>
|
---|
125 |
|
---|
126 | <sect2 role="commands">
|
---|
127 | <title>Command Explanations</title>
|
---|
128 |
|
---|
129 | <para>
|
---|
130 | <option>--enable-threads</option>: This switch forces the
|
---|
131 | package to build with thread support.
|
---|
132 | </para>
|
---|
133 |
|
---|
134 | <para>
|
---|
135 | <command>make install-private-headers</command>: This command is
|
---|
136 | used to install the <application>Tk</application> library interface
|
---|
137 | headers used by other packages if they link to the
|
---|
138 | <application>Tk</application> library.
|
---|
139 | </para>
|
---|
140 |
|
---|
141 | <para>
|
---|
142 | <command>ln -v -sf wish&tk-ver; /usr/bin/wish</command>: This
|
---|
143 | command is used to create a compatibility symbolic link to the
|
---|
144 | <command>wish&tk-ver;</command> file as many packages expect a file
|
---|
145 | named <command>wish</command>.
|
---|
146 | </para>
|
---|
147 |
|
---|
148 | <para>
|
---|
149 | <command>sed -e ... tkConfig.sh</command>: The
|
---|
150 | <application>Tk</application> package expects that its source tree is
|
---|
151 | preserved so that packages depending on it for their compilation
|
---|
152 | can utilize it. This <command>sed</command> removes the references to the
|
---|
153 | build directory and replaces them with saner system-wide locations.
|
---|
154 | </para>
|
---|
155 |
|
---|
156 | </sect2>
|
---|
157 |
|
---|
158 | <sect2 role="content">
|
---|
159 | <title>Contents</title>
|
---|
160 |
|
---|
161 | <segmentedlist>
|
---|
162 | <segtitle>Installed Programs</segtitle>
|
---|
163 | <segtitle>Installed Libraries</segtitle>
|
---|
164 | <segtitle>Installed Directory</segtitle>
|
---|
165 |
|
---|
166 | <seglistitem>
|
---|
167 | <seg>
|
---|
168 | wish and wish&tk-ver;
|
---|
169 | </seg>
|
---|
170 | <seg>
|
---|
171 | libtk&tk-ver;.so and libtkstub&tk-ver;.a
|
---|
172 | </seg>
|
---|
173 | <seg>
|
---|
174 | /usr/lib/tk&tk-ver;
|
---|
175 | </seg>
|
---|
176 | </seglistitem>
|
---|
177 | </segmentedlist>
|
---|
178 |
|
---|
179 | <variablelist>
|
---|
180 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
181 | <?dbfo list-presentation="list"?>
|
---|
182 | <?dbhtml list-presentation="table"?>
|
---|
183 |
|
---|
184 | <varlistentry id="wish">
|
---|
185 | <term><command>wish</command></term>
|
---|
186 | <listitem>
|
---|
187 | <para>
|
---|
188 | is a symlink to the <command>wish&tk-ver;</command> program.
|
---|
189 | </para>
|
---|
190 | <indexterm zone="tk wish">
|
---|
191 | <primary sortas="b-wish">wish</primary>
|
---|
192 | </indexterm>
|
---|
193 | </listitem>
|
---|
194 | </varlistentry>
|
---|
195 |
|
---|
196 | <varlistentry id="wish-eight">
|
---|
197 | <term><command>wish&tk-ver;</command></term>
|
---|
198 | <listitem>
|
---|
199 | <para>
|
---|
200 | is a simple shell containing the
|
---|
201 | <application>Tk</application> toolkit that creates a main window and
|
---|
202 | then processes <application>Tcl</application> commands.
|
---|
203 | </para>
|
---|
204 | <indexterm zone="tk wish-eight">
|
---|
205 | <primary sortas="b-wish&tk-ver;">wish&tk-ver;</primary>
|
---|
206 | </indexterm>
|
---|
207 | </listitem>
|
---|
208 | </varlistentry>
|
---|
209 |
|
---|
210 | <varlistentry id="libtk">
|
---|
211 | <term><filename role="library">libtk&tk-ver;.so</filename></term>
|
---|
212 | <listitem>
|
---|
213 | <para>
|
---|
214 | contains the API functions required
|
---|
215 | by <application>Tk</application>.
|
---|
216 | </para>
|
---|
217 | <indexterm zone="tk libtk">
|
---|
218 | <primary sortas="c-libtk">libtk&tk-ver;.so</primary>
|
---|
219 | </indexterm>
|
---|
220 | </listitem>
|
---|
221 | </varlistentry>
|
---|
222 |
|
---|
223 | </variablelist>
|
---|
224 |
|
---|
225 | </sect2>
|
---|
226 |
|
---|
227 | </sect1>
|
---|