|Message: Re: Dificulty in building example B1||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
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. >