Message: Re: gui/addMenu COMMAND NOT FOUND in example N03 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: gui/addMenu COMMAND NOT FOUND in example N03 

Forum: (Graphical) User Interfaces
Re: Question gui/addMenu COMMAND NOT FOUND in example N03 (Neoh)
Date: 02 Nov, 2009
From: John Allison <John Allison>

In order for the /gui/ commands to be available you have to have instantiated a graphical user interface session. You cannot, for example, find /gui/ commands from a G4UIterminal session.

Make sure you have a G4UIXm session either by editing the main program, exampleN03.cc, or unsetting environment variables that cause it to instantiate something else, e.g.,

  unset G4UI_USE_TCSH

then force re-building of your application by "make clean; make". (You will notice that exampleN03.cc is written so that if a G4UIXm session is instantiated, "/control/execute visTutor/gui.mac" is executed so you don't need to type it yourself. The fact that you typed it yourself tells me you are typing it from a non-GUI session.)

/gui/ commands (should) work with G4UIXm and G4UIQt sessions.

I hope this helps. Let us know if not.

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

1 Idea: Re: gui/addMenu COMMAND NOT FOUND in example N03   (Neoh - 03 Nov, 2009)
 Add Message Add Message
to: "Re: gui/addMenu COMMAND NOT FOUND in example N03"

 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 ]