Build Scripts and Makefiles

From GlueXWiki
Revision as of 11:33, 24 April 2008 by Marki (Talk | contribs)

Jump to: navigation, search

The following steps will build JANA and the Hall D software tree in the directores "jana" and "gluex" respectively, creating them in the current working directory. It is assumed that the support packages (xerces, cernlib, root, etc.) have all been installed previoiusly. All necessary environment variables are set explicitly here; they will likely not be appropriate for your machine and must be modified to fit your particular environment. This worked for me from a Fedora 7 box.

mkdir jana
cd jana
set jana_release=jana_0.2.0
wget http://www.jlab.org/JANA/releases/$jana_release.tgz
tar zxvf $jana_release.tgz
cd $jana_release
setenv JANA_HOME $cwd
rm -rf bin lib include
cd src/JANA
setenv OS `/bin/uname -s`
setenv ARCH `/bin/uname -p`
setenv OSNAME ${OS}-${ARCH}
make clean
make
make install
cd ../../../..
mkdir halld
cd halld
set release=release-2008-04-02
svn checkout https://halldsvn.jlab.org/repos/tags/release-2008-04-02
setenv HALLD_HOME $cwd
mv $release src
cd src
setenv ROOTSYS /usr/local/root/prod
setenv XERCESCROOT /usr/local/xerces-c/prod
setenv XERCES_INCLUDE $XERCESCROOT/include
setenv LD_LIBRARY_PATH  $ROOTSYS/lib:$XERCESCROOT/lib
setenv CERN /usr/local/cernlib
setenv CERN_LEVEL 2006
eval `addpath.pl $ROOTSYS/bin $CERN/$CERN_LEVEL/bin`
make FC=gfortran DFC=gfortran
cd ../..