Geant4 version: 10.6
operating system and version: windows 10
compiler vendor and version: windows visual studio 2019
I am trying to build and run example B1 by following the installation guide instructions. In windows visual studio there are two ways of getting to the command prompt which produce different results. If I go to tools>>command line>>developer command prompt then apply the two commands: > cd % HOMEPATH% \Geant4\geant4_10_06_p02\B1-build\Release | and > exampleB1.exe | nothing happens. The command line returns this:
If instead I go to tools>>visual studio command prompt then apply the same two commands, the command line returns four error messages on separate windows (not on the command line window) that are almost identical. The errors windows displays this:
The code execution cannot proceed because ________ was not found. Reinstalling the program may help with this problem.
The blank contains a file name. Each of the four error messages contain a different filename. The four file names are G4GMocren.dll , G4visHepRep.dll , G4Tree.dll , and G4RayTracer.dll . These files are contained in the directory %HOMEPATH%\Geant4\geant4_10_06_p02\geant4_10_06-build\BuildProducts\Release\bin . Normally I would try to reinstall the program however I already did this. After I posted my previous question here I decided to delete all of the Geant4 files, reinstall the program, and start over. So it is very frustrating that the suggested course of action to solve my current problem is what I just did to solve my previous problem. Especially when (for me) this takes several hours of time.
In my previous post I had trouble creating an executable file for example B1 because windows visual studio couldn’t find a few files it needed to create it. Some of these files were similar to the ones that windows visual studio can’t find now. G4Tree.lib, G4GMocren.lib, G4visHepRep.lib, and G4RayTracer.lib were among these.
Below are the commands I used to get to this point.after, I downloaded the geant4 files.
cmake -DCMAKE_INSTALL_PREFIX="%HOMEPATH%\Geant4\geant4_10_06_p02\geant4_10_06-install" “%HOMEPATH%\Geant4\geant4_10_06_p02\geant4_10_06”
cmake – build . – config Release
cmake – build . – config Release – target install
Xcopy %HOMEPATH%\Geant4\geant4_10_06_p02\geant4_10_06\examples\basic\B1 %HOMEPATH%\B1 /E/H
cmake -DGeant4_DIR="%HOMEPATH%\Geant4\geant4_10_06_p02\geant4_10_06-build" “%HOMEPATH%\B1” > cmake – build . – config Release
what do I do to execute example B1?
Any help would be greatly appreciated!