# Welcome to the STM
Download and Install Page

## Install Procedure:

1. Download the appropriate file from the table below. The software is available as a Unix tar file or a Windows ZIP file.
   The Tar files and the Zip files do contain the documentation so also download the STM documentation.

   AVS/Express STM Project
   UNIX | STM Application Tar File | Documentation Tar File
   Windows | STM Application ZIP File | Documentation Zip File

2. Start AVS/Express.
3. Create a new project called XPstm as follows:

   Under the Project menu, choose the Save As ... option. | Enter the full path name of where you want the XPstm directory to be, in the field as requested.

4. Exit AVS/Express.
5. Go to XPstm directory.
6. Move the STM application tar or zip file to the newly created XPstm directory.
7. Untar or Unzip the file in the newly created XPstm directory.
   Select Yes To All to overwrite existing files.

## Build the Application

After expanding the file (unzip or untar the application) you must build the STM application. There are differences between Windows and UNIX and between different shell environments under UNIX. The process is as follows:

UNIX | Windows
Edit the Env file and check the following variables, modify for your environment:
    MACHINE=sg6
    XP_FEATURE=VIZ_EXPRESS
    LM_LICENSE_FILE=/usr/local/flexlm/licenses/license.dat
    STMdir=/XPstm
    XPdir=/usr/local/Express
For UNIX there are different shell environments select the file appropriate for you:
Shell: sh ksh bash | Shell: csh tcsh
use the Env.sh script file To execute: Note the dot `. Env.sh` | use the Env.csh script file To execute: `source Env.csh`
| For windows, a single batch file has been tested under Windows 95, Windows 98, and Windows NT. Edit the Env.bat file and check the following variables, modify for your environment: To execute, type in the command prompt window: `Env.bat`
    set MACHINE=pc
    set XP_FEATURE=VIZ_EXPRESS
    set LM_LICENSE_FILE=C:\flexlm\license.dat
    set STMdir=D:\XPstm
    set XPdir=C:\Express
Run the Build script. This will compile (Need a C Compiler) the STM modules. This will take some time to compile and build the STM application. Be patient! This has been tested under SGI IRIX 6.5. | Run the Build.bat batch file. This will compile (Need a C Compiler) the STM modules. This will take some time to compile and build the STM application. Be patient! This has been tested under Microsoft Visual C++ 6.0.

If errors appear with the STM code, please contact the author. kenf@osc.edu