Message: Re: Problems with geant4.9.4 version in compiling advanced examples as hadrontherapy, medical linac, etc. etc. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Problems with geant4.9.4 version in compiling advanced examples as hadrontherapy, medical linac, etc. etc. 

Forum: Installation and Configuration
Re: Question Problems with geant4.9.4 version in compiling advanced examples as hadrontherapy, medical linac, etc. etc. (Carlo Casarino)
Re: Question Re: Problems with geant4.9.4 version in compiling advanced examples as hadrontherapy, medical linac, etc. etc. (Ben Morgan)
Re: None Re: Problems with geant4.9.4 version in compiling advanced examples as hadrontherapy, medical linac, etc. etc. (Carlo Casarino)
Re: None Re: Problems with geant4.9.4 version in compiling advanced examples as hadrontherapy, medical linac, etc. etc. (Ben Morgan)
Date: 17 Feb, 2011
From: Carlo Casarino <Carlo Casarino>

Dear Ben, following your instructions, I have sourced directly env.sh file (that I have copied from folder :/geant4.9.4/.config/bin/Linux-g++) trought the command ". env.sh" and invoking "env $var" it says:

CLHEP_LIB_DIR=/home/geant4/librerie_geant4.9.4/CLHEP/lib
G4LEVELGAMMADATA=/home/geant4/librerie_geant4.9.4/PhotonEvaporation2.1
SSH_AGENT_PID=4675
HOSTNAME=localhost.localdomain
G4INSTALL=/home/geant4/geant4.9.4
DESKTOP_STARTUP_ID=
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
KDE_NO_IPV6=1
GTK_RC_FILES=/etc/gtk/gtkrc:/home/geant4/.gtkrc-1.2-gnome2
WINDOWID=32270367
G4LIB_BUILD_GDML=1
OLDPWD=/home/geant4/hadrontherapy
QTDIR=/usr/lib64/qt-3.3
G4NEUTRONXSDATA=/home/geant4/librerie_geant4.9.4/G4NEUTRONXS1.0
QTINC=/usr/lib64/qt-3.3/include
GTK_MODULES=gail:atk-bridge
QTLIBS=-L/home/geant4/qt_nokia_4.7.1/lib -lQtCore -lQtGui
G4LEDATA=/home/geant4/librerie_geant4.9.4/G4EMLOW6.19
USER=geant4
LD_LIBRARY_PATH=/home/geant4/geant4.9.4/lib/Linux-g++:/home/geant4/librerie_geant4.9.4/CLHEP/lib:/home/geant4/librerie_geant4.9.4/GDML_XERCES/lib
XMFLAGS=
G4VIS_USE_OPENGLQT=1
G4UI_BUILD_XAW_SESSION=1
QTFLAGS=-I/home/geant4/qt_nokia_4.7.1/include -I/home/geant4/qt_nokia_4.7.1/include/QtCore -I/home/geant4/qt_nokia_4.7.1/include/QtGui -I/home/geant4/qt_nokia_4.7.1/include/QtOpenGL
XMLIBS= -lXm -lXpm
G4UI_BUILD_XM_SESSION=1
G4NEUTRONHPDATA=/home/geant4/librerie_geant4.9.4/G4NDL3.14
GNOME_KEYRING_SOCKET=/tmp/keyring-nXzET5/socket
SSH_AUTH_SOCK=/tmp/ssh-JRNcRx4634/agent.4634
G4VIS_BUILD_OPENGLX_DRIVER=1
KDEDIR=/usr
G4RADIOACTIVEDATA=/home/geant4/librerie_geant4.9.4/RadioactiveDecay3.3
SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/4634
USERNAME=geant4
G4ABLADATA=/home/geant4/librerie_geant4.9.4/G4ABLA3.0
G4UI_BUILD_QT_SESSION=1
MAIL=/var/spool/mail/geant4
PATH=/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/geant4/bin:/home/geant4/geant4/bin/Linux-g++
DESKTOP_SESSION=default
GLQTLIBS=-L/home/geant4/qt_nokia_4.7.1/lib -lQtCore -lQtGui -lQtOpenGL
G4VIS_USE_DAWN=1
G4LIB=/home/geant4/geant4.9.4/lib
QT_IM_MODULE=scim
G4VIS_BUILD_OPENGLXM_DRIVER=1
GDM_XSERVER_LOCATION=local
G4LIB_BUILD_SHARED=1
G4PIIDATA=/home/geant4/librerie_geant4.9.4/G4PII1.2
INPUTRC=/etc/inputrc
PWD=/home/geant4
XMODIFIERS=@im=SCIM
CLHEP_BASE_DIR=/home/geant4/librerie_geant4.9.4/CLHEP
KDE_IS_PRELINKED=1
LANG=it_IT.UTF-8
QTMOC=/home/geant4/qt_nokia_4.7.1/bin/moc
G4UI_USE_XAW=1
G4UI_USE_XM=1
GDMSESSION=default
XERCESCROOT=/home/geant4/librerie_geant4.9.4/GDML_XERCES
G4VIS_USE_OPENGLX=1
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
G4UI_USE_TCSH=1
CLHEP_INCLUDE_DIR=/home/geant4/librerie_geant4.9.4/CLHEP/include
SHLVL=2
HOME=/home/geant4
G4REALSURFACEDATA=/home/geant4/librerie_geant4.9.4/RealSurface1.0
G4SYSTEM=Linux-g++
XAWLIBS= -lXaw
GNOME_DESKTOP_SESSION_ID=Default
G4UI_USE_QT=1
LOGNAME=geant4
QTLIB=/usr/lib64/qt-3.3/lib
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-0NE9DVmxCH,guid=70835ae474781084a87b1a004d5551db
G4VIS_BUILD_DAWN_DRIVER=1
G4WORKDIR=/home/geant4/geant4
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
G4VIS_USE_OPENGLXM=1
CLHEP_LIB=CLHEP
GTK_IM_MODULE=scim
XAWFLAGS=
G4VIS_BUILD_OPENGLQT_DRIVER=1
G_BROKEN_FILENAMES=1
COLORTERM=gnome-terminal
XAUTHORITY=/tmp/.gdm52AKQV
_=/usr/bin/env

