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

Note Re: Novice Needs Help Linking ROOT and Geant4 

Forum: Installation and Configuration
Re: None Novice Needs Help Linking ROOT and Geant4 (Jacob Sniff)
Date: 06 Dec, 2011
From: <jcook>

Hi Jacob,

First check that you have the correct command line form:

<source>$ROOTSYS/bin/root-config --glibs

-L/u/jcook/opt/root/5.30/lib -lGui -lGpad -lHist -lGraf -lGraf3d -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lRIO -lNet -lThread -lCore -lCint -pthread -lm -ldl -rdynamic

Then in the GNUMakefile, add these two lines:

LDFLAGS += $(shell $(ROOTSYS)/bin/root-config --glibs)

CPPFLAGS += $(shell $(ROOTSYS)/bin/root-config --cflags)

In this case, the outer $(...) means "execute this", producing the output given on the command line. The $(ROOTSYS) is just the way the environment variable ROOTSYS is accessed in a Makefile. If you want a particular version of ROOT rather than relying on the environment variable, add "ROOTSYS = /this/ROOT/path" earlier in the Makefile.

Best of luck.

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

1 Warning: Re: Novice Needs Help Linking ROOT and Geant4   (jcook - 06 Dec, 2011)
 Add Message Add Message
to: "Re: 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 ]