Visualization problem while running example B1

Hello Everyone,
I just installed geant4 and trying to run example B1 I got the following error message:

# Use this open statement to create an OpenGL view:
/vis/open OGL 600x600-0+0
/vis/sceneHandler/create OGL
parameter value (OGL) is not listed in the candidate List.
  Candidates are: ASCIITree ATree DAWNFILE G4HepRepFile HepRepFile RayTracer VRML2FILE gMocrenFile TOOLSSG_OFFSCREEN TSG_OFFSCREEN TOOLSSG_OFFSCREEN TSG_OFFSCREEN TSG_FILE

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
      issued by : G4UImanager::ApplyCommand
Invoked command has failed - see above. Available graphics systems are:
 Registered graphics systems are:
  ASCIITree (ATree)
  DAWNFILE (DAWNFILE)
  G4HepRepFile (HepRepFile)
  RayTracer (RayTracer)
  VRML2FILE (VRML2FILE)
  gMocrenFile (gMocrenFile)
  TOOLSSG_OFFSCREEN (TSG_OFFSCREEN)
  TOOLSSG_OFFSCREEN (TSG_OFFSCREEN, TSG_FILE)

Error code : 500
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

***** Illegal parameter (0) </vis/open OGL 600x600-0+0> *****

***** Batch is interrupted!! *****

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
      issued by : G4UImanager::ApplyCommand
Command aborted (500)
Error code : 500
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

***** Illegal parameter (0) </control/execute vis.mac> *****

***** Batch is interrupted!! *****

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
      issued by : G4UImanager::ApplyCommand
Command aborted (500)
Error code : 500
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

just for reference, this was my cmake build command


cmake -DCMAKE_INSTALL_PREFIX=/Users/tokyo/Documents/GEANT4/geant4-v11.1.0-install cmake -DGEANT4_INSTALL_DATA=ON GEANT4_BUILD_MULTITHREADED=ON GEANT4_INSTALL_DATADIR=ON GEANT4_USE_GDML=ON  GEANT4_USE_INVENTOR= ON GEANT4_USE_INVENTOR_QT=ON GEANT4_USE_OPENGL_WIN32=On GEANT4_USE_OPENGL_X11=ON /Users/tokyo/Documents/GEANT4/geant4-v11.1.0

Any suggestions on how to fix it and run the examples properly???

Hi

Your cmake command looks a little strange. It has the word “cmake” twice - or have you conflated two commands in this post? And I think you have to have -D in front of each option (although I have not tried it without) and there is an odd space between an “=“ and an “ON” and there is an “On”. Were there not any error messages?

Otherwise it looks like the options you are trying to select are fine. Of course, you have to use cmake twice - once for building the Geant4 libraries, with all the options, followed by an “make” and once for building your app, which simply refers to the Geant4 build (so you don’t have to repeat the options), followed by another “make”.

Maybe you’re just picking up an old executable. Look at the date with “ls -l”.

Hope this helps
John

Almost certainly this is the cause of the problem - the -D must be there, and there can’t be spaces between the =.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.