File: README.txt

package info (click to toggle)
tclthread 20030827-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,284 kB
  • ctags: 526
  • sloc: ansic: 4,828; sh: 2,589; tcl: 888; makefile: 240; cpp: 31
file content (74 lines) | stat: -rw-r--r-- 2,378 bytes parent folder | download | duplicates (2)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74

Thread extension supports two build scenarios under Windows:


o. Microsoft MSVC++ build:
--------------------------

You should use the makefile.vc and config.vc files for the
MSVC++ in the vc/ directory. Please edit the config.vc to
match your environment and then run:

    nmake -f makefile.vc

Please consult the vc/README.txt file for more details.

This is the preferred way of building the extension for the
Windows platform. It works out of the box and somebody says
that MSVC compiler produces better/faster code. Maybe true.


o. Cygwin/MinGW builds:
-----------------------

The extension can be compiled under Windows using either 
MinGW (http://www.mingw.org) or The Cygwin environment. 
(http://www.cygwin.com). Note that the Cygwin-supplied gcc
compiler is not supported. You should use the gcc compiler
as provided with the MinGW environment.

Please note that Cygwin/MinGW builds are working only for 
Tcl 8.4b1 or later. Earlier versions of Tcl core had many 
problems when building under one of those environments.

You should compile the Tcl core first. After that, you can
compile the extension by running the configure/make from
this directory. You can also use the CONFIG script to do
this. You might want to edit the CONFIG script to match
your environment and then just do:

    sh CONFIG

This should go smoothly, once you got Tcl core compiled ok.

There are also some (pretty promising) efforts in using 
MinGW on Linux to cross-compile the Tcl core for Windows 
under Linux operating system.
In general, you might want to take following steps:

  1. Install the MinGW cross compiler. Use the binaries from
     http://www.stats.ox.ac.uk/pub/Rtools/mingw-cross.tar.bz2
     You need a Linux with at least gnu libc 2.2 for that.

  2. Go to win directory of the tcl8.4b1 source distribution.

  3. Create the "config.site" file with the following contents:

     CC=mingw32-gcc
     AR=mingw32-ar
     RANLIB=mingw32-ranlib
     RC=mingw32-windres

  4. Run "CONFIG_SITE=config.site ./configure --enable-threads"

  5. Run "make"

After some (noisy) warnings you will get a set of *.exe and
*.dll files you can transfer to a Windows machine. 
Don't forget to copy Tcl libraries as well, otherwise Tcl 
shell won't start correctly.

After building the Tcl core, repeat steps 3-5 above from this
directory for building the Threading extension.

-EOF-