Opened 4 years ago
Closed 4 years ago
#1487 closed Bug (fixed)
problem with include files
Reported by: | Toshiro Shisude | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Delphes code | Version: | Delphes 3 |
Keywords: | include path | Cc: |
Description
I have just installed Delphes 3.4.2, but ROOT complains
it cannot find the include files in external/ExRootAnalysis.
This may seem like a simple include-path problem, yet I do
not seem to be able to fix it.
The errors I get are
$ root
... rootlogon.C ... loading libraries ...
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Missing FileEntry for ExRootAnalysis/ExRootConfReader.h
requested to autoload type ExRootConfParam
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Missing FileEntry for ExRootAnalysis/ExRootConfReader.h
requested to autoload type ExRootConfReader
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Missing FileEntry for ExRootAnalysis/ExRootTask.h
requested to autoload type ExRootTask
In rootlogon.C I have this:
gSystem->AddIncludePath("-I/usr/local/Delphes-3.4.2/external/");
gSystem->AddIncludePath("-I/usr/local/Delphes-3.4.2/classes/");
gSystem->AddIncludePath("-I/usr/local/ExRootAnalysis/");
gSystem->Load("/usr/local/Delphes-3.4.2/libDelphes.so");
And furthermore, the bash environment contains the right paths:
ROOT_INCLUDE_PATH=/usr/local/ExRootAnalysis/:/usr/local/Delphes-3.4.1/external:/usr/local/Delphes-3.4.2/classes
SHLIB_PATH=/usr/local/root-6.22.06/lib
DYLD_LIBRARY_PATH=/usr/local/root-6.22.06/lib
PYTHONPATH=/usr/local/root6.22.06/lib:
/usr/local/ExRootAnalysis/:/usr/local/Delphes-3.4.1/external:/usr/local/Delphes-3.4.2/classes
LIBPATH=/usr/local/root-6.22.06/lib
ROOTSYS=/usr/local/root-6.22.06
LD_LIBRARY_PATH=/usr/local/ExRootAnalysis/:/usr/local/Delphes-3.4.2:/usr/local/root-6.22.06/lib
The permissions in /usr/local/Delphes-3.4.1/external seem
to be correct, I can read every file in that folder with more/less.
So I would be most grateful if you could give me some pointer on
this issue.
For some more information, I have downloaded Delphes-3.4.2 from
https://github.com/delphes/delphes/archive/master.zip
as indicated in the answer to #1484, then compiled with
root-6.22.06 without errors (though plenty of warnings).
Despite these error messages, I am able to compile old ROOT analyses
without problems, and they run with a large number of error messages
but apparently flawless results.
Thanks so much for your attention.
Change History (4)
comment:1 by , 4 years ago
comment:2 by , 4 years ago
Thanks for the prompt answer. I tried without the "-I" but it didn't seem to work:
$ root -l
root [0] gSystem->AddIncludePath("/usr/local/Delphes-3.4.2/external/");
root [1] gSystem->AddIncludePath("/usr/local/Delphes-3.4.2/classes/");
root [2] gSystem->Load("/usr/local/Delphes-3.4.2/libDelphes.so");
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Missing FileEntry for ExRootAnalysis/ExRootConfReader.h
requested to autoload type ExRootConfParam
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Missing FileEntry for ExRootAnalysis/ExRootConfReader.h
requested to autoload type ExRootConfReader
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Missing FileEntry for ExRootAnalysis/ExRootTask.h
requested to autoload type ExRootTask
root [3]
comment:3 by , 4 years ago
OK, so I checked the reference you quoted and changed the commands to
gInterpreter->AddIncludePath("/usr/local/Delphes-3.4.2/external/");
gInterpreter->AddIncludePath("/usr/local/Delphes-3.4.2/classes/");
gInterpreter->AddIncludePath("/usr/local/ExRootAnalysis/");
gSystem->Load("/usr/local/Delphes-3.4.2/libDelphes.so");
with gInterpreter instead of gSystem, and the error messages are gone.
That seems to solve the problem.
Thanks again.
comment:4 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I think a similar question was asked on the root forum:
https://root-forum.cern.ch/t/gsystem-addincludepath-doesnt-work/10946
The answer was to remove '-I'.
Could you try the following code?