Before you install either software, invoke the following command to make sure that the QTDIR environment variable is set correctly:
$ echo $QTDIR
If you get a line containing a path (like /usr/lib/qt-3.3) you can proceed to the next step. Otherwise make sure that QT3 is installed on your system and set this variable to the location where QT3 library can be found. Here is an example (in bash, the default shell for RedHat Linux) for setting the variable QTDIR:
$ export QTDIR=/usr/lib/qt-3.3
In general, this ought to be set correctly every time before SNARK09DISPLAY is used (you may add this to the list of environmental variables in your .bashrc file).
Before you proceed, you should make sure that there is no old directories called snark09Display or snark09Input in the current working directory. If they exist you should either delete it or rename it to make sure that no data is lost and no conflicts are introduced by the next step of the installation process.
Untar and unzip the package by typing the following at the command prompt:
$ tar xvzf snark09ID.YY.MM.DD.tar.gz
where YY.MM.DD indicates the date of creation of the most recent version, for example snark09.09.06.01.tar.gz. You need to replace that date in the instructions below with the one that appears in your package.
Change into SNARK09DISPLAY directory
$ cd snark09Display
Before you run make for SNARK09DISPLAY make sure that the value of SNARK09ROOT environment variable is set correctly and is pointing to the SNARK09 installation directory. To check use the following command:
$ echo $SNARK09ROOT
It should print the directory where SNARK09 is installed. If it does not, and SNARK09 is installed, see Environmental Variables section for instructions on how to set it up.
Warning: When you reinstall or upgrade SNARK09 the two free utilities, SNARK09DISPLAY and SNARK09INPUT, should be reinstalled as well.
Compile and install SNARK09DISPLAY by typing the following at the command prompt:
$ make
$ su
$ make install
$ exit
After a successful compilation and installation, the SNARK09DISPLAY executable can be found in the $SNARK09ROOT/bin directory. If this directory is in the $PATH, SNARK09DISPLAY can be invoked by any user from within any directory by simply typing at the command prompt:
$ snark09Display
Change into SNARK09INPUT directory
$ cd ../snark09Input
Compile and install SNARK09INPUT by typing the following at the command prompt:
$ make
$ su
$ make install
$ exit
After a successful compilation and installation, the SNARK09INPUT executable can be found in the $SNARK09ROOT/bin directory. If this directory is in the $PATH, SNARK09INPUT can be invoked by any user from within any directory by simply typing at the command prompt:
$ snark09Input
If, when you run SNARK09DISPLAY or SNARK09INPUT the fonts appear too large, you can modify this by editing QT3 settings file ~/.qt/qtrc. The line similar to:
font=Sans,10,-1,5,50,0,0,0,0,0
controls the display of fonts in all QT3 based applications. In the above line Sans is the name of the font and 10 is its size.
If you do not have such file in your home directory, you can create one, or download a minimal one from here: qtrc and place it in ~/.qt/ directory.
All Content Copyright © 2009-2014
CISDD
Last revised: Aug 13, 2009, 15:12:22
Page designed by Joanna Klukowska
for Discrete Imaging and
Graphics Group (DIG)