summaryrefslogtreecommitdiff
path: root/Master/source/tlgui/tltcl/tltcl.README
blob: a4e90bcde402e694f26831064ac420abe98427cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Notes on building Tcl/Tk for TeX Live 2021

The 2021 edition contains a subset of a basic Tcl/Tk installation.

The Tcl/Tk 8.6.11 sources were downloaded via
http://www.tcl.tk/software/tcltk/download.html

Tcl/Tk was cross-compiled under ArchLinux (5.11.1-arch1-1) as follows.

First,patch the file tk8.6.11/win/wish.exe.manifest.in for
  better HiPDI support by adding a dpiAwareness element; the
  asmv3:windowsSettings element in this file becomes:

<asmv3:windowsSettings
        xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
    <dpiAware>true</dpiAware>
    <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
</asmv3:windowsSettings>

Create or choose a root for the installation. Do for Tcl and Tk successively:

- Unpack the source, and run in the win subdirectory:

  ./configure --host=i686-w64-mingw32 --enable-embedded-manifest \
    --prefix=<tcltk root>
  make
  make install

Portability of the result should be no problem.

For a smaller installation, I stripped all the .exe- and .dll files.
I removed sqlite3_analyzer from <tcltk root>/bin and copied
tclsh86.exe and wish86.exe to tclsh.exe and wish.exe respectively.
I placed just the resulting lib- and bin subdirectories under
<TL root>/tlpkg/tltcl, omitting the include- and share
subdirectories.

Siep Kroonenberg

March 2021