Howto build a Hadaq test system

More or less, enter the following commands. Adjust the path names to your needs. At the top of semaphore.c is a union inside #ifdef. Dependent on your Linux and compiler version, you may need to remove the #ifdef.

mkdir work
cd work
cvs -d hadaq@lxg0413.gsi.de:/misc/hadaq/cvsroot checkout compat
cd compat/
vi semaphore.c 
unset CONFIG_SITE
CPPFLAGS="-I/usr/include/tcl8.4 -I$HOME/work/include" LDFLAGS="-L/usr/include/tcl8.4 -L$HOME/work/lib" ./configure --prefix=$HOME/work --disable-color
make
make install
cd ..
cvs -d hadaq@lxg0413.gsi.de:/misc/hadaq/cvsroot checkout allParam
cd allParam/
CPPFLAGS="-I/usr/include/tcl8.4 -I$HOME/work/include" LDFLAGS="-L/usr/include/tcl8.4 -L$HOME/work/lib" ./configure --prefix=$HOME/work
make
make install
cd ..
cvs -d hadaq@lxg0413.gsi.de:/misc/hadaq/cvsroot checkout hadaq
cd hadaq/
CPPFLAGS="-I/usr/include/tcl8.4 -I$HOME/work/include" LDFLAGS="-L/usr/include/tcl8.4 -L$HOME/work/lib" ./configure --prefix=$HOME/work
make
make install
cd ..
cvs -d hadaq@lxg0413.gsi.de:/misc/hadaq/cvsroot checkout hwreadout
cd hwreadout/
CPPFLAGS="-I/usr/include/tcl8.4 -I$HOME/work/include" LDFLAGS="-L/usr/include/tcl8.4 -L$HOME/work/lib" ./configure --prefix=$HOME/work --disable-vme
cd hwsoft/
make
cd ../..

Now open four windows, change to the same directory on all four shells and enter one command in each window.

bin/daq_evtbuild -m 1

bin/daq_netmem -m 1 -i UDP:0.0.0.0:3000

bin/daq_memnet -o UDP:127.0.0.1:3000

hwreadout/hwsoft/daq_rdosoft

-- MathiasMuench - 02 May 2005
Topic revision: r2 - 2010-01-01, JanMichel
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki Send feedback | Imprint | Privacy Policy (in German)