]> SALOME platform Git repositories - modules/shaper.git/blob - env_linux.sh
Salome HOME
Sketch Point, Line, Circl & Arc have a base class SketchEntity
[modules/shaper.git] / env_linux.sh
1 #!/bin/bash
2
3 # This script uses:
4 #
5 # INST_ROOT - path of SALOME (env_products.sh)
6 # SHAPER_PDIR - path of PRODUCTS for SHAPER (SolveSpace, lcov)
7 # SHAPER_ROOT_DIR - path of SHAPER installation
8
9 for path in INST_ROOT SHAPER_PDIR SHAPER_ROOT_DIR; do
10   if [[ -z ${!path+x} ]]; then
11     echo "${path} not found."; exit 1
12   else
13     echo "Found ${path}: ${!path}"
14   fi
15 done
16
17 set +u
18 echo "Source ${INST_ROOT}/$(cd ${INST_ROOT} && ls *env_products.sh)"
19 source ${INST_ROOT}/$(cd ${INST_ROOT} && ls *env_products.sh)
20 set -u
21
22 #------ SolveSpace ------
23 export SOLVESPACE_ROOT_DIR=${SHAPER_PDIR}/solvespace-2.1
24 export LD_LIBRARY_PATH=${SOLVESPACE_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
25 ##
26
27 #------ PlaneGCS ------
28 export PLANEGCS_ROOT_DIR=${SHAPER_PDIR}/planegcs-0.16
29 export LD_LIBRARY_PATH=${PLANEGCS_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
30 ##
31
32 #------ Eigen ------
33 export EIGEN_ROOT_DIR=${SHAPER_PDIR}/eigen-3.2.7
34 ##
35
36 #------ Boost ------
37 export BOOST_ROOT_DIR=${SHAPER_PDIR}/boost-1.52.0
38 ##
39
40 #------ lcov ------
41 export LCOV_ROOT_DIR=${SHAPER_PDIR}/lcov-1.11
42 export PATH=${LCOV_ROOT_DIR}/bin:${PATH}
43 ##
44
45 #------ OCCT ------
46 # Defaults
47 export CSF_PluginDefaults=${CAS_ROOT_DIR}/src/StdResource
48 export CSF_StandardDefaults=${CAS_ROOT_DIR}/src/StdResource
49 # For CMake
50 export LIB=${LD_LIBRARY_PATH}
51 export PATH=${CASROOT}:${PATH}
52 ##
53
54 #------ SHAPER ------
55 export PATH=${SHAPER_ROOT_DIR}/bin/salome:${PATH}
56 export PYTHONPATH=${SHAPER_ROOT_DIR}/bin/salome:${PYTHONPATH}
57 export LD_LIBRARY_PATH=${SHAPER_ROOT_DIR}/lib/salome:${LD_LIBRARY_PATH}