Later during this installation you will create a Tcl package called
On this
page of the Tcl manual you can read more details about how Tcl
searches for packages.
4.1 Tcl/Tk
puts $tcl_version
to print the current version.
4.2 The Reference System
mkdir -p cost250/refsys
cd cost250/refsys
mv /whereeveritis/refsys-v1.0.tar.gz .
gunzip refsys-v1.0.tar.gz
tar xvf refsys-v1.0.tar
All files of the distribution will unfold in a directory
v1.0 (referred to as $version in the
following).
cost250. Tcl can find this package automatically in one
of the following ways (the first alternative is strongly recommended):
tclsh (starts a Tcl shell and gives you a % prompt)
puts $tcl_pkgPath (a tcl command)
which will print one or more directories for you. Choose one of them.
If you choose your directory like this, other users on your system
will automatically be able to use the Tcl package.
cd refsys/$version
make all
make install
The makefile has been tested with GNU make only. Type 'make
info' to print a menu with available targets in the makefile.
make distclean
make deinstall
This will delete the installed binaries and the Tcl package.
4.3 A Polycost Subset
To run the calibration test in the following section you need a subset
of Polycost. If you don't have Polycost stored on a disc, you may
want to download the required subset and install it temporarily.
This is how to do that:
Note that the files used in the calibration test do not include any of
the files with known
bugs. You may therefore copy them directly from the version 1.0
CD-ROMs.
cd cost250/refsys/$version
gunzip minipoly.tar.gz
tar xvf minipoly.tar
rm minipoly.tar ...be nice to your system administrator ;-)
The files will unfold in a directory data/polycost.
cd cost250/refsys/$version
mkdir data
ln -s /usr/data/orWhatEver data/polycost