| Message: gui/addMenu COMMAND NOT FOUND in example N03 | Not Logged In (login) |
|
Hi, After compiling and running the novice example N03, when I type "control/execute visTutor/gui.mac" it gives the following error: /gui/addMenu file File ***** COMMAND NOT FOUND </gui/addMenu file File> ***** ***** Batch is interupted!! ***** I found several threads that have similar problem to this one, I have ensured the environment variable eg G4UI_USE_XM=1 are set properly before compiling the example, but still the problem persists. I notice another quirk which I'm not sure is causing this problem. When I type "make clean" and "make" in my <G4INSTALL>/source/interface/basic/ directory, this is what I get: Cleaning up ... Making dependency for file src/G4VUIshell.cc ... Making dependency for file src/G4UIXm.cc ... Making dependency for file src/G4UIXaw.cc ... Making dependency for file src/G4UIWin32.cc ... Making dependency for file src/G4UIterminal.cc ... Making dependency for file src/G4UItcsh.cc ... Making dependency for file src/G4UIQt.cc ... Making dependency for file src/G4UIcsh.cc ... Making dependency for file src/G4UIArrayString.cc ... Compiling G4UIArrayString.cc ... Compiling G4UIcsh.cc ... Compiling G4UIQt.cc ... Compiling G4UItcsh.cc ... Compiling G4UIterminal.cc ... Compiling G4UIWin32.cc ... Compiling G4UIXaw.cc ... Compiling G4UIXm.cc ... src/G4UIXm.cc: In constructor ‘G4UIXm::G4UIXm(int, char**)’: src/G4UIXm.cc:134: warning: deprecated conversion from string constant to ‘char*’ src/G4UIXm.cc: In member function ‘void G4UIXm::Prompt(G4String)’: src/G4UIXm.cc:205: warning: deprecated conversion from string constant to ‘char*’ src/G4UIXm.cc: In member function ‘virtual void G4UIXm::AddMenu(const char*, const char*)’: src/G4UIXm.cc:320: warning: deprecated conversion from string constant to ‘char*’ Compiling G4VUIshell.cc ... Creating/replacing object files in /home/neohys/geant4/geant4.9.2.p02/lib/Linux-g++/libG4UIbasic.a ... ar: creating /home/neohys/geant4/geant4.9.2.p02/lib/Linux-g++/libG4UIbasic.a It still compiles, but with warnings, and I feel uneasy about it. Can anyone shed light on how to eliminate those warnings? Thanks Neoh |
| Inline Depth: | Outline Depth: | Add message: |
|
to: |