|Message: Re: How to use GNUmake build system when Geant4 was installed with CMake ?||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)|
Ah, ha! You are using an old version of HandsOn3 (we updated all of them for consistency with the 10.0 release before this year's round of tutorials).
Please see the Release Notes (http://geant4.cern.ch/support/ReleaseNotes4.10.0.html) for the Geant4 10.0 release for details on what needs to be migrated in the code, and see more below.
You may also choose to acquire an updated version of HandsOn3 from a recent tutorial (http://geant4.cern.ch/pastevents.shtml, e.g., http://geant4.slac.stanford.edu/SLACTutorial14/Agenda.html). This will allow you to avoid doing the migration yourself.
On Thu, 17 Jul 2014 17:11:21 GMT, Rassoul Jamshidzehi wrote:
> I'm using geant4.10.00.p02 on Linux Ubuntu 14.04 64bit, terminal . > I'm Writing "source /home/jamshidzehi/geant4.10.00.p02-install/share/Geant4-10.0.2/geant4make/geant4make.sh" and when i enter gmake the result is : > No command 'gmake' found, did you mean:[...]
That means that your Ubuntu installation doesn't use the name 'gmake' for the GNU Make executable; you should use |make|, as you did below. We should modify the instructions to reference the name 'make', with a comment that it is called 'gmake' on some systems.
> src/BeamTestDetectorConstruction.cc: In member function �void BeamTestDetectorConstruction::DefineMaterials()�: > src/BeamTestDetectorConstruction.cc:82:49: error: �g� was not declared in this scope > new G4Material("Beryllium", z=4., a=9.012182*g/mole, density=1.8480*g/cm3); > ^ > src/BeamTestDetectorConstruction.cc:82:49: note: suggested alternative: > In file included from /home/jamshidzehi/geant4.10.00.p02-install/include/Geant4/CLHEP/Units/PhysicalConstants.h:42:0,[...]
This, and all of your other errors, are one of the required migrations for Geant4 10.0. Specifically, the files G4SystemOfUnits.hh and G4PhysicalConstants.hh are no longer included automatically by globals.hh (we found that with some recent platforms, having all those constants initialized in multiple compilation units caused problems, and it also led to excessive dependencies).
In any .cc or .hh file where you make use of units (g/mole, cm3, kHz, etc.) you should add the line
In any .cc or .hh file where you make use of generic constants (pi, hbar, c_light, etc.) you should add the line
This should be the only change you need to make to get HandsOn3 to build. However, the resulting executable will only function as a single-threaded "sequential" job. To take advantage of the new multithreaded functionality in Geant4 10.0, you will need to make other changes to your application code, as described in the Release Notes.
-- Michael Kelsey
|Inline Depth:||Outline Depth:||Add message:|