[Gate-users] gate install issues

John-Michael Fischer john-michael.fischer at surgiceye.com
Fri Sep 3 14:29:13 CEST 2010


Hello all, I've been following the install guide here ( 
http://wiki.opengatecollaboration.org/index.php/InstallationGuide) but 
have come across several issues.  Googling for the show stopper has come 
back empty :\

First I will provide the errors, then I will give my specific environment

I get several warnings and one error when compiling gate
Warnings
#######
These first errors come up in this same block a lot.  It appears this 
file is used in multiple places.

......from src/GateARFSD.cc:76:
/home/jm/software/clhep/include/CLHEP/Random/RandomEngine.icc:29: 
warning: type qualifiers ignored on function return type
/home/jm/software/clhep/include/CLHEP/Random/RandomEngine.icc:34: 
warning: type qualifiers ignored on function return type
/home/jm/software/clhep/include/CLHEP/Random/RandomEngine.icc:39: 
warning: type qualifiers ignored on function return type
/home/jm/software/clhep/include/CLHEP/Random/RandomEngine.icc:44: 
warning: type qualifiers ignored on function return type
/home/jm/software/clhep/include/CLHEP/Random/RandomEngine.icc:49: 
warning: type qualifiers ignored on function return type
/home/jm/software/clhep/include/CLHEP/Random/RandomEngine.icc:54: 
warning: type qualifiers ignored on function return type
/home/jm/software/clhep/include/CLHEP/Random/RandomEngine.icc:59: 
warning: type qualifiers ignored on function return type
/home/jm/software/clhep/include/CLHEP/Random/RandomEngine.icc:64: 
warning: type qualifiers ignored on function return type
###################
The next warning only appears three or four times, but obviously 
iostream is probably important
#####
In file included from src/GateOPETSystem.cc:13:
../output/include/GateToLMF.hh:25:22: error: iostream.h: No such file or 
directory
###################

And finally the show stopper comes when the linker starts
#############
Using global libraries ...
Linking Gate
/usr/bin/ld: cannot find -lG4Tree
collect2: ld returned 1 exit status
make: *** [bin/Linux-g++/Gate] Error 1


ENVIRONMENT
############
Environment
Distribution - Ubuntu Lucid - latest updates applied
Gate5-p01
Geant4 9,2
CLHEP - latest stable
ROOT - latest provided by ubuntu package (5.18)
LMF - latest stable
GCC 4,4,3-4ubuntu5

CLHEP, Geant4, and Root are all succesfully installed.
In my bashrc I have (the only path im unsure about is the GATEHOME, 
should it be what it is, or one directory up from this?) what is 
displayed several lines below.
The root home is set based on the structure of variables.gmk.  I have 
modified one line of this file from
CPPFLAGS += -DG4ANALYSIS_USE_ROOT -D_REENTRANT -I$(ROOTSYS)/include
to
CPPFLAGS += -DG4ANALYSIS_USE_ROOT -D_REENTRANT -I$(ROOTSYS)/include/root
so that the path is correct based on where the .deb file puts things.
-----------------------------
#include an entry for Geant4
export G4WORKDIR=~/g4work
export LD_LIBRARY_PATH=~/software/clhep/lib/:$LD_LIBRARY_PATH
source ~/software/geant4/geant4.9.2.p03/env.sh

export G4VERSION=9.2

#set root home
export ROOTSYS=/usr

#set lmf home
export LMF_HOME=/opt/lmf

#include stuff for gate
export GATEHOME=~/software/gate/gate_v5.0.0_p01
----------------------------------

Before running make I will always save any changes to .bashrc, open a 
new shell, cd into the gate directory, source env_gate.sh, make clean && 
make

Any help is greatly appreciated!

Thanks!
John-Michael Fischer

PS - is it possible to use geant4.9.3p01, or no?  The installation guide 
says no, but since its a point release i wasnt sure if the documentation 
was simply not updated.



More information about the Gate-users mailing list