OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [docs/] [WinInst.txt] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
 
2
                         BUILDING THE WINDOWS BINARIES
3
 
4
   To build Tix on Windows, you must have the following:
5
 
6
     * Visual C++ 4.0 or later; or Borland C++ 4.5 or later. There is not
7
       yet built-in support for Tix to work with other compilers.
8
     * The sources of Tcl/Tk for Windows.
9
     * The sources of Tix for Windows.
10
 
11
  1. DOWNLOAD THE TCL, TK AND TIX SOURCES
12
 
13
   You can download latest version of the Tcl7.5, 7.6 or 8.0 from
14
   ftp://ftp.sunlabs.com/pub . There are detailed instructions that
15
   comes with these packages about compiling them on Windows. Hopefully
16
   that will give you a good exercise on setting up the environment for
17
   compiling Tcl-based programs on the Windows platforms.
18
 
19
   You can then get the Tix source distribution at
20
   ftp://ftp.xpi.com/pub/Tix41.zip . This ZIP file contains files with
21
   long file names and must be unzipped by an UNZIP program that knows
22
   long filenames, such as winzip.exe.
23
 
24
   You should put the Tcl, Tk and Tix source packages in the same
25
   directory. For example, my directories look like this:
26
 
27
     C:\tcl7.6
28
     C:\tk4.2
29
     C:\Tix4.1
30
 
31
  2. COMPILE TCL AND TK
32
 
33
   Follow the instructions that come with Tcl and Tk. If you can compile
34
   successfully, you would get the following files:
35
 
36
     C:\tcl7.6\win\tcl76.dll
37
     C:\tcl7.6\win\tclpip76.dll
38
     C:\tk4.2\win\tk42.dll
39
 
40
   These are the files you need to run Tix on Windows.
41
 
42
  3. COMPILE TIX
43
 
44
   Change to the Tix4.1\Win subdirectory. Tix supports several versions
45
   of Tcl. You choose the version of Tcl to compile Tix with by using the
46
   TCL_VER variable:
47
     * Tcl 7.5: nmake -f makefile.vc TCL_VER=7.5
48
     * Tcl 7.6: nmake -f makefile.vc TCL_VER=7.6
49
     * Tcl 8.0: nmake -f makefile.vc TCL_VER=8.0
50
     * Itcl 2.2: nmake -f makefile.vc TCL_VER=2.2i
51
 
52
   If you have BC++, use make -f makefile.bc instead.
53
 
54
   When make or nmake finishes, you will get Tix binaries inside the
55
   build directories. For example, if you compile Tix for Tcl 7.6, you
56
   will be the following files:
57
 
58
     C:\Tix4.1\win\tcl7.6\tix4176.dll
59
     C:\Tix4.1\win\tcl7.6\tix4176.exe
60
 
61
   The executable file tix4176.exe contains Tcl, Tk and Tix. You can use
62
   it to run an Tix script by:
63
 
64
     set TIX_LIBRARY=C:\Tix4.1\library C:\Tix4.1\win\tcl7.6\tix4176.exe
65
     foo.tcl
66
 
67
  4. FIXING DLL PROBLEMS
68
 
69
   You may run into certain problems related to DLL's when you execute
70
   tix4176.exe. For example:
71
     * Windows complains that a DLL, usually tcl76.dll, is not found.
72
     * Windows complains that a symbol is missing.
73
     * Some weird things happen.
74
 
75
   When tix4176.exe starts up, it will load in the following DLL's
76
     * tcl76.dll
77
     * tclpip76.dll
78
     * tk42.dll
79
     * tix4176.dll
80
 
81
   Windows searches for a DLL file by the following order:
82
    1. Same directory as executable.
83
    2. Windows system directory.
84
    3. directories in the PATH environment variable.
85
 
86
   To ensure that the correct DLLs are loaded, you can copy all the DLL's
87
   used by tix4176.exe into the directory where tix4176.exe is.
88
 
89
  5. INSTALLING TIX
90
 
91
   You can install Tix into the Tcl installation directory so that you
92
   can load Tix with the "package require" command and no longer need to
93
   set the TIX_LIBRARY variable:
94
 
95
    1. Create a directory tix4.1 under the Tcl installation directory,
96
       usually in C:\Program Files\Tcl7.6\lib.
97
 
98
    2. Copy all the files under Tix4.1b1\library into the C:\Program
99
       Files\Tcl7.6\lib\tix4.1 directory.
100
 
101
    3. Copy the file Tix4.1\win\pkgIndex.tcl into the C:\Program
102
       Files\Tcl7.6\lib\tix4.1 directory.
103
 
104
   Now you should be able to start up wish42.exe and execute the
105
   following command to load in Tix.
106
 
107
     package require -exact Tix [tixBinVer 4.1]
108
 
109
   Read the file Tix4.1\docs\Pkg.txt for more info about dynamically
110
   loading Tix.
111
 
112
     _________________________________________________________________
113
 
114
  FAQ'S FOR RUNNING TIX ON WINDOWS
115
 
116
   How do I set an environment variable.
117
 
118
          You can set it in your DOS window by typing something like "set
119
          TIX_LIBRARY=C:\Tix4.1\win". This will affect that particular
120
          DOS window only. If you want the change to affect the whole
121
          Windows environment (for example, you want launch txwish41.exe
122
          by double-clicking on its icon), you must put the commands in
123
          your AUTOEXEC.BAT file and then reboot your machine.
124
 
125
   I get an "out of environment space" error from DOS.
126
 
127
          Edit your CONFIG.SYS file and add the switch "/E:1024" to the
128
          SHELL=COMMAND.COM line. Reboot. This should give you enough
129
          env space.
130
 
131
   My C compiler says "unrecognized file format tk42.lib" or something
132
          like that.
133
 
134
          You compiled tk42.lib with VC++ and are compiling Tix with
135
          Borland C++, or vice verse. Use the same compiler to compile
136
          all binaries.
137
 
138
     _________________________________________________________________
139
 
140
   Last modified Sat Feb 15 21:52:36 EST 1997 --- Serial 856069650
141
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.