Debian Codegraph @

win/README

raw
1 Tcl 8.6 for Windows
2
3 1. Introduction
4 ---------------
5
6 This is the directory where you configure and compile the Windows
7 version of Tcl. This directory also contains source files for Tcl
8 that are specific to Microsoft Windows.
9
10 The information in this file is maintained on the web at:
11
12 https://www.tcl-lang.org/doc/howto/compile.html#win
13
14 2. Compiling Tcl
15 ----------------
16
17 In order to compile Tcl for Windows, you need the following:
18
19 Tcl 8.6 Source Distribution (plus any patches)
20
21 and
22
23 Visual C++ 6 or newer
24
25 or
26
27 Linux + MinGW-w64 [https://www.mingw-w64.org/]
28 (win32 or win64)
29
30 or
31
32 Cygwin + MinGW-w64 [https://cygwin.com/install.html]
33 (win32 or win64)
34
35 or
36
37 Darwin + MinGW-w64 [https://www.mingw-w64.org/]
38 (win32 or win64)
39
40 or
41
42 Msys + MinGW-w64 [https://www.mingw-w64.org/]
43 (win32 or win64)
44
45 or
46
47 LLVM MinGW [https://github.com/mstorsjo/llvm-mingw/]
48 (win32 or win64, IX86, AMD64 or ARM64)
49
50
51 In practice, this release is built with Visual C++ 6.0 and the TEA
52 Makefile.
53
54 If you are building with Visual C++, in the "win" subdirectory of the
55 source release, you will find "makefile.vc". This is the makefile for the
56 Visual C++ compiler and uses the stock NMAKE tool. Detailed directions for
57 using it, are in the comments of "makefile.vc". A quick example would be:
58
59 C:\tcl_source\win\>nmake -f makefile.vc
60
61 There is also a Developer Studio workspace and project file, too, if you
62 would like to use them.
63
64 If you are building with Linux, Cygwin or Msys, you can use the configure
65 script that lives in the win subdirectory. The Linux/Cygwin/Msys based
66 configure/build process works just like the UNIX one, so you will want
67 to refer to ../unix/README for available configure options.
68
69 If you want 64-bit executables (x86_64), you need to configure using
70 the --enable-64bit (or --enable-64bit=arm64) option. Make sure that
71 the x86_64-w64-mingw32 (or aarch64-w64-mingw32) compiler is present.
72 For Cygwin the x86_64 compiler can be found in the
73 "mingw64-x86_64-gcc-core" package, which can be installed through
74 the normal Cygwin install process. If you only want 32-bit executables,
75 the "mingw64-i686-gcc-core" package is what you need. For Linux, Darwin
76 and Msys, you can download a suitable win32 or win64 compiler from
77 [https://sourceforge.net/projects/mingw-w64/files/]
78
79 Use the Makefile "install" target to install Tcl. It will install it
80 according to the prefix options you provided in the correct directory
81 structure.
82
83 Note that in order to run tclsh86.exe, you must ensure that tcl86.dll
84 and zlib1.dll are on your path, in the system directory, or in the
85 directory containing tclsh86.exe.
86
87 Note: Tcl no longer provides support for Win32s.
88
89 3. Test suite
90 -------------
91
92 This distribution contains an extensive test suite for Tcl. Some of the
93 tests are timing dependent and will fail from time to time. If a test is
94 failing consistently, please send us a bug report with as much detail as
95 you can manage to our tracker:
96
97 https://core.tcl-lang.org/tcl/reportlist
98
99 In order to run the test suite, you build the "test" target using the
100 appropriate makefile for your compiler.