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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
 
2
                          BUILDING THE UNIX BINARIES
3
 
4
   There are several versions of Tcl/Tk being used today. The newer Tcl
5
   7.5, 7.6 and 8.0 releases are becoming popular because they can run
6
   on Windows, Unix and Macintosh. However, many people are still using
7
   Tcl 7.4. Another popular variant of Tcl is Itcl , which adds
8
   object-oriented functionality to the Tcl language. Version Itcl 2.0,
9
   2.1 and 2.2 are being widely used now.
10
 
11
   Tix supports all of these versions of Tcl and Itcl so you can freely
12
   choose a version of Tcl or Itcl that works best for you. The following
13
   steps guide you through the process of building the Tix binary for
14
   your choice of the version(s) of Tcl or Itcl on Unix platforms.
15
 
16
  1. DOWNLOAD THE TCL, TK AND/OR ITCL SOURCES
17
 
18
   You may have already installed Tcl, Tk and Itcl on your system. The
19
   installed binaries usually reside in the /usr/local/ directory.
20
   However, the build process of Tix doesn't use the installed binaries
21
   because doing that may result in subtle version conflects. Instead,
22
   Tix uses only the binaries from the Tcl, Tk and Itcl source
23
   directories. Install sources of these packages if they are not already
24
   in your system.
25
 
26
     * Tcl 7.4, 7.5, 7.6 and 8.0: The source code of these Tcl releases
27
       can be found at ftp://ftp.sunlabs.com/pub . Remember to download
28
       the source code of the corresponding versions of Tk as well.
29
 
30
     * Itcl 2.0: The source code can be found at
31
       ftp://ftp.neosoft.com/pub/tcl/alcatel/extensions/itcl2.0.tar.gz
32
       .
33
 
34
     * Itcl 2.1 and 2.2: Download the source code from
35
       ftp://www.tcltk.com/pub/itcl
36
 
37
   Make sure that the source directory of these package reside in the
38
   same directory as Tix. For example, to compile Tix 4.1.0 for Tcl 7.6
39
   and Itcl 2.1, a typical source directory would look like this:
40
 
41
  /home/src/tcl7.6/
42
  /home/src/tk4.2/
43
  /home/src/itcl2.1/
44
  /home/src/Tix4.1.0/
45
 
46
   IMPORTANT: Do not arrange your source directory in any other way. Do
47
   not change the names for these directories. Otherwise Tix will not be
48
   configured properly.
49
 
50
  2. CONFIGURE AND COMPILE THE DESIRED VERSION(S) OF TCL AND/OR ITCL
51
 
52
   Tcl, Tk and Itcl comes with installation guides and should be easy to
53
   build. In case you have any problems building these packages, you can
54
   send your questions to the comp.lang.tcl newsgroup or to the
55
   respective authors of these packages. You may also send mail to
56
   tix-support@xpi.com.
57
 
58
   For example, assuming your source directory is structured as above,
59
   you can build Tcl 7.6 and Tk 4.2 by issuing the following Unix
60
   commands:
61
 
62
  cd /home/src/tcl7.6/unix
63
  ./configure --enable-shared
64
  make
65
  cd /home/src/tk4.2/unix
66
  ./configure --enable-shared
67
  make
68
 
69
  3. CONFIGURE AND COMPILE TIX
70
    1. Make sure you have configured and build the desired version(s) of
71
       Tcl and/or Itcl.
72
 
73
    2. Change into the Tix4.1.0/unix directory and execute the configure
74
       script:
75
 
76
  cd /home/src/Tix4.1.0/unix
77
  ./configure
78
 
79
    3. Inside the Tix4.1.0/unix directory, you will see several
80
       subdirectories for building Tix for specific version of Tcl/Tk or
81
       Itcl. Change into the appropriate subdirectory. For example, if
82
       you want to build Tix for Tcl7.6/Tk4.2, execute the following
83
       commands:
84
 
85
  cd tk4.2
86
  ./configure --enable-shared
87
  make
88
 
89
   Before you run the configure script, you can type:
90
 
91
  ./configure --help
92
 
93
   to find out the available options.
94
    4. Repeat step 3 for any other versions of Tcl/Tk or Itcl that you
95
       want to build Tix for.
96
 
97
  4. EXPERIMENTING WITH TIX
98
 
99
   When you finish building Tix, you will find the tixwish program inside
100
   the build directories (e.g., Tix4.1.0/unix/tk4.2/tixwish). Or, if you
101
   build Tix for Itcl, the program will be called itixwish.
102
 
103
   Tix comes with a number of demo programs. You can run these program by
104
   running the demos/widget script with tixwish or itixwish. Make sure
105
   that you have set the TIX_LIBRARY variable accordingly (see below). If
106
   you haven't installed Tcl and/or Tk then you'll need to set your
107
   TCL_LIBRARY and TK_LIBRARY environment variable as well (see the Tcl
108
   and Tk README files for information on this).
109
 
110
   You can type the following command in your shell:
111
 
112
  cd /home/src/Tix4.1.0/demos
113
  env TIX_LIBRARY=/home/src/Tix4.1.0/library ../unix/tk4.2/tixwish widget
114
 
115
   This will open up the Tix demo window. You can click on the "Run
116
   Sample Programs" tab and execute the sample programs:
117
 
118
   [IMAGE]
119
 
120
   (Screen 4.1 Tix widget demostration program)
121
 
122
  5. INSTALLING TIX
123
 
124
   If you are sufficiently convinced that Tix works properly, you can
125
   install the Tix binaries and scripts on your system. If you are
126
   paranoid, these is a small set of test scripts that tests the behavior
127
   of Tix under various configurations. You can do this by typing "make
128
   tests" inside the build-subdirectories, e.g.:
129
 
130
  cd /home/src/Tix4.1.0/unix/tk4.2
131
  make tests
132
 
133
   Hopefully it will report "0 error(s) found".
134
 
135
   Type "make install" to install Tix's binaries and script files in
136
   standard places:
137
 
138
  cd /home/src/Tix4.1.0/unix
139
  make install
140
 
141
   In the default configuration information will be installed in
142
   /usr/local so you'll need write permission on this directory. If
143
   you'd like to use a different installation directory, you can specify
144
   the "--exec-prefix" and "--prefix" options for the configure script in
145
   step 3 and then rebuild Tix.
146
 
147
  6. TROUBLE SHOOTING
148
 
149
   If make fails then you'll have to personalize the Makefile's for your
150
   site or possibly modify the distribution in other ways. First check
151
   the files docs/FAQ.html and docs/Porting.html to see if there are
152
   hints for compiling on your system. If you need to modify Makefile's,
153
   there are comments at the beginning of it that describe the things you
154
   might want to change and how to change them.
155
 
156
   If you have trouble compiling Tix, I'd suggest looking at the files
157
   docs/FAQ.html and docs/Porting.html. It contains information that
158
   people have sent me about changes they had to make to compile Tix in
159
   various environments.
160
 
161
   I make no guarantees that this information is accurate, complete, or
162
   up-to-date, but you may find it useful. If you get Tix running on a
163
   new configuration and had to make non-trivial changes to do it, I'd be
164
   happy to receive new information to add to docs/Porting.html. I'm also
165
   interested in hearing how to change the configuration setup so that
166
   Tix compiles on additional platforms "out of the box".
167
 
168
     _________________________________________________________________
169
 
170
   Last modified Wed Feb 12 16:01:33 EST 1997 --- Serial 856069650
171
 

powered by: WebSVN 2.1.0

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