|Message: Re: compiling and execution of Example||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)|
Since you are using Geant 4.9.5, are you referring to modifying the GNUmakefile that is generated by CMake?
It's simpler to rerun the cmake configuration (cmake-gui is very user friendly), with a new specified "code" directory (wherever the new source is located), any arbitrary build directory you wish, and whatever install directory you wish.
Then go into the new build directory and do a make install from there.
Keep in mind that the CMakeLists.txt files are hierarchical, so for example you will find under the main examples directory's CMakeLists.txt file:
>#---Adding examples subdirectories explicitly------- >cmake_minimum_required(VERSION 2.6 FATAL_ERROR) >add_subdirectory(advanced) >add_subdirectory(basic) >add_subdirectory(extended) >add_subdirectory(novice)
Under the basic directory you then find for CmakeLists.txt:
>#---Adding examples subdirectories explicitly ># and a custom target to for building all basic examples ------------- >cmake_minimum_required(VERSION 2.6 FATAL_ERROR) >add_subdirectory(B1) >add_subdirectory(B2) >add_subdirectory(B3) >add_subdirectory(B4) >add_custom_target(basic DEPENDS B1 B2 B3 B4)
Finally under B2 (for which the whole directory you have moved, correct?) you will find:
>#---Adding example B2 subdirectories explicitly ># and a custom target to for building all example B2 options ---------- >cmake_minimum_required(VERSION 2.6 FATAL_ERROR) >add_subdirectory(B2a) >add_subdirectory(B2b) >add_custom_target(B2 DEPENDS exampleB2a exampleB2b)
For cmake-gui to properly compile with just the B2 directory, you should need to add
>cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
To your upper-most CMakeLists.txt file.
On Fri, 20 Jul 2012 15:50:41 GMT, ljub wrote:
> Hy. I would like to know how I can compile example (let's say B1) if I moved it out of it's original directory (let's say to home/geant4/ directory)? Probably the problem came from change of paths...i changed the G4INSTALL in GNUmakefile, but probably I should change it in few more places? > ...
|Inline Depth:||Outline Depth:||Add message:|