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)
Re: None Re: Problems with geant4.9.4 version in compiling advanced examples as hadrontherapy, medical linac, etc. etc. (Carlo Casarino)
Date: 18 Feb, 2011
From: Ben Morgan <Ben Morgan>

Hi Carlo,
On Thu, 17 Feb 2011 11:29:58 GMT, Carlo Casarino wrote:
> ...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

This looks o.k. to me - the Qt variables relating to the system Qt install shouldn't interfere with the Geant4 use of your Qt 4.7.1 installation.

> 
> 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

Hmm, this is more confusing - and as you note it doesn't seem to be related specifically to Qt. Given that the environment setup looks o.k., it may be a more general issue with the Geant4 installation. I would suggest, unfortunately, starting from scratch with the Geant4 installation - based on the environment setup, this looks like its in /home/geant4/geant4.9.4, so here, remove the bin, lib and tmp directories. To get a really clean setup, you can also remove the .config directory here as well.

When you rebuild, check the final report that's printed to see if any errors in the build were detected. If so, post them here and we can take a look. Otherwise, if the build reports success, rerun Configure to generate the env.sh. Source this and then try rebuilding HadronTherapy.

I'm afraid this is a rather drastic step, but I think it'll be the quickest way to fix the problem as we can take a clean step-by-step approach!

Cheers,

Ben.

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.   (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 ]