...you could perhaps extrapolate for QT:

QTDIR=/usr/lib64/qt-3.3
...
QTINC=/usr/lib64/qt-3.3/include
...
QTLIBS=-L/home/geant4/qt_nokia_4.7.1/lib -lQtCore -lQtGui
...
QTFLAGS=-I/home/geant4/qt_nokia_4.7.1/include -I/home/geant4/qt_nokia_4.7.1/include/QtCore -I/home/geant4/qt_nokia_4.7.1/include/QtGui -I/home/geant4/qt_nokia_4.7.1/include/QtOpenGL
...
GLQTLIBS=-L/home/geant4/qt_nokia_4.7.1/lib -lQtCore -lQtGui -lQtOpenGL
...
QT_IM_MODULE=scim
...
QTMOC=/home/geant4/qt_nokia_4.7.1/bin/moc
...
QTLIB=/usr/lib64/qt-3.3/lib


Now I have invoked "gmake" in the Hadrontherapy folder but now it says:
 
Using global libraries ...
Linking Hadrontherapy
/home/geant4/geant4/tmp/Linux-g++/Hadrontherapy/exe/Hadrontherapy.o: In function `G4VisExecutive::RegisterGraphicsSystems()':
Hadrontherapy.cc:(.text._ZN14G4VisExecutive23RegisterGraphicsSystemsEv[G4VisExecutive::RegisterGraphicsSystems()]+0x2aa): undefined reference to `G4OpenGLImmediateXm::G4OpenGLImmediateXm()'
Hadrontherapy.cc:(.text._ZN14G4VisExecutive23RegisterGraphicsSystemsEv[G4VisExecutive::RegisterGraphicsSystems()]+0x2ca): undefined reference to `G4OpenGLStoredXm::G4OpenGLStoredXm()'
collect2: ld returned 1 exit status
gmake: *** [/home/geant4/geant4/bin/Linux-g++/Hadrontherapy] Error 1


hummmmm...it is not mentioned the problem about Qt....infact this is the first time that I sourced with the env.sh file.... :-(

Now I have invoked "gmake CPPVERBOSE=1" and it says:

[geant4@localhost hadrontherapy]$ gmake CPPVERBOSE=1
Using global libraries ...
g++ -W -Wall -ansi -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -pipe -O2 -fPIC -DG4OPTIMISE -Iinclude -I/home/geant4/librerie_geant4.9.4/CLHEP/include -DG4LIB_USE_GDML -I/home/geant4/librerie_geant4.9.4/GDML_XERCES/include -DG4VERBOSE -DG4_STORE_TRAJECTORY -DG4OPTIMISE -Iinclude -I/home/geant4/librerie_geant4.9.4/CLHEP/include -DG4LIB_USE_GDML -I/home/geant4/librerie_geant4.9.4/GDML_XERCES/include -DG4VERBOSE -DG4_STORE_TRAJECTORY -I/home/geant4/geant4.9.4/source/interfaces/basic/include -I/home/geant4/geant4.9.4/source/interfaces/common/include -I/home/geant4/geant4.9.4/source/interfaces/GAG/include -DG4UI_USE_TCSH -DG4UI_USE_XM -DG4UI_USE_QT -DG4UI_USE_XAW -DG4UI_USE -DG4VIS_USE_ASCIITREE -DG4VIS_USE_DAWNFILE -DG4VIS_USE_GMOCRENFILE -DG4VIS_USE_HEPREPFILE -DG4VIS_USE_RAYTRACER -DG4VIS_USE_VRMLFILE -I/home/geant4/geant4.9.4/source/visualization/FukuiRenderer/include -I/home/geant4/geant4.9.4/source/visualization/gMocren/include -I/home/geant4/geant4.9.4/source/visualization/HepRep/include -I/home/geant4/geant4.9.4/source/visualization/RayTracer/include -I/home/geant4/geant4.9.4/source/visualization/Tree/include -I/home/geant4/geant4.9.4/source/visualization/VRML/include -DG4VIS_USE_DAWN -DG4VIS_USE_OPENGLX -DG4VIS_USE_OPENGLXM -DG4VIS_USE_OPENGLQT -DG4VIS_USE_OPENGL -I/home/geant4/geant4.9.4/source/visualization/OpenGL/include -I/home/geant4/geant4.9.4/source/visualization/externals/gl2ps/include -DG4VIS_USE -I/home/geant4/geant4.9.4/source/visualization/management/include -I/home/geant4/geant4.9.4/source/visualization/modeling/include -I/home/geant4/qt_nokia_4.7.1/include -I/home/geant4/qt_nokia_4.7.1/include/QtCore -I/home/geant4/qt_nokia_4.7.1/include/QtGui -I/home/geant4/qt_nokia_4.7.1/include/QtOpenGL -I/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/include/X11/extensions -I/usr/include/X11 -DG4INTY_USE_XT -DG4INTY_USE_QT -I/home/geant4/geant4.9.4/source/global/management/include -I/home/geant4/geant4.9.4/source/global/HEPRandom/include -I/home/geant4/geant4.9.4/source/global/HEPGeometry/include -I/home/geant4/geant4.9.4/source/global/HEPNumerics/include -I/home/geant4/geant4.9.4/source/run/include -I/home/geant4/geant4.9.4/source/materials/include -I/home/geant4/geant4.9.4/source/parameterisations/gflash/include -I/home/geant4/geant4.9.4/source/particles/management/include -I/home/geant4/geant4.9.4/source/particles/adjoint/include -I/home/geant4/geant4.9.4/source/particles/bosons/include -I/home/geant4/geant4.9.4/source/particles/leptons/include -I/home/geant4/geant4.9.4/source/particles/hadrons/barions/include -I/home/geant4/geant4.9.4/source/particles/hadrons/ions/include -I/home/geant4/geant4.9.4/source/particles/hadrons/mesons/include -I/home/geant4/geant4.9.4/source/particles/shortlived/include -I/home/geant4/geant4.9.4/source/physics_lists/lists/include -I/home/geant4/geant4.9.4/source/physics_lists/builders/include -I/home/geant4/geant4.9.4/source/processes/management/include -I/home/geant4/geant4.9.4/source/processes/cuts/include -I/home/geant4/geant4.9.4/source/processes/biasing/include -I/home/geant4/geant4.9.4/source/processes/scoring/include -I/home/geant4/geant4.9.4/source/processes/decay/include -I/home/geant4/geant4.9.4/source/processes/optical/include -I/home/geant4/geant4.9.4/source/processes/transportation/include -I/home/geant4/geant4.9.4/source/processes/parameterisation/include -I/home/geant4/geant4.9.4/source/processes/electromagnetic/adjoint/include -I/home/geant4/geant4.9.4/source/processes/electromagnetic/standard/include -I/home/geant4/geant4.9.4/source/processes/electromagnetic/muons/include -I/home/geant4/geant4.9.4/source/processes/electromagnetic/utils/include -I/home/geant4/geant4.9.4/source/processes/electromagnetic/xrays/include -I/home/geant4/geant4.9.4/source/processes/electromagnetic/lowenergy/include -I/home/geant4/geant4.9.4/source/processes/electromagnetic/highenergy/include -I/home/geant4/geant4.9.4/source/processes/electromagnetic/pii/include -I/home/geant4/geant4.9.4/source/processes/electromagnetic/polarisation/include -I/home/geant4/geant4.9.4/source/processes/hadronic/cross_sections/include -I/home/geant4/geant4.9.4/source/processes/hadronic/management/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/abrasion/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/binary_cascade/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/cascade/cascade/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/cascade/evaporation/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/cascade/utils/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/chiral_inv_phase_space/body/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/chiral_inv_phase_space/cross_sections/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/chiral_inv_phase_space/fragmentation/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/chiral_inv_phase_space/interface/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/chiral_inv_phase_space/processes/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/coherent_elastic/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/de_excitation/ablation/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/de_excitation/evaporation/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/de_excitation/fermi_breakup/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/de_excitation/fission/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/de_excitation/gem_evaporation/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/de_excitation/handler/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/de_excitation/management/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/de_excitation/multifragmentation/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/de_excitation/photon_evaporation/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/de_excitation/util/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/em_dissociation/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/high_energy/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/im_r_matrix/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/incl/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/isotope_production/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/lend/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/lll_fission/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/low_energy/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/management/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/neutron_hp/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/parton_string/diffraction/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/parton_string/hadronization/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/parton_string/management/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/parton_string/qgsm/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/photolepton_hadron/muon_nuclear/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/pre_equilibrium/exciton_model/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/qmd/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/radioactive_decay/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/rpg/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/theo_high_energy/include -I/home/geant4/geant4.9.4/source/processes/hadronic/models/util/include -I/home/geant4/geant4.9.4/source/processes/hadronic/processes/include -I/home/geant4/geant4.9.4/source/processes/hadronic/stopping/include -I/home/geant4/geant4.9.4/source/processes/hadronic/util/include -I/home/geant4/geant4.9.4/source/geometry/management/include -I/home/geant4/geant4.9.4/source/geometry/solids/CSG/include -I/home/geant4/geant4.9.4/source/geometry/solids/specific/include -I/home/geant4/geant4.9.4/source/geometry/solids/BREPS/include -I/home/geant4/geant4.9.4/source/geometry/solids/Boolean/include -I/home/geant4/geant4.9.4/source/geometry/divisions/include -I/home/geant4/geant4.9.4/source/geometry/volumes/include -I/home/geant4/geant4.9.4/source/geometry/navigation/include -I/home/geant4/geant4.9.4/source/geometry/magneticfield/include -I/home/geant4/geant4.9.4/source/geometry/biasing/include -I/home/geant4/geant4.9.4/source/track/include -I/home/geant4/geant4.9.4/source/tracking/include -I/home/geant4/geant4.9.4/source/digits_hits/detector/include -I/home/geant4/geant4.9.4/source/digits_hits/hits/include -I/home/geant4/geant4.9.4/source/digits_hits/digits/include -I/home/geant4/geant4.9.4/source/digits_hits/scorer/include -I/home/geant4/geant4.9.4/source/digits_hits/utils/include -I/home/geant4/geant4.9.4/source/persistency/ascii/include -I/home/geant4/geant4.9.4/source/persistency/gdml/include -I/home/geant4/geant4.9.4/source/persistency/mctruth/include -I/home/geant4/geant4.9.4/source/readout/include -I/home/geant4/geant4.9.4/source/event/include -I/home/geant4/geant4.9.4/source/error_propagation/include -I/home/geant4/geant4.9.4/source/graphics_reps/include -I/home/geant4/geant4.9.4/source/intercoms/include \
          -o /home/geant4/geant4/bin/Linux-g++/Hadrontherapy /home/geant4/geant4/tmp/Linux-g++/Hadrontherapy/exe/Hadrontherapy.o -L/home/geant4/librerie_geant4.9.4/CLHEP/lib -L/home/geant4/librerie_geant4.9.4/CLHEP/lib -L/home/geant4/geant4.9.4/lib/Linux-g++ -L/home/geant4/geant4/tmp/Linux-g++/Hadrontherapy \
          -lHadrontherapy -lG4Tree -lG4FR -lG4GMocren -lG4visHepRep -lG4RayTracer -lG4VRML -lG4OpenGL -lG4OpenGL -lG4gl2ps -lG4vis_management -lG4modeling -lG4interfaces -lG4persistency -lG4error_propagation -lG4readout -lG4physicslists -lG4run -lG4event -lG4tracking -lG4parmodels -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4materials -lG4graphics_reps -lG4intercoms -lG4global -L/home/geant4/librerie_geant4.9.4/GDML_XERCES/lib -lxerces-c -L/home/geant4/qt_nokia_4.7.1/lib -lQtCore -lQtGui -L/home/geant4/qt_nokia_4.7.1/lib -lQtCore -lQtGui -lQtOpenGL -L/lib64 -lGLU -lGL -lXm -lXpm -lXaw -L/usr/X11R6/lib64 -lXmu -lXt -lXext -lX11 -lXi -lSM -lICE -lCLHEP -lm -lz
/home/geant4/geant4/tmp/Linux-g++/Hadrontherapy/exe/Hadrontherapy.o: In function `G4VisExecutive::RegisterGraphicsSystems()':
Hadrontherapy.cc:(.text._ZN14G4VisExecutive23RegisterGraphicsSystemsEv[G4VisExecutive::RegisterGraphicsSystems()]+0x2aa): undefined reference to `G4OpenGLImmediateXm::G4OpenGLImmediateXm()'
Hadrontherapy.cc:(.text._ZN14G4VisExecutive23RegisterGraphicsSystemsEv[G4VisExecutive::RegisterGraphicsSystems()]+0x2ca): undefined reference to `G4OpenGLStoredXm::G4OpenGLStoredXm()'
collect2: ld returned 1 exit status
gmake: *** [/home/geant4/geant4/bin/Linux-g++/Hadrontherapy] Error 1
[geant4@localhost hadrontherapy]$

....I am very confused and embarrassed.... I have seen also that there is another env.sh file but located in the geant4.9.4 folder but I have noted that this file is not updated after the ./Configure -build procedure...help me...help me...help me...
Thanks.
Carlo

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

1 None: Re: Problems with geant4.9.4 version in compiling advanced examples as hadrontherapy, medical linac, etc. etc.   (Ben Morgan - 18 Feb, 2011)
(_ None: Re: Problems with geant4.9.4 version in compiling advanced examples as hadrontherapy, medical linac, etc. etc.   (Carlo Casarino - 18 Feb, 2011)
(_ Feedback: Re: Problems with geant4.9.4 version in compiling advanced examples as hadrontherapy, medical linac, etc. etc.   (Ben Morgan - 18 Feb, 2011)
(_ Ok: Finally I am happy...next night I will sleep without worry... :-)   (Carlo Casarino - 18 Feb, 2011)
(_ None: Re: Finally I am happy...next night I will sleep without worry... :-)   (Ben Morgan - 18 Feb, 2011)
 Add Message Add Message
to: "Re: Problems with geant4.9.4 version in compiling advanced examples as hadrontherapy, medical linac, etc. etc."

 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 ]