GSI Helmholtzzentrum für Schwerionenforschung
[FIXED] Error compiling PandaRoot (FairMultiLinkedData_Interface.h)
Hi, I tried to install an compile the newest trunk 27083 following the recipe in the Wiki and starting from installing the external packages (jul14p3) and FairRoot. Both compiled successfully, but when compiling trunk itself I got the error [ 49%] Building CXX object sds/CMakeFiles/Sds.dir/SdsDigi/PndSdsHybridHitProducer.cxx.o /u/kgoetzen/pandaroot/trunk4/sds/SdsDigi/PndSdsHybridHitProducer.cxx:31:45: error: FairMultiLinkedData_Interface.h: No such file or directory /u/kgoetzen/pandaroot/trunk4/sds/SdsDigi/PndSdsHybridHitProducer.cxx: In member function 'virtual void PndSdsHybridHitProducer::Exec(const Option_t*)': /u/kgoetzen/pandaroot/trunk4/sds/SdsDigi/PndSdsHybridHitProducer.cxx:392: error: 'FairMultiLinkedData_Interface' was not declared in this scope /u/kgoetzen/pandaroot/trunk4/sds/SdsDigi/PndSdsHybridHitProducer.cxx:392: error: expected primary-expression before ')' token make[2]: *** [sds/CMakeFiles/Sds.dir/SdsDigi/PndSdsHybridHitProducer.cxx.o] Error 1 make[1]: *** [sds/CMakeFiles/Sds.dir/all] Error 2 make: *** [all] Error 2 Does somebody know what's going wrong? Or is this simply a new bug? Best, Klaus
Re: Error compiling PandaRoot (FairMultiLinkedData_Interface.h)
Hi Klaus, the problem arrises because you are using the new external packages with an old FairRoot version. In the new FairRoot the structure of the FairLinks has changed with the consequence that FairMultiLinkedData has to be replaced by FairMultiLinkedData_Interface. Unfortunately we cannot check which FairRoot version you are using therefore we check for the ROOT version. This fails in your case. As a fast bypass just comment the lines with FairMultiLinkedData_Interface and the associated lines with "#if (ROOT_VERSION_CODE >= ROOT_VERSION(5,34,10))" Cheers, Tobias
Hi Klaus, you forgot to set FAIRROOTPATH and to remove the base folders.
Hi Tobias, thanks for the hint. After I commented these lines in several places, it compiled now! Best, Klaus