I get an error when running the library libDelphes.so
The error is :
cling::DynamicLibraryManager::loadLibrary(): libCore.so.6.26: cannot open shared object file: No such file or directory
ROOT_prompt_1:1:1: fatal error: 'libDelphes' file not found
R__LOAD_LIBRARY(libDelphes)
^
/builddir/build/BUILD/root-6.24.08/x86_64-redhat-linux-gnu/include/Rtypes.h:456:35: note: expanded from macro 'R__LOAD_LIBRARY'
#define R__LOAD_LIBRARY(LIBRARY) _R_PragmaStr(cling load ( #LIBRARY ))
^
/builddir/build/BUILD/root-6.24.08/x86_64-redhat-linux-gnu/include/Rtypes.h:455:26: note: expanded from macro '_R_PragmaStr'
#define _R_PragmaStr(x) _Pragma(#x)
^
<scratch space>:8:28: note: expanded from here
cling load ( "libDelphes" )
when I use R__Load_Library and when I use gysystem_Load I get the same:
cling::DynamicLibraryManager::loadLibrary(): libCore.so.6.26: cannot open shared object file: No such file or directory
I added the path of the file libDelphes.so to LD_Library_Path but this still happens
pcanal
2
Did you trying set LD_LIBRARY_PATH
(all caps)?
Yes I did. Now it works but I get a different error. It seems that root can’t read the header files for:
I get a very long error with
fatal error: 'classes/DelphesClasses.h' file not found
and also it can’t read any of the branches, Muon, electron … etc.
error: member access into incomplete type 'Muon'
The error message is too long to put here
pcanal
4
You need to set the OS environment variable ROOT_INCLUDE_PATH
to point to the directory containing the directory classes
.
I did that but the problem still persists.
If I open a root shell and type (#include “classes/DelphesClasses.h”) it works fine.
But when I run my code it gives this error. Here is the a snippet from my code:
#include <time.h>
#include
#include “TH1.h”
#include “TSystem.h”
#ifdef CLING
R__LOAD_LIBRARY(libDelphes)
#include “classes/DelphesClasses.h”
#include “external/ExRootAnalysis/ExRootTreeReader.h”
#include “external/ExRootAnalysis/ExRootResult.h”
And I run the code through:
root -l examples/Zprime_MuMu_at_ILC.C’(“tag_1_delphes_events.root”)’
And I exported the “classes” path to the ROOT_INCLUDE_PATH environment variable.
Axel
7
Can you run, in your shell where you’d start ROOT:
echo $ROOT_INCLUDE_PATH
ls $ROOT_INCLUDE_PATH
and send the output?
system
Closed
8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.