Message: Re: install of a single library Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: install of a single library 

Forum: Installation and Configuration
Re: Question install of a single library (Michael)
Date: 07 Aug, 2010
From: Dragos Constantin <Dragos Constantin>

Hi Mike,

All you need is to go in the lib source directory and run a make there. It will take care of only that library and it will install it automatically. You will need the environment variables to be properly set otherwise it will not work. Please note that for a full installation the environment variables are set at the beginning.

Let's say I have changed something in

...path_to_sources/geant4.9.3/source/geometry/solids/BREPS/src/G4Assembly.cc

then you go one folder up and execute make

cd ..;make

At the end you will see a message similar to the one bellow

Creating/replacing object files in ...path_to_installed/geant4.9.3/lib/geant4/Linux-g++/libG4brep.a ...

ar: creating ...path_to_installed/geant4.9.3/lib/geant4/Linux-g++/libG4brep.a

which means you are done (in less then a minute).

Good luck,

Dragos

On Sat, 07 Aug 2010 18:41:53 GMT, Michael wrote:

> Hi,
> 
> Every now and again i like to add things to the G4 source code i.e.
> G4cout statements and turning physics off in the default builders etc
> (occassionally turning off the odd annoying warning that slows down
> simulations...).
> 
> Is there a way to build one library (like builder) instead of doing
> ./Configure -build and waiting for cygwin to work through all the
> libraries i.e. "nothing to be done...". It seems inefficient to
> configure everything just to compile one file!
> 
> Sorry if this is dumb, I'm not the greatest terminal user...
> 
> Cheers,
> 
> Mike.
> 

 Add Message Add Message
to: "Re: install of a single library"

 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 ]