bomben
July 13, 2007, 8:54am
1
Hi all,
I’m using root 5.04/00 under Linux (SL4).
Trying to build an application that includes some root libraries, I discovered a cuople of problems:
[bomben@g5-lab-10 Bailey]$ ldd bailey
libCore.so => not found
libCint.so => not found
libRIO.so => not found
libNet.so => not found
libHist.so => not found
libGraf.so => not found
libGraf3d.so => not found
libGpad.so => not found
libTree.so => not found
libRint.so => not found
but I’m pretty sure that the Makefile is ok:
INCPATH = -I$(ROOTSYS)/include
LIBS = root-config --cflags --libs
trying to understand what’s wrong, I discovered this:
[bomben@g5-lab-10 Bailey]$ ldd $ROOTSYS/bin/rootcint
libCint.so => not found
but:
[bomben@g5-lab-10 Bailey]$ lt $ROOTSYS/lib/
total 86628
-rwxr-xr-x 1 bomben bomben 2087049 May 30 15:01 libCint.so
-rwxr-xr-x 1 bomben bomben 7324813 May 30 15:04 libCore.so
-rwxr-xr-x 1 bomben bomben 1347316 May 30 15:05 libRIO.so
-rwxr-xr-x 1 bomben bomben 1167641 May 30 15:06 libNet.so
-rwxr-xr-x 1 bomben bomben 2544638 May 30 15:07 libMatrix.so
[…]
What’s wrong? Any idea is really welcome… thanks in advance!
Regards,
Marco
Hi Marco,
Please make sure $ROOTSYS/lib is in your LD_LIBRARY_PATH
Cheers,
Bertrand.
bomben
July 13, 2007, 9:13am
3
… you were right, LD_LIBRARY_PATH was not properly set… thanks!
Marco
Hi
contrarely to the case before, in our installation libCint.so is really missing in lhe root lib directory ( contrarly to libRint.so)
Why is it the case?
in this installation optionnal?
has a flag has to be activated in the config file?
Thank in advance for help
Thibaut
CINT is provided/used by/in ROOT 5.
ROOT 6 provides/uses CLING (you do NOT need CINT with ROOT 6).
Thanks for your help
replacing -lCint by -lCling in the makefile and compiling seems to solve the problem
I get a normal user message concerning the number of arguments for call
I have to proceed further in my test with the good input file
Can you explain me:
the role of Cint and Cling?
can there be potential numerical impact on my computation?
Regards
Thibaut
I don’t know why you manually list ROOT libraries.
In your makefile, you should define and use something like this:
ROOTCFLAGS := $(shell root-config --cflags)
# use "--libs" or "--glibs" or "--evelibs"
ROOTLIBS := $(shell root-config --ldflags --libs)