Root_check_out_of_source_build


ROOT Version: v6.10.08
Platform: Mac OS_10.13.6
Compiler: Not Provided


So I download root_v6.10.08.source.tar.gz and unzip it inside /usr/local/.
Then I make a build directory : sudo mkdir build
cd build
Then I do this:
cmake …/root
And I get this error:
`-- ROOT default compression algorithm: zlib
– Found a Mac OS X System 10.13
– Found a 64bit system
– Found LLVM compiler collection
– ROOT Platform: macosx
– ROOT Architecture: macosx64
– Build Type: RelWithDebInfo
– Compiler Flags: -std=c++11 -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++
CMake Error at cmake/modules/RootNewMacros.cmake:1069 (message):

ROOT should be built as an out of source build, to keep the source
directory clean. Please create a extra build directory and run the command
‘cmake <path_to_source_dir>’ in this newly created directory. You have
also to delete the directory CMakeFiles and the file CMakeCache.txt in the
source directory. Otherwise cmake will complain even if you run it from an
out-of-source directory.
Call Stack (most recent call first):
CMakeLists.txt:152 (ROOT_CHECK_OUT_OF_SOURCE_BUILD)`

– Configuring incomplete, errors occurred!

I have no idea where I’m going wrong. I thought I was doing everything by the book by following the README. Any help please?

Hi @avinay,

I am a bit confused what could happened,
can you please retry to download somewhere in a home user directory and try to build from scratch?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.