Message: Re: Dificulty in building example B1 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Dificulty in building example B1 

Forum: Installation and Configuration
Re: Question Dificulty in building example B1 (Robert Nnaemeka)
Re: Question Re: Dificulty in building example B1 (Ben Morgan)
Re: More Re: Dificulty in building example B1 (Robert Nnaemeka)
Date: 03 Nov, 2016
From: Robert Nnaemeka <Robert Nnaemeka>

Hi Ben, I have succeed in adding the environmental path of all the geant data and that solves it. However, I ran into another problem. If i type ./example1.exe the example one runs but the init_vis.mac fail to execute and this makes me to lose the OpenGl visualization.

ERROR: Can not open a macro file <init_vis.mac>. Set macro path with "/control/macroPath" if needed.

After typing /run/initialize and then type /control/execute run1.mac, run1.mac fails to execute and I get this error:

ERROR: Can not open a macro file <run1.mac>. Set macro path with "/control/macroPath" if needed.

However if after initailization and I type /run/beamOn, it runs but no visualization. In summary, it runs but fail to execute any file that has .mac. How can I overcome it?On Thu, 03 Nov 2016 17:13:55 GMT, Robert Nnaemeka wrote:

> Hi Ben Thanks a lot. I decided to reinstall Geant4 and all went well
> again. I compiled example B1 and all went well too. However, when I runs
> .\exampleB1.exe, I get the following exception.
> Available UI session types: [ Win32, GAG, csh ]
> -------- WWWW ------- G4Exception-START -------- WWWW -------
> *** ExceptionHandler is not defined ***
> *** G4Exception : UI0002
>       issued by : G4UIExecutive::G4UIExecutive()
> Specified session type is not build in your system,
> or no session type is specified.
> A fallback session type is used.
> *** This is just a warning message. ***
> -------- WWWW -------- G4Exception-END --------- WWWW -------
> -------- EEEE ------- G4Exception-START -------- EEEE -------
> *** G4Exception : PART70000
>       issued by : G4NuclideTable
> G4ENSDFSTATEDATA environment variable must be set
> *** Fatal Exception *** core dump ***
> -------- EEEE -------- G4Exception-END --------- EEEE -------
> *** G4Exception: Aborting execution ***
> I automatically installed the datasets when I was installing. I assumed
> that all the environmental variables were automatically set. Also, I had
> followed the instruction on how to add the Geant4 dll files to the
> environmental variable. Why is it that the environmental variable of
> G4ENSDFSTATEDATA has not been set? How can I set it. I followed the
> instructions given in the geant4 website on how to install Geant on
> windows using VS 2015 command prompt. Also, do I ignore those warnings
> or is there anything I should do. Thanks a lot.On Thu, 03 Nov 2016
> 12:39:34 GMT, Ben Morgan wrote:
> > On Thu, 03 Nov 2016 00:10:43 GMT, Robert Nnaemeka wrote:
> > > Good day all. I successfully installed Geant4 in window 10 using Microsoft visual studio developer command prompt. But after successfully building example B1 and the executable output exampleB1.exe I get the errors telling me I do not have some Geant4 dll files in my computer and asking me to reinstall it. I decided to add the path to the Geant4 dll files directory to the environmental. After doing this, I could no longer even build the example B1. It happens that when I runs
> > >  "cmake --build . --config RelWithDebInfo" error is displayed saying that it cannot see some included files the error output is shown below. How can I solve it?
> > 
> > Could you provide a little more detail on the sequence of operations
> > please? What changes to the environment did you make, and did exampleB1
> > run (i.e. no rebuild) after this change?
> > 
> > On the failing build of exampleB1, does the CMakeCache.txt file in the
> > build directory contain references to Geant4, and specifically paths to
> > where you installed it?
> > 
> > Can you run the build again with higher verbosity, i.e. something like:
> > 
> > cmake --build . --config ReleWithDebInfo -- /verbosity:diagnostic
> > 
> > and check the output for the actual compile commands issued, in
> > particular whether there are include paths ( /I path )that refer to your
> > Geant4 installation.

 Add Message Add Message
to: "Re: Dificulty in building example B1"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]