Hi all,
I am also in the field of HEP. I am also trying to use ROOT in CONDOR Batch System. I’ve found the same problem with Igor? link:
root.cern.ch/phpBB2/viewtopic.ph … ght=condor
I don’t understand the “dictionary” thing. I am really new to these (Linux and ROOT), so can I ask step-by-step procedure on how to have a ROOT executable which has static linking?
I tried the link below:
root.cern.ch/root/roottalk/roottalk01/4649.html
…but I found that there is no roota.lib in my ROOTSYS. I really don’t know where to go
Or does anyone out there succesfully incorporate ROOT (even if you use dynamic linking) to CONDOR? Can you help me?
P.S. Can you cc this e-mail ad in your reply: leo@physics.msuiit.edu.ph
This is not my account, my account have not been activated yet.
Thanks.
Leo Cristobal C. Ambolode II
pcanal
October 9, 2006, 3:02pm
2
[quote]…but I found that there is no roota.lib in my ROOTSYS. I really don’t know where to go [/quote]Well those steps would (explicitly) lead to a file name libRoot.a in your currently directly.
Nonethless did you try simply running:
gmake static
?
Cheers,
Philippe.
Hi philippe,
I tried it: gmake static, but I got the following:
gmake: *** No rule to make target `static’. Stop.
Sincerely.
Leo[/code]
Hi philippe,
An update:
I issued "gmake static on my ROOTSYS directory and it all went well. After that, I followed this link:
root.cern.ch/root/roottalk/roottalk01/4649.html
install_roota file:
/bin/rm roota
/bin/rm libRoot.a
ar rv libRoot.a
base/src/.o
cint/src/ .o
clib/src/.o
cont/src/ .o
eg/src/.o
g3d/src/ .o
gl/src/.o
gpad/src/ .o
graf/src/.o
gui/src/ .o
hist/src/.o
histpainter/src/ .o
html/src/.o
matrix/src/ .o
meta/src/.o
minuit/src/ .o
net/src/.o
new/src/ .o
physics/src/.o
postscript/src/ .o
proof/src/.o
pythia/src/ .o
pythia6/src/.o
rfio/src/ .o
rint/src/.o
star/src/ .o
thread/src/.o
tree/src/ .o
treeplayer/src/.o
treeviewer/src/ .o
tree/src/.o
tree/src/ .o
unix/src/.o
x11/src/ .o
x11ttf/src/.o
x3d/src/ .o
zip/src/.o
#g++ -o roota -Wl,-Map roota.map
echo ‘void G__globalsetup() {}’ >globalsetup.c
gcc -c globalsetup.c
g++ -o roota
$ROOTSYS/main/src/rmain.o
globalsetup.o
$ROOTSYS/base/src/TROOT.o
$ROOTSYS/base/src/G__ .o
$ROOTSYS/cont/src/G__.o
$ROOTSYS/eg/src/G__ .o
$ROOTSYS/g3d/src/G__.o
$ROOTSYS/gpad/src/G__ .o
$ROOTSYS/graf/src/G__.o
$ROOTSYS/gui/src/G__ .o
$ROOTSYS/hist/src/G__.o
$ROOTSYS/histpainter/src/G__ .o
$ROOTSYS/html/src/G__.o
$ROOTSYS/matrix/src/G__ .o
$ROOTSYS/meta/src/G__.o
$ROOTSYS/minuit/src/G__ .o
$ROOTSYS/net/src/G__.o
$ROOTSYS/physics/src/G__ .o
$ROOTSYS/postscript/src/G__.o
$ROOTSYS/rint/src/G__ .o
$ROOTSYS/tree/src/G__.o
$ROOTSYS/treeplayer/src/G__ .o
$ROOTSYS/unix/src/G__.o
$ROOTSYS/x11/src/G__ .o
$ROOTSYS/x3d/src/G__*.o
$ROOTSYS/libRoot.a
/usr/X11R6/lib/libXpm.a /usr/X11R6/lib/libX11.a -lm -ldl -static
…I eliminate several G__*.o files because I wanted my jobs to run in batch.
…then, I do
"chmod 755 install_roota"
…and issued
"./install_root"
BUT, “roota”, “libRoot.a” and “ar: new/src/*.o” are not in the directory. What might be wrong? I am on the right track?
I’m using Root version 5.12/00
Thanks.
Sincerely,
Leo
rdm
October 12, 2006, 8:55am
5
Hi Leo,
after doing “make static” in the ROOT source directory you should have $ROOTSYS/bin/roota $ROOTSYS/lib/libRoot.a.
If you don’t have the need for some libraries, take the $ROOTSYS/build/unix/makestatic.sh script and the (graphics) libs you don’t need to the excl list.
Alternatively you can just run “roota -b” in batch mode without X11.
Cheers, Fons.
I’ve just figured it out already.
Thanks for the reply anyways.
Leo