Error building Garfield++ on Mac using latest version of CMake

I am new to using Garfield, and want to simulate interactions in a small detector being used for an R&D project. I installed CMake 3.28.1, gfortran 13.2., gsl libraries, python 3.11.7, and root 6.30 all using homebrew. When I go to build Garfield using

cmake $GARFIELD_HOME

I get this output which ends in an error. Do I have a version mismatch of some sort? Or is there something else I am missing?

-- The CXX compiler identification is AppleClang 15.0.0.15000100
-- The Fortran compiler identification is GNU 13.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking whether Fortran compiler has -isysroot
-- Checking whether Fortran compiler has -isysroot - yes
-- Checking whether Fortran compiler supports OSX deployment target flag
-- Checking whether Fortran compiler supports OSX deployment target flag - yes
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/local/bin/gfortran - skipped
-- Install path: /Users/mirandaelkins/garfield/install
-- If you want to change this path call cmake -DCMAKE_INSTALL_PREFIX=my_install_path ...
-- Found nlohmann_json: /usr/local/share/cmake/nlohmann_json/nlohmann_jsonConfig.cmake (found suitable version "3.11.3", minimum required is "3.11.3") 
CMake Error at /usr/local/Cellar/cmake/3.28.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Vdt (missing: VDT_INCLUDE_DIR VDT_LIBRARY)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.28.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/root/6.30.02/share/root/cmake/modules/FindVdt.cmake:63 (find_package_handle_standard_args)
  /usr/local/Cellar/cmake/3.28.1/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /usr/local/share/root/cmake/ROOTConfig.cmake:132 (find_dependency)
  CMakeLists.txt:71 (find_package)

Hello Miranda,

Thanks for the post and welcome to the ROOT Community!

I am sorry you experienced this issue. It has been reported in the past (Using Root 6-30-02 with CMake: Vdt connot be found) and has already been fixed upstream. The fix will be part of the forthcoming ROOT 6.30.04, which will be hopefully available next week.

Cheers,
D

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