From 08b99cdc2a94927d34d259470e6c05eff9e7464e Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Mon, 28 Oct 2019 14:33:53 +0100 Subject: [PATCH] DDG4: initAClick: give explicit location of DD4hep libraries so we don't pick them up from some other location --- DDG4/examples/initAClick.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DDG4/examples/initAClick.C b/DDG4/examples/initAClick.C index b0a51fd04..5878c05ef 100644 --- a/DDG4/examples/initAClick.C +++ b/DDG4/examples/initAClick.C @@ -63,7 +63,6 @@ int initAClick(const char* command=0) { std::string defs = ""; std::string libs = " -L"+rootsys+"/lib"; std::string inc = " -I"+dd4hep+"/examples/DDG4/examples -I"+dd4hep + " -I"+dd4hep+"/include"; - libs += " -L"+dd4hep+"/lib -lDD4hepGaudiPluginMgr -lDDCore -lDDG4"; if ( !geant4.empty() ) { inc += " -I"+geant4+"/include/Geant4"; #ifdef __APPLE__ @@ -83,7 +82,10 @@ int initAClick(const char* command=0) { #ifndef __APPLE__ libs += " -lCore -lMathCore -pthread -lm -ldl -rdynamic"; #endif - gSystem->Load("libDD4hepGaudiPluginMgr"); + libs += " " +dd4hep+"/lib/libDD4hepGaudiPluginMgr.so"; + libs += " " +dd4hep+"/lib/libDDCore.so"; + libs += " " +dd4hep+"/lib/libDDG4.so"; + gSystem->Load("libDD4hepGaudiPluginMgr.so"); gSystem->AddIncludePath(inc.c_str()); gSystem->AddLinkedLibs(libs.c_str()); std::cout << "+++ Includes: " << gSystem->GetIncludePath() << std::endl; -- GitLab