|Message: Re: out-of-source build.||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)|
On Sun, 17 Mar 2019 14:36:42 GMT, Jincai wrote:
> Hi, I have intalled Geant4 successfully before and have used it for some > time. However, I didn't set the multithreading option to On when I > installed Geant4 then. Now I want to reset the cmake option and use the > following commands: > > cmake -DCMAKE_INSTALL_PREFIX=/home/jcren/G4/geant4.10.02.p02 > -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON > -DGEANT4_USE_GDML=ON -DGEANT4_USE_QT=ON -DGEANT4_INSTALL_DATA=ON > -DGEANT4_BUILD_MULTITHREADED=ON .. > > Then I got errors: > > -- Geant4 requires an out-of-source build. > -- Please remove these files from /home/jcren/G4/geant4.10.02.p02 first: > -- CMakeCache.txt > -- CMakeFiles > -- Once these files are removed, create a separate directory > -- and run CMake from there > CMake Error at CMakeLists.txt:19 (message): > in-source build detected > > -- Configuring incomplete, errors occurred! > > Can anyone tell me how to fix this error? Thank you. Best wishes, > Jincai. >
Make sure that your source directory, build directory and install directories are different directories. Judging from the error cmake is trying to use /home/jcren/G4/geant4.10.02.p02 as the source directory but is finding build products in that folder. (You also appear to be using /home/jcren/G4/geant4.10.02.p02 as the install directory as well.)