Message: Re: geant4.9.5 re-compillation of $G4INSTALL/source Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re: geant4.9.5 re-compillation of $G4INSTALL/source 

Forum: Installation and Configuration
Re: Question geant4.9.5 re-compillation of $G4INSTALL/source (Cristian Bungau)
Date: 09 Mar, 2012
From: Ben Morgan <Ben Morgan>

On Fri, 09 Mar 2012 14:04:13 GMT, Cristian Bungau wrote:
> Dear all,
> In the previous releases of geant4 I used to be able to recompile the
> libraries. But now this is what I get:
> source
> ~/geant4/geant4.9.5-install/share/Geant4-9.5.0/geant4make/
> cd $G4INSTALL/source
> make clean
> make
> and I get all these errors:
> Is there anything I am missing to be able to re-compile the libraries?

Geant4 now uses CMake as its main buildsystem. If you need to recompile then you should follow Chapter 2.1 of the Installation Guide up to the point of make install. The build directory you've created can be re-used at any point to rebuild against the source directory you configured/built against.

For example, using the directory paths given in the Installation Guide, after I've done the main build I could run

$ make edit_cache
.. change options in the curses interface, e.g. Enable Qt UI/Vis.
$ make

to enable/disable options and then rebuild.

If you need to make changes to the source code of Geant4 itself, then you can edit the needed files under the source directory, and then simply go back to your build directory and type

$ make

The Makefiles will spot changes have been made and will rebuild accordingly. There is no need to do make clean unless you really want to start completely from scratch. The Makefiles are, in general, smart enough to spot what needs rebuilding and what doesn't following any configuration changes or source code edits.

Hope that helps.


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

1 More: Re: geant4.9.5 re-compillation of $G4INSTALL/source   (Cristian Bungau - 09 Mar, 2012)
 Add Message Add Message
to: "Re: geant4.9.5 re-compillation of $G4INSTALL/source"

 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 ]