Message: Re: G4 Makefiles and static libraries Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: G4 Makefiles and static libraries 

Forum: Installation and Configuration
Re: Question G4 Makefiles and static libraries (Lucas Clemente)
Date: 13 Aug, 2008
From: Gabriele Cosmo <Gabriele Cosmo>

 Hi Lucas,

> I would like to build a static library using Geant4. The problem is,
> that I don't know how to apply the G4 Makefiles. Every experiment I did
> went wrong. Do I have to include "binmake.gmk" or/and "common.gmk"
> or/and "globlib.gmk"? Which options have to be set in order to get a
> simple static lib?
> 
> I have got my sources under src/ and includes under include/...

it depends what exactly you are trying to do.
Do you wish to create an extra library to be linked to your application ?
Or are you trying to tweak/insert a new library in the kernel ?

If the former (which is the suggested way), it is rather simple and you
can structure your application in different modules which you can
generate as libraries (static or shared...) that you finally link as
EXTRALIBS to your application (see also docs, 5.3.2 of User's Guide);
an example of a modular structure can also be found in
advanced/radiation_monitor (see the GNUmakefiles and the way each
module is built) ...

Cheers, Gabriele

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

1 Ok: Re: G4 Makefiles and static libraries   (Lucas Clemente - 13 Aug, 2008)
(_ None: Re: G4 Makefiles and static libraries   (David Krapohl - 13 Jan, 2010)
(_ None: Re: G4 Makefiles and static libraries   (Lucas Clemente - 13 Jan, 2010)
(_ None: Re: G4 Makefiles and static libraries   (David Krapohl - 13 Jan, 2010)
 Add Message Add Message
to: "Re: G4 Makefiles and static libraries"

 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 ]