Message: Qt and Geant 4.9.2 integration Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Qt and Geant 4.9.2 integration 

Forum: (Graphical) User Interfaces
Date: 01 Apr, 2009
From: Deepak Samuel <Deepak Samuel>

Hi,
I am a beginner in Geant and have just installed Geant 4.9.2 with QT driver
options turned on. I could run some of the novice examples. I would like to
know if Geant can be used in a Qt application. That is, I have a GUI designed
using Qt and I have a Opengl widget embedded in that GUI and now I want all
the Geant visualization to be output to this Widget. Is this currently possible?
 To begin with I just added the main Geant header files (and nothing else)
namely
#include "G4RunManager.hh"
#include "G4UImanager.hh"
to my Qt application and using  pro files I generated the make file. While
compiling I get the following errors :

mysim.o(.text+0x6fa): In function `global constructors keyed to _ZN5mysimC2EP7QWidget': : undefined reference to `CLHEP::HepRandom::createInstance()' mysim.o(.gnu.linkonce.t._ZNK12G4VTouchable9GetVolumeEi+0x18): In function `G4VTouchable::GetVolume(int) const': : undefined reference to `G4Exception(char const*, char const*, G4ExceptionSeverity, char const*)' mysim.o(.gnu.linkonce.t._ZNK12G4VTouchable8GetSolidEi+0x18): In function `G4VTouchable::GetSolid(int) const': : undefined reference to `G4Exception(char const*, char const*, G4ExceptionSeverity, char const*)' mysim.o(.gnu.linkonce.t._ZNK12G4VTouchable16GetReplicaNumberEi+0x18): In function `G4VTouchable::GetReplicaNumber(int) const': : undefined reference to `G4Exception(char const*, char const*, G4ExceptionSeverity, char const*)' mysim.o(.gnu.linkonce.t._ZN12G4VTouchable13MoveUpHistoryEi+0x18): In function `G4VTouchable::MoveUpHistory(int)': : undefined reference to `G4Exception(char const*, char const*, G4ExceptionSeverity, char const*)' mysim.o(.gnu.linkonce.t._ZN12G4VTouchable14UpdateYourselfEP17G4VPhysicalVolumePK19G4NavigationHistory+0x18): In function `G4VTouchable::UpdateYourself(G4VPhysicalVolume*, G4NavigationHistory const*)': : undefined reference to `G4Exception(char const*, char const*, G4ExceptionSeverity, char const*)' mysim.o(.gnu.linkonce.t._ZNK12G4VTouchable15GetHistoryDepthEv+0x18): more undefined references to `G4Exception(char const*, char const*, G4ExceptionSeverity, char const*)' follow mysim.o(.gnu.linkonce.t._ZN11G4AllocatorI15G4CountedObjectI12G4VTouchableEEC1Ev+0xc): In function `G4Allocator<G4CountedObject<G4VTouchable> >::G4Allocator()': : undefined reference to `G4AllocatorPool::G4AllocatorPool(unsigned int)' mysim.o(.gnu.linkonce.t._ZN11G4AllocatorI15G4CountedObjectI12G4VTouchableEED1Ev+0xa): In function `G4Allocator<G4CountedObject<G4VTouchable> >::~G4Allocator()': : undefined reference to `G4AllocatorPool::~G4AllocatorPool()' collect2: ld returned 1 exit status gmake: *** [mysim] Error 1

My question is there anything that I need to add to the pro files to get rid of these. Geant has provided the make files for the examples only.How do I generate a makefile, or what else is required, in a case like mine ? Thanks and Regards, Deepak Samuel.

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

1 Feedback: Re: Qt and Geant 4.9.2 integration   (garnier - 20 Apr, 2009)
(_ Question: Re: Qt and Geant 4.9.2 integration   (Thomas Kluge - 24 Sep, 2009)
 Add Message Add Message
to: "Qt and Geant 4.9.2 integration"

 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 ]