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

**URL:** <https://root-forum.cern.ch/t/error-building-garfield-on-mac-using-latest-version-of-cmake/57978>\
**Category:** Garfield++\
**Created:** [January 26, 2024, 4:08pm UTC](https://root-forum.cern.ch/t/error-building-garfield-on-mac-using-latest-version-of-cmake/57978 "2024-01-26T16:08:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![miranda](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/34f0e0/32.png) [@miranda](https://root-forum.cern.ch/u/miranda)\
**Post date:** [January 26, 2024, 4:08pm UTC](https://root-forum.cern.ch/t/error-building-garfield-on-mac-using-latest-version-of-cmake/57978/1 "2024-01-26T16:08:33Z")

</div>

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

```auto
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?

```auto
-- 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)

```

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [January 26, 2024, 9:03pm UTC](https://root-forum.cern.ch/t/error-building-garfield-on-mac-using-latest-version-of-cmake/57978/2 "2024-01-26T21:03:42Z")

</div>

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](https://root-forum.cern.ch/t/using-root-6-30-02-with-cmake-vdt-connot-be-found/57484)) 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

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [February 9, 2024, 9:03pm UTC](https://root-forum.cern.ch/t/error-building-garfield-on-mac-using-latest-version-of-cmake/57978/3 "2024-02-09T21:03:49Z")

</div>

Closed on February 9, 2024, 9:03pm UTC

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