2 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 # + This file is part of enGrid. +
6 # + Copyright 2008-2014 enGits GmbH +
8 # + enGrid is free software: you can redistribute it and/or modify +
9 # + it under the terms of the GNU General Public License as published by +
10 # + the Free Software Foundation, either version 3 of the License, or +
11 # + (at your option) any later version. +
13 # + enGrid is distributed in the hope that it will be useful, +
14 # + but WITHOUT ANY WARRANTY; without even the implied warranty of +
15 # + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
16 # + GNU General Public License for more details. +
18 # + You should have received a copy of the GNU General Public License +
19 # + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
21 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25 echo "The script is unable to detect the location of your VTK installation."
26 echo "Please set the following variables manually"
31 if [ -d /usr
/include
/vtk-5.10
]
33 export VTKINCDIR
=/usr
/include
/vtk-5.10
34 elif [ -d /usr
/include
/vtk-5.8
]
36 export VTKINCDIR
=/usr
/include
/vtk-5.8
37 elif [ -d /usr
/include
/vtk-5.6
]
39 export VTKINCDIR
=/usr
/include
/vtk-5.6
40 elif [ -d /usr
/include
/vtk-5.4
]
42 export VTKINCDIR
=/usr
/include
/vtk-5.4
43 elif [ -d /usr
/include
/vtk
]
45 export VTKINCDIR
=/usr
/include
/vtk
50 if [ -f /usr
/lib
/libvtkCommon.so
]
52 export VTKLIBDIR
=/usr
/lib
53 elif [ -f /usr
/lib64
/libvtkCommon.so
]
55 export VTKLIBDIR
=/usr
/lib64
56 elif [ -f /usr
/lib
/vtk
/libvtkCommon.so
]
58 export VTKLIBDIR
=/usr
/lib
/vtk
59 elif [ -f /usr
/lib64
/vtk
/libvtkCommon.so
]
61 export VTKLIBDIR
=/usr
/lib64
/vtk
66 if [ -n "$(which qmake-qt4)" ]; then
67 [ ! -x "scripts/qmake" ] && chmod +x
scripts
/qmake
68 export PATH
=$PATH:`pwd`/scripts
71 export LD_LIBRARY_PATH
=$VTKLIBDIR:$LD_LIBRARY_PATH