[25] | 1 | Tcl 8.5 for Windows |
---|
| 2 | |
---|
| 3 | RCS: @(#) $Id: README,v 1.37 2007/12/14 21:02:05 hobbs Exp $ |
---|
| 4 | |
---|
| 5 | 1. Introduction |
---|
| 6 | --------------- |
---|
| 7 | |
---|
| 8 | This is the directory where you configure and compile the Windows |
---|
| 9 | version of Tcl. This directory also contains source files for Tcl |
---|
| 10 | that are specific to Microsoft Windows. |
---|
| 11 | |
---|
| 12 | The information in this file is maintained on the web at: |
---|
| 13 | |
---|
| 14 | http://www.tcl.tk/doc/howto/compile.html#win |
---|
| 15 | |
---|
| 16 | The above URL includes a lengthy discussion of compiler macros necessary |
---|
| 17 | when compiling Tcl extensions that will be dynamically loaded. |
---|
| 18 | |
---|
| 19 | 2. Compiling Tcl |
---|
| 20 | ---------------- |
---|
| 21 | |
---|
| 22 | In order to compile Tcl for Windows, you need the following: |
---|
| 23 | |
---|
| 24 | Tcl 8.5 Source Distribution (plus any patches) |
---|
| 25 | |
---|
| 26 | and |
---|
| 27 | |
---|
| 28 | Visual C++ 6 or newer |
---|
| 29 | |
---|
| 30 | or |
---|
| 31 | |
---|
| 32 | Msys + Mingw [http://www.mingw.org/download.shtml] |
---|
| 33 | |
---|
| 34 | http://prdownloads.sourceforge.net/tcl/msys_mingw8.zip |
---|
| 35 | |
---|
| 36 | This Msys + Mingw download above is the minimal environment needed |
---|
| 37 | to build Tcl/Tk under Windows. It includes a shell environment and |
---|
| 38 | gcc. The release is designed to make it as easy a possible to build |
---|
| 39 | Tcl/Tk. To install, you just download the zip file and extract the |
---|
| 40 | files into a directory. The README.TXT file describes how to launch |
---|
| 41 | the msys shell, you then run the configure script in the tcl/win |
---|
| 42 | directory. |
---|
| 43 | |
---|
| 44 | In practice, this release is built with Visual C++ 6.0 and the TEA |
---|
| 45 | Makefile. |
---|
| 46 | |
---|
| 47 | If you are building with Visual C++, in the "win" subdirectory of the |
---|
| 48 | source release, you will find "makefile.vc". This is the makefile for the |
---|
| 49 | Visual C++ compiler and uses the stock NMAKE tool. Detailed directions for |
---|
| 50 | using it, are in the comments of "makefile.vc". A quick example would be: |
---|
| 51 | |
---|
| 52 | C:\tcl_source\win\>nmake -f makefile.vc |
---|
| 53 | |
---|
| 54 | There is also a Developer Studio workspace and project file, too, if you |
---|
| 55 | would like to use them. |
---|
| 56 | |
---|
| 57 | If you are building with Msys, you can use the configure script that lives |
---|
| 58 | in the win subdirectory. The Msys based configure/build process works just |
---|
| 59 | like the UNIX one, so you will want to refer to ../unix/README for |
---|
| 60 | available configure options. An error will be generated by the configure |
---|
| 61 | script if you try to compile Tcl with the Cygwin version of gcc instead of |
---|
| 62 | the Mingw version. Check your PATH if you get this error. |
---|
| 63 | |
---|
| 64 | Use the Makefile "install" target to install Tcl. It will install it |
---|
| 65 | according to the prefix options you provided in the correct directory |
---|
| 66 | structure. |
---|
| 67 | |
---|
| 68 | Note that in order to run tclsh85.exe, you must ensure that tcl85.dll is on |
---|
| 69 | your path, in the system directory, or in the directory containing |
---|
| 70 | tclsh85.exe. |
---|
| 71 | |
---|
| 72 | Note: Tcl no longer provides support for Win32s. |
---|
| 73 | |
---|
| 74 | 3. Test suite |
---|
| 75 | ------------- |
---|
| 76 | |
---|
| 77 | This distribution contains an extensive test suite for Tcl. Some of the |
---|
| 78 | tests are timing dependent and will fail from time to time. If a test is |
---|
| 79 | failing consistently, please send us a bug report with as much detail as |
---|
| 80 | you can manage. Please use the online database at |
---|
| 81 | |
---|
| 82 | http://tcl.sourceforge.net/ |
---|
| 83 | |
---|
| 84 | In order to run the test suite, you build the "test" target using the |
---|
| 85 | appropriate makefile for your compiler. |
---|