Message: GEANT4 and ROOT linking Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question GEANT4 and ROOT linking 

Forum: Installation and Configuration
Date: 12 Dec, 2008
From: Maria Gatu Johnson <Maria Gatu Johnson>

I had a problem with finding ROOT files (ROOT 5.20.00) from my GEANT4 (4.9.1) applications. After adding

ifdef ROOTSYS CPPFLAGS += -DG4ANALYSIS_USE_ROOT $(shell $(ROOTSYS)/bin/root-config --cflags) ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit -lHtml

ROOTLIBS := $(filter-out -lNew,$(ROOTLIBS))
ROOTLIBS := $(filter-out -lThread,$(ROOTLIBS))
ROOTLIBS := $(filter-out -lpthread,$(ROOTLIBS))
LDLIBS += $(ROOTSYS) endif

to my makefile, the code now finds the libraries fine. However, I run into a problem at the linking stage: ..]$ gmake Linking TOFOR9 ... /usr/local/root-5.20: file not recognized: Is a directory collect2: ld returned 1 exit status gmake: *** [/home/andersh/geant4/bin/Linux-g++/TOFOR9] Error 1

"/usr/local/root-5.20" is the path specified by ROOTSYS. However, if I try to comment out the line LDLIBS += $(ROOTSYS) from the makefile addition above, my code again does not find any of the rootfiles and does not compile for that reason. What am I doing wrong? Help help help!

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: GEANT4 and ROOT linking   (Gunter Folger - 12 Dec, 2008)
(_ None: Re: GEANT4 and ROOT linking   (Maria Gatu Johnson - 12 Dec, 2008)
(_ Feedback: Re: GEANT4 and ROOT linking   (Gunter Folger - 12 Dec, 2008)
(_ Question: Re: GEANT4 and ROOT linking   (Maria Gatu Johnson - 12 Dec, 2008)
(_ Feedback: Solution   (Maria Gatu Johnson - 17 Dec, 2008)
 Add Message Add Message
to: "GEANT4 and ROOT linking"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]