This page describes how to compile and run the RCE teststand software at SLAC and CERN. Checking out the packages from SLAC CVS requires a SLAC Unix login account. Required steps are identical for the SLAC and CERN environment unless otherwiese mentioned.
Recommened hosts used in examples
|
SLAC |
CERN |
||
---|---|---|---|---|
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6c96f4b9-30af-43fa-af2f-d48538f9fa19"><ac:plain-text-body><![CDATA[ |
[BUILD_HOST] |
rddev101 |
pcphuat27 |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="79ad0397-81db-4ac8-8a40-c1d38bba08d0"><ac:plain-text-body><![CDATA[ |
[XMD_HOST] |
atca01 |
pcphuat27 |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="05148a02-01c6-4b0e-b3cb-707579194068"><ac:plain-text-body><![CDATA[ |
[IPC_HOST] |
atca01 |
lnxatd76 |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="dd2600be-5090-4829-9f07-d309eac67ec4"><ac:plain-text-body><![CDATA[ |
[RCE] |
rce37 |
rce35? |
]]></ac:plain-text-body></ac:structured-macro> |
Setting the RCE development environment (C-Shell)
source /reg/g/atlas/rcecalib/setup/setup_rce.csh
source /reg/g/atlas/rcecalib/setup/setup_rce.csh
To execute this setup at login the follwing lines should be assed to $HOME/.cshrc
if ( -r /reg/g/atlas/rcecalib/setup/setup_rce.csh ) then
source /reg/g/atlas/rcecalib/setup/setup_rce.csh >& /dev/null
endif
if ( -r /reg/g/atlas/rcecalib/setup/setup_rce.csh ) then source /reg/g/atlas/rcecalib/setup/setup_rce.csh >& /dev/null endif
Setup for Bourne-Shell
source /reg/g/atlas/rcecalib/setup/setup_rce.sh
source /reg/g/atlas/rcecalib/setup/setup_rce.sh
Or adding the follwing lines to $HOME/.bash_profile
if [ ! -r /reg/g/atlas/rcecalib/setup/setup_rce.sh ]; then
source /reg/g/atlas/rcecalib/setup/setup_rce.sh 2>&1 > /dev/null
fi
if [ ! -r /reg/g/atlas/rcecalib/setup/setup_rce.sh ]; then source /reg/g/atlas/rcecalib/setup/setup_rce.sh 2>&1 > /dev/null fi
Checking out and setting up the RCE and STControl/PixLib packages into a directory. The setup scripts assume that top RCE release directory is found in $HOME/rce. At CERN these scripts set a new HOME directory on local disk: /reg/lab1/home/$USER. Several release installations should be managed by symbolic links.
[BUILD_HOST] mkdir RCE [BUILD_HOST] cd RCE [BUILD_HOST] cvs co -d rcecalib-CVS-HEAD release [BUILD_HOST] cd [BUILD_HOST] ln -s RCE/rcecalib-CVS-HEAD rce [BUILD_HOST] cd rce [BUILD_HOST] cvs co pixlib rce rceapp rceers rceowl rcecalib rceipc rceusr [BUILD_HOST] cp rcecalib/projects.mk.template projects.mk [BUILD_HOST} patch -p0 < rcecalib/rce.patch
Building the RCE packages.
Note: the RCE needs to be compiled with the RCE_INTERFACE=1 optionat CERN and SLAC.
[BUILD_HOST] make i386-linux [BUILS_HOST} make ppc-rtems-rce405-opt RCE_INTERFACE=1
Edit setup_rce.csh and set the RCE release path
setenv RELEASE <home_directory>/rcerel
cd rcerel
make i386_linux
make ppc-rtems-rce405-opt
cd ..
cd pixlib
source setup_rce.csh
make