[Gate-users] Re: problem installing gate_v3.0.0

Marcos Gimenez margial at ific.uv.es
Wed Aug 2 17:40:01 CEST 2006


Paola Solevi wrote:

	Dear GATErs,
	I'm trying installing gate_v3.0.0.

	I set the correct (I hope) env_gate.sh and start compiling by the make 
	command but I found these error messagges:

	######################################################################
	src/GateCompressedVoxelOutput.cc: In member function `virtual void
	    GateCompressedVoxelOutput::RecordBeginOfAcquisition()':
	src/GateCompressedVoxelOutput.cc:97: error: incomplete type 'G4Material' 
	cannot be used to name a scope
	src/GateCompressedVoxelOutput.cc: In member function `virtual void
	     GateCompressedVoxelOutput::RecordEndOfAcquisition()':
	src/GateCompressedVoxelOutput.cc:130: error: incomplete type 'G4Material'
	cannot be used to name a scope
	src/GateCompressedVoxelOutput.cc:131: error: `GetDensity' undeclared 
	(first use this function)
	src/GateCompressedVoxelOutput.cc:131: error: (Each undeclared identifier 
	is reported only once for each function it appears in.)
	make:   
[home/paola/gate_v3.0.0/workdir/tmp/Linux-g++/Gate/GateCompressedVoxelOutput.o] 
Error 1
***********************************************

Hi all

We had the same errors, we found the errors came when we had the G4VERSION8_0 
enviroment variable not set properly.  (We use geant4.8.0.p01, Debian 
testing , gcc-4.0.3, root 5.12, and bash shells ). To check it do:

> echo $G4VERSION8_0

it must return 1

We found that in GateCompressedVoxelParametrization.cc there are these lines:
	
	#ifdef G4VERSION8_0
	G4Material* GateCompressedVoxelParameterization::ComputeMaterial(G4int 	
        copyNo , G4VPhysicalVolume * pv , const G4VTouchable*){
	#else
	G4Material* GateCompressedVoxelParameterization::ComputeMaterial(G4int   	
	copyNo , G4VPhysicalVolume * pv ){
	#endif

So if G4VERSION is not defined properly the G4Material is not defined 
properly.

i hope it helps, at least this worked for us.

Marcos








More information about the Gate-users mailing list