Re: VMC 2.0

From: Ivana Hrivnacova <Ivana.Hrivnacova_at_cern.ch>
Date: Tue, 23 Jan 2007 12:04:57 +0100


Dear Dmitry,

Geant4 VMC version 2.0 requires Root compiled with the g4root option (which is not activated by default when building root).

This is mentioned on the VMC web page, in the paragraph about geometry navigation; but the text is not precise, as we talk here about this possibility as optional, but in the implementation, the option was not put, so g4root package is required in compilation.

To build Root with this option, you need to add these options when running configure script:

    --enable-g4root \
    --with-g4-incdir=$G4INSTALL/include \
    --with-g4-libdir=$G4INSTALL/lib/Linux-g++ \
    --with-clhep-incdir=$CLHEP_BASE_DIR/include

I will update the VMC web page to reflect better the reality.

Thank you for reporting this problem,

Ivana

Dmitry Naumov wrote:
> Dear VMC team,
>
> I am trying to upgrade my installation to geant4_vmc 2.0
>
> I get this error at the compilation stage:
> In file included from geometry/src/TG4PostDetConstruction.cxx:10:
> geometry/include/TG4PostDetConstruction.h:12:41: error:
> TG4RootDetectorConstruction.h: No such file or directory
> geometry/include/TG4PostDetConstruction.h:17: error: expected class-name
> before '{' token
> geometry/include/TG4PostDetConstruction.h:23: error:
> 'TG4RootDetectorConstruction' has not been declared
> geometry/src/TG4PostDetConstruction.cxx: In constructor
> 'TG4PostDetConstruction::TG4PostDetConstruction()':
> geometry/src/TG4PostDetConstruction.cxx:18: error: class
> 'TG4PostDetConstruction' does not have any field named
> 'TVirtualUserPostDetConstruction'
> geometry/src/TG4PostDetConstruction.cxx: At global scope:
> geometry/src/TG4PostDetConstruction.cxx:35: error: variable or field
> 'Initialize' declared void
> geometry/src/TG4PostDetConstruction.cxx:35: error: 'int
> TG4PostDetConstruction::Initialize' is not a static member of 'class
> TG4PostDetConstruction'
> geometry/src/TG4PostDetConstruction.cxx:35: error:
> 'TG4RootDetectorConstruction' was not declared in this scope
> geometry/src/TG4PostDetConstruction.cxx:35: error: expected
> primary-expression before ')' token
> geometry/src/TG4PostDetConstruction.cxx:36: error: expected ',' or ';'
> before '{' token
>
>
> I looked for TG4RootDetectorConstruction.h and do not find it in the
> geant4_vmc package. Then I found this package in root itself but this
> package was not present in previous versions (thus this is not a
> backward compatible way to upgrade) and is not compiled by default.
> Perhaps it is worth to mention this feature at the VMC homepage?
>
> Dmitry
>

-- 
==============================================================
e-mail:  Ivana.Hrivnacova_at_cern.ch
address: Institut Physique Nucleaire, 91406 Orsay, France
phone:   (33) 01 69 15 65 94
==============================================================
Received on Tue Jan 23 2007 - 12:02:39 CET

This archive was generated by hypermail 2.2.0 : Tue Apr 17 2007 - 11:25:00 CEST