STM4 – installation
The kit contains a precompiled STM4 version. If you need to recompile STM4 (eg. to add your modules)
follow the instructions at the end of this page.
Look at the download page for the kit location.
Linux installation
- Install AVS/Express V7.2.1 from your Linux distribution
- Make sure the following environment variables are defined:
| XP_ROOT | points to the AVS/Express installation directory (here called <xp_dir>) |
| MACHINE | defined as linux |
| LANG | en_US (define only if you have problems with the user interface labels) |
| LD_LIBRARY_PATH | must contains <xp_dir>/lib/linux |
| PATH | must contains <xp_dir>/bin/linux |
- Copy your license file license.dat to <xp_dir> or define XP_LICENSE_SERVER as <host>:<port> (see your system manager)
- Check the AVS/Express installation by executing
express from the command prompt
- cd somewhere, but not under <xp_dir>
- Get the STM4 kit called CSCSlib-bin.tar.gz
- Unpack the STM4 kit:
tar xvzf CSCSlib-bin.tar.gz
The resulting directory will be named CSCSlib
- Edit the CSCSlib/avsenv file changing the CSCSlib install location (/home/mvalle/CSCSlib) to yours. The affected lines starts with:
MSMSSERVER and XP_PATH
- Execute the customized AVS/Express running ./go If there are problems with your OpenGL support try: ./go -nohw
- The STM4 modules are under the STM4 library. Prepackaged applications are under "Full Apps" sublibrary.
Special note for Linux Red Hat EL3: you should install as written above, then define MACHINE as linux_el3 and rename the linux
directories under lib, bin and include from linux to linux_el3
Windows PC installation
- Install AVS/Express V8.0 from your Windows distribution. Be sure to install the version that supports VC++ 10
- Make sure the following environment variables are defined:
| XP_ROOT | points to the AVS/Express installation directory (here called <xp_dir>) |
| MACHINE | defined as pc10 |
| PATH | must contains <xp_dir>\bin\pc and <xp_dir>\runtime\bin\pc |
- Copy your license file license.dat to <xp_dir> or define XP_LICENSE_SERVER as <host>:<port> (see your system manager)
- Check the AVS/Express installation by executing
express from a command window
- Get the STM4 kit called CSCSlib.zip
- Unpack the STM4 kit using, for example, WinZip.
The resulting directory will be named CSCSlib. Don't unpack under <xp_dir>! If you unpack it under C:\ skip the following two steps.
- Edit the go.bat (or go-viz.bat if you have AVS/Express Visualization Edition) launcher file and edit the following line:
set XP_ROOT=C:\express
Changing C:\express to your AVS/Express installation directory (here called <xp_dir>)
- Edit the CSCSlib\avsenv file changing the CSCSlib install location (C:\CSCSlib) to yours. The affected lines starts with:
MSMSSERVER and XP_PATH
- Execute the customized AVS/Express running go.bat
If you have AVS/Express Visualization Edition run instead go-viz.bat
- The STM4 modules are under the STM4 library. Prepackaged applications are under "Full Apps" sublibrary.
Mac installation
- Install AVS/Express V7.1 from your Mac distribution and remember to install also OpenMotif 2.2
- Make sure the following environment variables are defined:
| XP_ROOT | points to the AVS/Express installation directory (here called <xp_dir>) |
| MACHINE | defined as darwin |
| DYLD_LIBRARY_PATH | must contains <xp_dir>/lib/darwin (and the path to your OpenMotif lib directory) |
| PATH | must contains <xp_dir>/bin/darwin |
- Copy your license file license.dat to <xp_dir> or define XP_LICENSE_SERVER as <host>:<port> (see your system manager)
- Start the X server (under Applications/Utilities). The server should be started every time you use AVS/Express or STM4.
- Check the AVS/Express installation by executing
express from the command prompt
- cd somewhere, but not under <xp_dir>
- Get the STM4 kit called CSCSlib-darwin.tar.gz
- Unpack the STM4 kit:
tar xvzf CSCSlib-darwin.tar.gz
The resulting directory will be named CSCSlib
- Edit the CSCSlib/avsenv file changing the CSCSlib install location (/Users/mvalle/CSCSlib) to yours. The affected lines starts with:
MSMSSERVER and XP_PATH
- Execute the customized AVS/Express running ./go If there are problems with your OpenGL support try: ./go -nohw
- The STM4 modules are under the STM4 library. Prepackaged applications are under "Full Apps" sublibrary.
SGI installation
- Install AVS/Express V7.1 64bits from your SGI distribution
- Make sure the following environment variables are defined:
| XP_ROOT | points to the AVS/Express installation directory (here called <xp_dir>) |
| MACHINE | defined as sg6 |
| LANG | en_US (if you have problems with the user interface labels) |
| LD_LIBRARY_PATH | must contains <xp_dir>/lib/sg6 |
| PATH | must contains <xp_dir>/bin/sg6 |
- Copy your license file license.dat to <xp_dir> or define XP_LICENSE_SERVER as <host>:<port> (see your system manager)
- Check the AVS/Express installation by executing
express from the command prompt
- cd somewhere, but not under <xp_dir>
- Get the STM4 kit called CSCSlib-src.tar.gz
- Unpack the STM4 kit:
tar xvzf CSCSlib-src.tar.gz
The resulting directory will be named CSCSlib
- Rename avsenv-sgi to avsenv
- Edit the CSCSlib/avsenv file changing the CSCSlib install location (/home/mvalle/CSCSlib) to yours. The affected lines starts with:
MSMSSERVER and XP_PATH
- Recompile the toolkit executing:
./regen-sgi
from inside the <xp_dir> directory.
- Execute the customized AVS/Express running ./go If there are problems with your OpenGL support try: ./go -nohw
- The STM4 modules are under the STM4 library. Prepackaged applications are under "Full Apps" sublibrary.
Rebuild STM4 on Linux
- If you have NVIDIA graphic card, and want to recompile STM4, install also the nvidia_patch.tar.gz patch from the AVS ftp site.
- Recompile the toolkit executing:
./regen or ./regen-debug
from inside the <xp_dir> directory.
- On Linux 64bits recompile the toolkit executing:
./regen-linux64 or ./regen-linux64d
from inside the <xp_dir> directory.
Rebuild STM4 on Windows
- If you need to recompile STM4 you need MS Visual C++ 2010 (VC++ 10) or the version you chose when you installed AVS/Express
- Reconfigure the toolkit executing:
regen.bat
from inside the <xp_dir> directory.
- Edit the generated file
express.vcxproj and in the <ItemGroup> section remove all duplicated references to files (there are for example plenty of references to MoleculeDataType.h
- To recompile double click on
stm4.sln then inside VC++ push 'Build solution'
- Then go to the subdirectory
cscs_proj/stm4/plugins and double click on plugins.sln then inside VC++ push 'Build solution'
Rebuild STM4 on Windows (Visual Studio 6, 8, 9 or 10)
- If you need to recompile STM4 with MS Visual C++ (VC++ 6), MS Visual C++ 2008 (VC++ 8) or MS Visual C++ 2009 (VC++ 9)
- Install the adequate build files:
- MS Visual C++ 6 (VC++ 6)
- Go to the directory
msvc6 and execute setup-v6.bat
- MS Visual C++ 2008 (VC++ 8)
- Go to the directory
msvc8 and execute setup-v8.bat
- MS Visual C++ 2009 (VC++ 9)
- Go to the directory
msvc9 and execute setup-v9.bat
- MS Visual C++ 2010 (VC++ 10)
- Nothing should be done
- Reconfigure the toolkit executing:
regen.bat
from inside the <xp_dir> directory.
- (VC++ 6) To recompile double click on
stm4.dsw then inside VC++ push 'Build workspace'
- (VC++ 8 and newer) To recompile double click on
stm4.sln then inside VC++ push 'Build solution'
Rebuild STM4 on Mac
- If you need to recompile STM4 be sure to have the libg2c.a library file. Put it under the AVS/Express installation in the directory <xp_dir>/lib/darwin
- Recompile the toolkit executing:
./regen-mac
from inside the <xp_dir> directory.