forked from caqtdm/caqtdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcaQtDM_Env
executable file
·86 lines (76 loc) · 3.69 KB
/
caQtDM_Env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
if [ -z "$QTHOME" ]; then export QTHOME=/usr;
fi
if [ -z "$QWTHOME" ]; then export QWTHOME=/usr;
fi
if [ -z "$QWTINCLUDE" ]; then export QWTINCLUDE=/usr/include/qwt;
fi
if [ -z "$QWTLIB" ]; then export QWTLIB=${QWTHOME}/lib;
fi
if [ -z "$EPICS_BASE" ]; then export EPICS_BASE=/usr/local/epics/base;
fi
if [ -z "$EPICSINCLUDE" ]; then export EPICSINCLUDE=${EPICS_BASE}/include;
fi
if [ -z "$EPICSLIB" ]; then export EPICSLIB=${EPICS_BASE}/lib/$EPICS_HOST_ARCH;
fi
if [ -z "$EPICSEXTENSIONS" ]; then export EPICSEXTENSIONS=/usr/local/epics/extensions;
fi
if [ -z "$QTCONTROLS_LIBS" ]; then export QTCONTROLS_LIBS=`pwd`/caQtDM_Binaries;
fi
if [ -z "$CAQTDM_COLLECT" ]; then export CAQTDM_COLLECT=`pwd`/caQtDM_Binaries;
fi
export QTBASE=${QTCONTROLS_LIBS};
if [ -z "$QTDM_LIBINSTALL" ]; then export QTDM_LIBINSTALL=$EPICSEXTENSIONS/lib/$EPICS_HOST_ARCH;
fi
if [ -z "$QTDM_BININSTALL" ]; then export QTDM_BININSTALL=$EPICSEXTENSIONS/bin/$EPICS_HOST_ARCH;
fi
if [ -z "$PYTHONVERSION" ]; then export PYTHONVERSION=2.6;
fi
if [ -z "$PYTHONINCLUDE" ]; then export PYTHONINCLUDE=/usr/include/python$PYTHONVERSION;
fi
if [ -z "$PYTHONLIB" ]; then export PYTHONLIB=/usr/lib/;
fi
if [ -z "$TROLLTECH" ]; then
echo
echo ====== do not use psi trolltech directories
echo
if [ -z "$QTDM_RPATH" ]; then export QTDM_RPATH=${QTDM_LIBINSTALL}:$TROLLTECH/binQt:${QTBASE};
fi
else
echo
echo ====== use psi trolltech directories
echo
if [ -z "$QTDM_RPATH" ]; then export QTDM_RPATH=${QTDM_LIBINSTALL}:$TROLLTECH/binQt;
fi
fi
if [ -z "$QTDM_RPATH" ]; then export QTDM_RPATH=${QTDM_LIBINSTALL}:$TROLLTECH/binQt:${QTBASE};
fi
echo =============================================================================================
echo in order to build this package you will eventually have to redefine following variables in
echo this file, they are taken from your environment if they exist, otherwise define them yourself:
echo
echo for building:
echo
echo QTHOME now defined as ${QTHOME} for locating Qt
echo QWTHOME now defined as ${QWTHOME} for locating qwt
echo QWTINCLUDE now defined as ${QWTINCLUDE} for locating the include files of qwt
echo QWTLIB now defined as ${QWTLIB} for locating the libraries of qwt
echo EPICS_BASE now defined as ${EPICS_BASE} for locating epics
echo EPICSINCLUDE now defined as ${EPICSINCLUDE} for locating epics include files
echo EPICSLIB now defined as ${EPICSLIB} for locating epics libraries
echo QTBASE now defined as ${QTBASE} for building the package locally, pointing to caQtDM_Binaries
echo QTDM_RPATH now defined as ${QTDM_RPATH} for runtime search path
echo
echo for python:
echo
echo PYTHONVERSION now defined as ${PYTHONVERSION} for locating python
echo PYTHONINCLUDE now defined as ${PYTHONINCLUDE} for locating python include files
echo PYTHONLIB now defined as ${PYTHONLIB} for locating python libraries
echo
echo for install:
echo
echo EPICSEXTENSIONS now defined as ${EPICSEXTENSIONS} for locating epics extensions
echo QTDM_LIBINSTALL now defined as ${QTDM_LIBINSTALL} for libraries install
echo QTDM_BININSTALL now defined as ${QTDM_BININSTALL} for binaries install
echo ============================================================================================
echo