Message: Re: out-of-source build. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: out-of-source build. 

Forum: Multithreading
Re: Question out-of-source build. (Jincai)
Date: Mar 18, 12:15
From: Delvan Neville <Delvan Neville>

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
> 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.)


 Add Message Add Message
to: "Re: out-of-source build."

 Subscribe Subscribe

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