Message: Novice Needs Help Linking ROOT and Geant4 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Novice Needs Help Linking ROOT and Geant4 

Forum: Installation and Configuration
Date: 06 Oct, 2011
From: Jacob Sniff <Jacob Sniff>

Hi all,

I am having problems linking ROOT to Geant4. I was told that I should just add a couple of lines of code to my gnu make file:

CPPFLAGS += `root --cflags` LDFLAGS += `root --libs`

But, when I try to compile it, it gives some errors:

/bin/sh: root: command not found In file included from src/SteppingAction.cc:12: include/Analysis.hh:16:22: error: TProfile.h: No such file or directory include/Analysis.hh:17:18: error: TH1F.h: No such file or directory Making dependency for file src/StackingAction.cc ... /bin/sh: root: command not found In file included from src/StackingAction.cc:4: include/Analysis.hh:16:22: error: TProfile.h: No such file or directory include/Analysis.hh:17:18: error: TH1F.h: No such file or directory Making dependency for file src/RunAction.cc ...

Does anyone know what I have to explicitly do to get Geant4 to link to Root? I am a novice at this and in fact, I am new to the C++ language, so please walk me through all the steps. I just want to be able to create some histograms from a Geant4 simulation to later use in ROOT.

Thank you, Jacob

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

1 Note: Re: Novice Needs Help Linking ROOT and Geant4   (jcook - 06 Dec, 2011)
1 Warning: Re: Novice Needs Help Linking ROOT and Geant4   (jcook - 06 Dec, 2011)
2 None: Re: Novice Needs Help Linking ROOT and Geant4   (michel maire - 07 Dec, 2011)
 Add Message Add Message
to: "Novice Needs Help Linking ROOT and Geant4"

 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 ]