| Summary: | OPACS | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Federico.Carminati |
| Component: | interfaces/OPACS | Assignee: | barrand |
| Status: | CLOSED FIXED | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 0.1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
I have changed interfaces/common/src/G4Xt.cc so that a default "geometry" resource is given to XtAppInit. Try to set to FIXED... |
I cannot get OPACS Xm to work. I tried to get OPACS Xm working but without success. The output is the following Constructing Visualization Manager.... Initialising Visualization Manager.... Registering graphics systems.... Error: Shell widget main has zero width and/or height with this setting of the symbols #----------------------------------------------------------------------------- # GEANT4 Stuff # export G4SYSTEM=Linux-g++ export G4INSTALL=/soft/geant4.0.1 # Make them shared! export G4MAKESHLIB=$G4INSTALL/config/makeshlib.sh export G4USESHLIB=1 # Not needed, it should be the default # export G4LIB=${G4INSTALL}/lib # Bigger but safer export G4DEBUG=1 # Verbose but wiser # export G4_NO_VERBOSE export CLHEP_BASE_DIR=/soft/CLHEP # Use standard STL export G4USE_STL=1 # Make them shared! # export G4MAKESHLIB=$G4INSTALL/config/makeshlib.sh LD_LIBRARY_PATH=$LD_LIBRARY_PATH\:${G4INSTALL}/lib/$G4SYSTEM LD_LIBRARY_PATH=$LD_LIBRARY_PATH\:${G4INSTALL}/tmp/$G4SYSTEM LD_LIBRARY_PATH=$LD_LIBRARY_PATH\:/soft/CLHEP/lib export LD_LIBRARY_PATH ########### OpenGL export G4VIS_BUILD_OPENGLX_DRIVER=1 export G4VIS_USE_OPENGLX=1 export G4VIS_BUILD_OPENGLXM_DRIVER=1 export G4VIS_USE_OPENGLXM=1 # this I have added export G4USEMESA=1 export XKEYSYMDB=/usr/lib/X11/XKeysymDB export OGLHOME=/soft/Mesa-3.1 ########## OPACS graphics export G4VIS_BUILD_OPACS_DRIVER=1 export G4VIS_USE_OPACS=1 export OPACS_HOME=/soft/OpenScientistXm/OPACS export OPACS_VERSION=v3 export OPACS_SYSTEM=Linux-gxx export OCONFIG=Linux . $OPACS_HOME/v3/setup.sh OPATH="$OPATH $G4INSTALL/source/visualization/test/OPACS" ############ VRML #export G4VIS_BUILD_VRML_DRIVER=1 #export G4VIS_USE_VRML=1 #export G4VIS_BUILD_VRMLFILE_DRIVER=1 #export G4VIS_USE_VRMLFILE=1 ########### Interfaces export G4UI_BUILD_TERMINAL_SESSION=1 export G4UI_USE_TERMINAL=1 #export G4UI_BUILD_GAG_SESSION=1 #export G4UI_USE_GAG=1 export G4UI_BUILD_XM_SESSION=1 export G4UI_USE_XM=1 export G4UI_BUILD_WO_SESSION=1 export G4UI_USE_WO=1 #export G4UI_BUILD_XAW_SESSION=1 #export G4UI_USE_XAW=1 # # End GEANT4 Stuff #----------------------------------------------------------------------------- The funny thing is that it happens in a piece of code which is quite clean. G4Xt::getInstance gets called without arguments, and this triggers a call with dummy arguments. All goes well till the call to XtRealiseWidget, and this is where the program dies with zero length/width widget, that it is true, but it seems exactly what the program wanted... (G4Xt.cc:101). I would be glad if you could forward the problem to the right person. I also submitted the problem in the normal geant tracking system. Regards, Carminati