B1 and B3 are running but B2 not(?)

After some struggle I could finally get the B1 example running:

but when I try to run B2a or B2b, I receive this:

Visualization setting

/control/execute vis.mac

Macro file for the visualization setting for the initialization phase

of the B2 example when running in interactive mode

Use these open statements to open selected visualization

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

as can be seen fully here:

When I run it in the terminal via

$ …\B2-build\B2a>Release\exampleB2a run1.mac

it stops at

G4WT8 > trackID: 17 chamberNb: 0Edep: 1.42473 keV Position: -0.00637923 -0.0023015 -1.59094 m
G4WT8 > trackID: 16 chamberNb: 0Edep: 1.41126 keV Position: -0.0061486 -0.00221196 -1.62008 m
G4WT8 > trackID: 15 chamberNb: 0Edep: 1.27947 keV Position: -0.00599054 -0.00216001 -1.64156 m
G4WT8 > >>> Event: 0
G4WT8 > 84 hits stored in this event
0 events have been kept for refreshing and/or reviewing.
“/vis/reviewKeptEvents” to review them one by one.
“/vis/enable”, then “/vis/viewer/flush” or “/vis/viewer/rebuild” to see them accumulated.
***** COMMAND NOT FOUND </B2/det/setTargetMaterial G4_WATER> *****

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

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

Graphics systems deleted.
Visualization Manager deleting…
Deleting G4ThreadLocalSingletons for type class G4GeometryTolerance …
Deleting G4ThreadLocalSingletons for type class G4ProcessTable …
Deleting G4ThreadLocalSingletons for type class G4PhysicsListHelper …
Deleting G4ThreadLocalSingletons for type class G4GlobalMagFieldMessenger …
Deleting G4ThreadLocalSingletons for type class G4LossTableManager …
Deleting G4ThreadLocalSingletons for type class G4CrossSectionDataSetRegistry …
Deleting G4ThreadLocalSingletons for type class G4HadronicInteractionRegistry …
Deleting G4ThreadLocalSingletons for type class G4CascadeParameters …
ThreadPool destroyed

When I built it again via

cmake --build . --config RelWithDebInfo

I got this while building:

(…)
C:\geant4\B2\B2a\src\EventAction.cc(64,75): warning C4267: ‘=’: conversion from ‘size_t’ to ‘G4int’, possible loss of data [C:\geant4\B2-build\B2a\exampleB2a.vcxproj]
PrimaryGeneratorAction.cc
RunAction.cc
TrackerHit.cc
TrackerSD.cc
C:\geant4\B2\B2a\src\TrackerSD.cc(100,48): warning C4267: ‘initializing’: conversion from ‘size_t’ to ‘G4int’, possible loss of data [C:\geant4\B2-build\B2a\exampleB2a.vcxproj]
Generating Code…
LINK : fatal error LNK1104: cannot open file ‘C:\geant4\geant4-build\BuildProducts\RelWithDebInfo\lib\G4Tree.lib’ [C:\geant4\B2-build\B2a\exampleB2a.vcxproj]
Building Custom Rule C:/geant4/B2/B2b/CMakeLists.txt
exampleB2b.cc
(…)

The missing file is available in

geant4-build/BuildProducts/Release/lib

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