Hi everyone,
I’m trying to install ROOT from source but I’m getting this error while compiling with cmake
[ 1%] Built target gitinfotxt
[ 1%] Built target move_header_core_imt
CMake Error at /Users/abedaaljarrah/root_build/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-configure-Release.cmake:49 (message):
Command failed: 1
'/Applications/CMake.app/Contents/bin/cmake' '-DCMAKE_INSTALL_PREFIX:PATH=/Users/abedaaljarrah/root_build/builtins/xrootd/XROOTD-prefix' '-DCMAKE_PREFIX_PATH:STRING=' '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_C_COMPILER=/usr/bin/cc' '-DCMAKE_C_FLAGS= -m64 -pipe -W -Wall -fsigned-char -fno-common -Qunused-arguments -pthread' '-DCMAKE_CXX_COMPILER=/usr/bin/c++' '-DCMAKE_CXX_FLAGS= -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++ ' '-DCMAKE_OSX_SYSROOT=' '-DCMAKE_OSX_DEPLOYMENT_TARGET=' '-DENABLE_PYTHON=OFF' '-DENABLE_CEPH=OFF' '-DXRDCL_LIB_ONLY=ON' '-DWITH_OPENSSL3=TRUE' '-DCMAKE_INSTALL_RPATH:STRING=/Users/abedaaljarrah/root_build/builtins/xrootd/XROOTD-prefix/lib' '-DOPENSSL_ROOT_DIR=' '-GUnix Makefiles' '-S' '/Users/abedaaljarrah/root_build/builtins/xrootd/XROOTD-prefix/src/XROOTD' '-B' '/Users/abedaaljarrah/root_build/builtins/xrootd/XROOTD-prefix/src/XROOTD-build'
See also
/Users/abedaaljarrah/root_build/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-configure-*.log
gmake[2]: *** [builtins/xrootd/CMakeFiles/XROOTD.dir/build.make:92: builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-configure] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:12589: builtins/xrootd/CMakeFiles/XROOTD.dir/all] Error 2
-- DAVIX build command succeeded. See also /Users/abedaaljarrah/root_build/builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-build-*.log
[ 1%] Performing install step for 'DAVIX'
-- DAVIX install command succeeded. See also /Users/abedaaljarrah/root_build/builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-install-*.log
[ 1%] Completed 'DAVIX'
[ 1%] Built target DAVIX
gmake: *** [Makefile:156: all] Error 2
abedaaljarrah@Abedas-MacBook-Pro root_build % cat /Users/abedaaljarrah/root_build/VDT-prefix/src/VDT-stamp/VDT-configure-*.log
CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
abedaaljarrah@Abedas-MacBook-Pro root_build % cat /Users/abedaaljarrah/root_build/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-configure-*.log
CMake Error at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
I checked the version of cmake and I have the lateset updated version
abedaaljarrah@Abedas-MacBook-Pro ~ % cmake --version
cmake version 4.0.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
this is what I did to install ROOT:
1- git clone --branch latest-stable --depth=1 GitHub - root-project/root: The official repository for ROOT: analyzing, storing and visualizing big data, scientifically root_src
2- mkdir root_build root_install
cd root_build
3- cmake -DCMAKE_INSTALL_PREFIX=…/root_install -Dbuiltin_glew=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5 …/root_src
4- cmake --build . – install -j$(sysctl -n hw.ncpu)
_ROOT Version: last release
_Platform: macOS Sequoia 15.3
Compiler: Not Provided