1 #------ Setting products installation directory ------
3 if [ "${PDIR}" = "" ] ; then
4 export PDIR=/dn48/newgeom/common/products
7 # Find absolute path to ROOT_DIR
8 export ROOT_DIR=$(pwd)/..
9 export ROOT_DIR=`cd "${ROOT_DIR}";pwd`
12 export PYTHON_ROOT_DIR=${PDIR}/Python-2.7.3
13 export PYTHONHOME=${PYTHON_ROOT_DIR}
14 export PYTHON_INCLUDE=${PYTHON_ROOT_DIR}/include/python2.7
15 export PYTHON_VERSION=2.7
16 export PATH=${PYTHON_ROOT_DIR}/bin:${PATH}
17 export LD_LIBRARY_PATH=${PYTHON_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
18 export PYTHONPATH=${PYTHON_ROOT_DIR}/lib/python2.7
20 export PYTHON_LIB_DIR=${PYTHON_ROOT_DIR}/lib
21 export PYTHON_INC_DIR=${PYTHON_INCLUDE}
24 export QT4_ROOT_DIR=${PDIR}/qt-4.8.4
25 export QT_PLUGIN_PATH=${QT4_ROOT_DIR}/plugins
26 export PATH=${QT4_ROOT_DIR}/bin:${PATH}
27 export LD_LIBRARY_PATH=${QT4_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
30 export BOOST_ROOT_DIR=${PDIR}/boost-1.52.0
31 export LD_LIBRARY_PATH=${BOOST_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
34 export SWIG_ROOT_DIR=${PDIR}/swig-2.0.8
35 export SWIG_LIB=${SWIG_ROOT_DIR}/share/swig/2.0.8
36 export PATH=${SWIG_ROOT_DIR}/bin:${PATH}
39 export CMAKE_ROOT_DIR=${PDIR}/cmake-2.8.10.2
40 export PATH=${CMAKE_ROOT_DIR}/bin:${PATH}
42 #------ freetype ------
43 export FREETYPE_ROOT_DIR=${PDIR}/freetype-2.4.11
44 export LD_LIBRARY_PATH=${FREETYPE_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
46 #------ freeimage ------
47 export FREEIMAGE_ROOT_DIR=${PDIR}/freeimage-3.15.4
48 export PATH=${FREEIMAGE_ROOT_DIR}/bin:${PATH}
49 export LD_LIBRARY_PATH=${FREEIMAGE_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
52 export GL2PS_ROOT_DIR=${PDIR}/gl2ps-1.3.8
53 export PATH=${GL2PS_ROOT_DIR}/bin:${PATH}
54 export LD_LIBRARY_PATH=${GL2PS_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
57 export TBB_ROOT_DIR=${PDIR}/tbb-30_018oss
58 export PATH=${TBB_ROOT_DIR}/bin/intel64/cc4.1.0_libc2.4_kernel2.6.16.21:${PATH}
59 export LD_LIBRARY_PATH=${TBB_ROOT_DIR}/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21:${LD_LIBRARY_PATH}
61 #------ libxml2 ------
62 export LIBXML2_ROOT_DIR=${PDIR}/libxml2-2.9.0
63 export PATH=${LIBXML2_ROOT_DIR}/bin:${PATH}
64 export LD_LIBRARY_PATH=${LIBXML2_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
65 # DO NOT rename following 3 variables,
66 # they are required by CMake "find(Libxml2)" procedure
67 export LIBXML2_INCLUDE_DIR=${LIBXML2_ROOT_DIR}/include/libxml2
68 export LIBXML2_LIB_DIR=${LIBXML2_ROOT_DIR}/lib
69 export LIBXML2_BIN_DIR=${LIBXML2_ROOT_DIR}/bin
71 #------ SolveSpace ------
72 export SOLVESPACE_ROOT_DIR=${PDIR}/solvespace-2.0
73 export LD_LIBRARY_PATH=${SOLVESPACE_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
76 export CAS_ROOT_DIR=${PDIR}/OCCT-6.7.0
78 export PATH=${CAS_ROOT_DIR}:${CAS_ROOT_DIR}/bin:${PATH}
79 export LD_LIBRARY_PATH=${CAS_ROOT_DIR}:${CAS_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
80 export CSF_GraphicShr=${CAS_ROOT_DIR}/lib/libTKOpenGl.so
81 # Variable for Foundation Classes :
82 export CSF_UnitsLexicon=${CAS_ROOT_DIR}/src/UnitsAPI/Lexi_Expr.dat
83 export CSF_UnitsDefinition=${CAS_ROOT_DIR}/src/UnitsAPI/Units.dat
84 # Variable for DataExchange :
85 export CSF_SHMessage=${CAS_ROOT_DIR}/src/SHMessage
86 export CSF_XSMessage=${CAS_ROOT_DIR}/src/XSMessage
88 export CSF_MDTVFontDirectory=${CAS_ROOT_DIR}/src/FontMFT
89 export CSF_MDTVTexturesDirectory=${CAS_ROOT_DIR}/src/Textures
91 export CSF_PluginDefaults=${CAS_ROOT_DIR}/src/StdResource
92 export CSF_StandardDefaults=${CAS_ROOT_DIR}/src/StdResource
93 # Activation of OCCT Kernel multithreading :
94 export MMGT_REENTRANT=1
95 # this variable only needed for DRAWEXE
96 export CASROOT=${CAS_ROOT_DIR}
98 export LIB=${LD_LIBRARY_PATH}
101 export LCOV_ROOT_DIR=${PDIR}/lcov-1.11
102 export PATH=${LCOV_ROOT_DIR}/bin:${PATH}
104 #------ NewGEOM ------
105 export INST_DIR=${ROOT_DIR}/install
106 export PATH=${INST_DIR}/bin:${INST_DIR}/plugins:${PATH}
107 export PYTHONPATH=${INST_DIR}/swig:${PYTHONPATH}
108 export LD_LIBRARY_PATH=${INST_DIR}/bin:${INST_DIR}/swig:${INST_DIR}/plugins:${LD_LIBRARY_PATH}
109 export NEW_GEOM_CONFIG_FILE=${INST_DIR}/plugins