os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/win/README
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 Tcl 8.4 for Windows
     2 
     3 RCS: @(#) $Id: README,v 1.30.2.1 2005/07/29 03:50:51 mdejong 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 	http://www.tcl.tk/doc/howto/compile.html#win
    14 
    15 The above URL includes a lengthy discussion of compiler macros necessary
    16 when compiling Tcl extensions that will be dynamically loaded.
    17 
    18 2. Compiling Tcl
    19 ----------------
    20 
    21 In order to compile Tcl for Windows, you need the following:
    22 
    23 	Tcl 8.4 Source Distribution (plus any patches)
    24 
    25 	and
    26 
    27 	Visual C++ 5 or newer
    28 
    29 	or
    30 
    31 	Msys + Mingw
    32 
    33 	http://prdownloads.sourceforge.net/tcl/msys_mingw8.zip
    34 
    35 	This Msys + Mingw download is the minimal environment
    36 	needed to build Tcl/Tk under Windows. It includes a
    37 	shell environment and gcc. The release is designed to
    38 	make it as easy a possible to build Tcl/Tk. To install,
    39 	you just download the zip file and extract the files
    40 	into a directory. The README.TXT file describes how
    41 	to launch the msys shell, you then run the configure
    42 	script in the tcl/win 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
    49 the Visual C++ compiler and uses the stock NMAKE tool.  Detailed
    50 directions for using it, are in the comments of "makefile.vc".  A quick
    51 example would be:
    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 or Cygwin, you can use the configure script
    58 that lives in the win subdirectory. The Msys or Cygwin based configure/build
    59 process works just like the UNIX one, so you will want to refer to
    60 ../unix/README for available configure options. An error will be
    61 generated by the configure script if you try to compile Tcl with
    62 the Cygwin version of gcc instead of the Mingw version. Check your
    63 PATH if you get this error. Be aware that gcc will generate
    64 lots of compile time warnings when building Tcl. Warnings are
    65 not errors, so please don't file a bug report about them.
    66 
    67 In order to use the binaries generated by these makefiles, you will
    68 need to place the Tcl script library files someplace where Tcl can
    69 find them.  Tcl looks in one of following places for the library files:
    70 
    71 	1) The path specified in the environment variable "TCL_LIBRARY".
    72 
    73 	2) Relative to the directory containing the current .exe.
    74 	   Tcl will look for a directory "..\lib\tcl8.4" relative to the
    75 	   directory containing the currently running .exe.
    76 
    77 Note that in order to run tclsh84.exe, you must ensure that tcl84.dll
    78 and tclpip84.dll are on your path, in the system directory, or in the 
    79 directory containing tclsh84.exe.
    80 
    81 Note: Tcl no longer provides support for Win32s.
    82 
    83 3. Test suite
    84 -------------
    85 
    86 This distribution contains an extensive test suite for Tcl.  Some of
    87 the tests are timing dependent and will fail from time to time.  If a
    88 test is failing consistently, please send us a bug report with as much
    89 detail as you can manage.  Please use the online database at
    90 	http://tcl.sourceforge.net/
    91 
    92 In order to run the test suite, you build the "test" target using the
    93 appropriate makefile for your compiler.