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/tcl8.3.5/ /home/src/tk8.3.5/ /home/src/tix-8.1.4/
For example, assuming your source directory is structured as above, you can build Tcl 8.3 and Tk 8.3 by issuing the following Unix commands:
cd /home/src/tcl8.3/unix ./configure --enable-shared make cd /home/src/tk8.3/unix ./configure --enable-shared make
tix-8.1.4/unix
directory and execute the configure script:
cd /home/src/tix-8.1.4/unix ./configure
tix-8.1.4/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
Tcl8.3/Tk8.3, execute the following commands:
Before you run thecd tk8.3 ./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., tix-8.1.4/unix/tk8.3/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/tix-8.1.4/demos env TIX_LIBRARY=/home/src/tix-8.1.4/library ../unix/tk8.3/tixwish widget
(Screen 4.1 Tix widget demostration program)
Hopefully it will report "0 error(s) found".cd /home/src/tix-8.1.4/unix/tk8.3 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/tix-8.1.4/unix make install
If you have trouble compiling Tix, I'd suggest looking at the files FAQ.html and 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. I'm also interested in hearing how to change the configuration setup so that Tix compiles on additional platforms "out of the box".