i am trying to install Garfiel++, but when I run cmake i get this error output:
>cmake $GARFIELD_HOME
The CXX compiler identification is GNU 9.3.0
-- The Fortran compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Install path: /opt/applications/garfield/install
-- If you want to change this path call cmake -DCMAKE_INSTALL_PREFIX=my_install_path ...
CMake Error at CMakeLists.txt:71 (find_package):
By not providing "FindROOT.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "ROOT", but
CMake did not find one.
Could not find a package configuration file provided by "ROOT" (requested
version 6.0) with any of the following names:
ROOTConfig.cmake
root-config.cmake
Add the installation prefix of "ROOT" to CMAKE_PREFIX_PATH or set
"ROOT_DIR" to a directory containing one of the above files. If "ROOT"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/opt/applications/garfield/CMakeFiles/CMakeOutput.log".
ROOTSYS is set when I launch the command and my root version is 6.14, I also tried with another root version that I have installed, which is v.6.22, but I get the same output.
I also tried to follow the suggestion from the log, so I set ROOT_DIR to a directroy containing ROOTConfig.cmake:
export ROOT_DIR=/opt/applications/root_src/installdir/cmake
but when I run cmake again I get exactly the same error
thanks in advance
Lorenzo