AtlasSTcontrol |
written by Jan <valenta@fzu.cz>; November 10th, 2005
(was: |
Prerequisites
Fetching & Compilation of the Needed SoftwareQtRecently, the recommended Qt version is 3.3, downloadable at www.trolltech.com. The compilation is very time-consuming, however straightforward, and usually without errors (see included INSTALL file for settings of necessary environment variables etc.):ftp://ftp.trolltech.com/qt/source/qt-x11-free-3.3.0.tar.bz2
USpinBoxCopy/afs/cern.ch/user/s/sctpixel/private/uspinbox.tgz,
unpack, set paths,
compile ('make' also the plugin directory).
If you have the Qt in some
non-standard location, copy these files:
cp libuspinbox.so.* $QTDIR/lib
cp uspinbox.h $QTDIR/include
for development using the designer IDE (not tested): cp uspinbox.h $QTDIR/plugins/designer # probably unnecessary
cp plugin/libuintspinbox.so $QTDIR/plugins/designer
cp plugin/uspinbox.xpm /usr/share/icons # I didn't do that
RootThe recommended version is 3.10. The compilation is not needed, binary package for gcc3.2 is provided. Again, set the environment variables correctly, according to README/README.ftp://root.cern.ch/root/root_v3.10.02.Linux.RH7.3.gcc32.tar.gz
Pixel softwarecvs checkout VmeInterface cvs checkout RodDaq/CommonForHosts cvs checkout RodDaq/RodCrate cvs checkout -r Rod-Pixel-1-48 RodDaq/Dsp/Pixel cvs checkout -r Rod-Pixel-1-48 RodDaq/CommonWithDsp(Check for newer revisions in the CVS. DSP code and CommonWithDsp revisions have to match!) cvs checkout Applications/Pixel/PixLib cvs checkout Applications/Pixel/ModuleAnalysis cvs checkout Applications/Pixel/STcontrolCompilation should go fine in this order: VmeInterface, RodCrate, PixLib, ModuleAnalysis, STcontrol. Always proceed according to the appropriate README. Note 1: I had to define DF_INCL_DIR (/atlas/DataFlowSW/DF-00-09-00/installed/include) variable and add it to "include" lines in Makefiles of:
VmeInterface
Applications/Pixel/PixLib/PixTrigController
Applications/Pixel/PixLib/PixController
Applications/Pixel/PixLib/PixBoc
Applications/Pixel/STcontrol (Makefile is generated by qmake)
Example:
CFLAGS = -DTSTAMP -funsigned-char -Wall \
-I. -I$(DAQ_INCL_DIR) -I$(DF_INCL_DIR) -I$(ROD_DAQ)/CommonWithDsp
Note 2: Creation of libModuleAnalysis.so needed for STcontrol: In the
linking (the last one, very long) command of compilation of ModuleAnalysis
executable change the name of the output file to libModuleAnalysis.so and
add "-shared" option.
Note 3: In STcontrol, I had to add #include "uspinbox.h" to ConfigWizardBase.cpp, BocEditor.cpp and RodEditorBase.cpp. These file are generated automatically during the compilation from the respective .ui files (using uic) so you have to alter them after one round of compilation. If you didn't #include the "uspinbox.h", the compilation outputs the following non-stopping warnings: BocEditor.h:27: forward declaration of `struct USpinBox' BocEditor.cpp:969: invalid use of undefined type `struct USpinBox' and the compiled STcontrol crashes at the moment of opening of the configuration wizard. Generating Config File
Configuring the Modules
Scanning the Modules
| |
Remarks, Commentsvoid |
|
|
Let us know, if these recipes works or you want to suggest improvements.
(Valenta |