Tix supports all of these versions of Tcl and Itcl so you can freely choose a version of Tcl or Itcl that works best for you. The following steps guide you through the process of building the Tix binary for your choice of the version(s) of Tcl or Itcl on Unix platforms.
IMPORTANT: Do not arrange your source directory in any other way. Do not change the names for these directories. Otherwise Tix will not be configured properly./home/src/tcl7.6/ /home/src/tk4.2/ /home/src/itcl2.1/ /home/src/Tix4.1.0/
For example, assuming your source directory is structured as above, you can build Tcl 7.6 and Tk 4.2 by issuing the following Unix commands:
cd /home/src/tcl7.6/unix ./configure --enable-shared make cd /home/src/tk4.2/unix ./configure --enable-shared make
Tix4.1.0/unix
directory and execute the configure script:
cd /home/src/Tix4.1.0/unix ./configure
Tix4.1.0/unix
directory, you
will see several subdirectories for building Tix for specific
version of Tcl/Tk or Itcl. Change into the appropriate
subdirectory. For example, if you want to build Tix for
Tcl7.6/Tk4.2, execute the following commands:
Before you run thecd tk4.2 ./configure --enable-shared make
configure
script, you can type:
to find out the available options../configure --help
tixwish
program inside the build directories
(e.g., Tix4.1.0/unix/tk4.2/tixwish
). Or, if you
build Tix for Itcl, the program will be called
itixwish
. Tix comes with a number of demo programs. You can run these program by running the demos/widget script with tixwish or itixwish. Make sure that you have set the TIX_LIBRARY variable accordingly (see below). If you haven't installed Tcl and/or Tk then you'll need to set your TCL_LIBRARY and TK_LIBRARY environment variable as well (see the Tcl and Tk README files for information on this).
You can type the following command in your shell:
This will open up the Tix demo window. You can click on the "Run Sample Programs" tab and execute the sample programs:cd /home/src/Tix4.1.0/demos env TIX_LIBRARY=/home/src/Tix4.1.0/library ../unix/tk4.2/tixwish widget
(Screen 4.1 Tix widget demostration program)
Hopefully it will report "0 error(s) found".cd /home/src/Tix4.1.0/unix/tk4.2 make tests
Type "make install" to install Tix's binaries and script files in standard places:
In the default configuration information will be installed in /usr/local so you'll need write permission on this directory. If you'd like to use a different installation directory, you can specify the "--exec-prefix" and "--prefix" options for the configure script in step 3 and then rebuild Tix.cd /home/src/Tix4.1.0/unix make install
If you have trouble compiling Tix, I'd suggest looking at the files docs/FAQ.html and docs/Porting.html. It contains information that people have sent me about changes they had to make to compile Tix in various environments.
I make no guarantees that this information is accurate, complete, or up-to-date, but you may find it useful. If you get Tix running on a new configuration and had to make non-trivial changes to do it, I'd be happy to receive new information to add to docs/Porting.html. I'm also interested in hearing how to change the configuration setup so that Tix compiles on additional platforms "out of the box".