Slicer4:Example Wrapper Script
- !/bin/bash
BASE_DIR=/cmn/git/Slicer4-sb/ APPLAUNCHER_DIR=$BASE_DIR/Slicer-build
LD_PATHS=" /cmn/git/Slicer4-sb/VTK-build/bin/. /cmn/git/Slicer4-sb/CTK-build/CTK-build/bin/. /usr/lib /cmn/git/Slicer4-sb/ITKv3-build/bin/. /cmn/git/Slicer4-sb/SlicerExecutionModel-build/ModuleDescriptionParser/bin/. /cmn/git/Slicer4-sb/teem-build/bin/. /cmn/git/Slicer4-sb/LibArchive-install/lib $APPLAUNCHER_DIR/bin/. ../lib/Slicer-4.0/qt-loadable-modules $APPLAUNCHER_DIR/lib/Slicer-4.0/cli-modules/. $APPLAUNCHER_DIR/lib/Slicer-4.0/qt-loadable-modules/. /cmn/git/Slicer4-sb/tcl-build/lib /cmn/git/Slicer4-sb/OpenIGTLink-build /cmn/git/Slicer4-sb/OpenIGTLink-build/bin/. /cmn/git/Slicer4-sb/CTK-build/PythonQt-build/. /cmn/git/Slicer4-sb/python-build/lib /cmn/git/Slicer4-sb/python-build/lib/python2.6/site-packages/numpy/core /cmn/git/Slicer4-sb/python-build/lib/python2.6/site-packages/numpy/lib " for STR in $LD_PATHS; do LD_LIBRARY_PATH="${STR}:${LD_LIBRARY_PATH}"; done
QT_PLUGIN_PATH=$APPLAUNCHER_DIR/bin:/cmn/git/Slicer4-sb/CTK-build/CTK-build/bin:/usr/lib/qt4/plugins SLICER_HOME=/cmn/git/Slicer4-sb/Slicer-build PYTHONHOME=/cmn/git/Slicer4-sb/python-build PYTHONPATH=$APPLAUNCHER_DIR:/bin:$APPLAUNCHER_DIR:/bin/Python:/cmn/git/Slicer4-sb/python-build/lib/python2.6/site-packages:$APPLAUNCHER_DIR/lib/Slicer-4.0/qt-loadable-modules/.:$APPLAUNCHER_DIR/lib/Slicer-4.0/qt-loadable-modules/Python TCL_LIBRARY=/cmn/git/Slicer4-sb/tcl-build/lib/tcl8.4 TK_LIBRARY=/cmn/git/Slicer4-sb/tcl-build/lib/tk8.4 TCLLIBPATH=/cmn/git/Slicer4-sb/tcl-build/lib/itcl3.2:/cmn/git/Slicer4-sb/tcl-build/lib/itk3.2
export QTPLUGIN_PATH=$QT_PLUGIN_PATH export SLICER_HOME=$SLICER_HOME export PYTHONHOME=$PYTHONHOME export PYTHONPATH=$PYTHONPATH export TCL_LIBRARY=$TCL_LIBRARY export TK_LIBRARY=$TK_LIBRARY export TCLLIBPATH=$TCLLIBPATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
exec "$@"