# Root still cannot find VDT on Mac? (Building Garfield++)

**URL:** <https://root-forum.cern.ch/t/root-still-cannot-find-vdt-on-mac-building-garfield/58146>\
**Category:** Garfield++\
**Created:** [February 12, 2024, 10:09pm UTC](https://root-forum.cern.ch/t/root-still-cannot-find-vdt-on-mac-building-garfield/58146 "2024-02-12T22:09:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shinsuke\_Ota](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/shinsuke_ota/32/35674_2.png) [@Shinsuke\_Ota](https://root-forum.cern.ch/u/Shinsuke_Ota)\
**Post date:** [February 12, 2024, 10:09pm UTC](https://root-forum.cern.ch/t/root-still-cannot-find-vdt-on-mac-building-garfield/58146/1 "2024-02-12T22:09:09Z")

</div>

I am trying to compile garfield++ on Mac and faced the same problem reported in the existing (and closed) topic “Error building Garfield++ on Mac using latest version of CMake”. (I cannot put the link to topic since I am a new user.)  
The message I received from the cmake is the same as one in the previous report except for the root and cmake version.  
This is my first time to build garfield++ on Mac. Do I have to update, refresh or reinstall something?

ROOT Version : 6.30.04  
Plathome : macOS 14.3.1 (Sonoma)  
Compiler : AppleClang 15.0.0.15000100 + gfortran 13.2.0  
cmake version 3.28.3

```auto
$ cmake -DCMAKE_INSTALL_PREFIX=$HOME/local/ ~/repos/garfieldpp
-- 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: /opt/homebrew/bin/gfortran - skipped
-- The installation folder is set to its default value /Users/ota/local
-- Install path: /Users/ota/local
-- If you want to change this path call cmake -DCMAKE_INSTALL_PREFIX=my_install_path ...
CMake Error at /opt/homebrew/Cellar/cmake/3.28.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Vdt (missing: VDT_INCLUDE_DIR VDT_LIBRARY)
Call Stack (most recent call first):
  /opt/homebrew/Cellar/cmake/3.28.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /opt/homebrew/Cellar/root/6.30.04/share/root/cmake/modules/FindVdt.cmake:63 (find_package_handle_standard_args)
  /opt/homebrew/Cellar/cmake/3.28.3/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /opt/homebrew/share/root/cmake/ROOTConfig.cmake:156 (find_dependency)
  CMakeLists.txt:71 (find_package)

```

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [February 13, 2024, 9:54am UTC](https://root-forum.cern.ch/t/root-still-cannot-find-vdt-on-mac-building-garfield/58146/2 "2024-02-13T09:54:10Z")

</div>

It’s fixed for 6.30.06, but is not yet released. See [Fix `find_package(root)` with Homebrew. Fixes #14113 by bellenot · Pull Request #14474 · root-project/root · GitHub](https://github.com/root-project/root/pull/14474)

So in the meantime, I suggest editing the CMake file as suggested in the link above (last comments).

---

<div class="post-metadata">

**Author:** ![Shinsuke\_Ota](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/shinsuke_ota/32/35674_2.png) [@Shinsuke\_Ota](https://root-forum.cern.ch/u/Shinsuke_Ota)\
**Post date:** [February 14, 2024, 2:42am UTC](https://root-forum.cern.ch/t/root-still-cannot-find-vdt-on-mac-building-garfield/58146/3 "2024-02-14T02:42:11Z")

</div>

Thank you very much for your prompt reply. This information solved the problem. I could compile the garfield++.

---

<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 28, 2024, 2:42am UTC](https://root-forum.cern.ch/t/root-still-cannot-find-vdt-on-mac-building-garfield/58146/4 "2024-02-28T02:42:53Z")

</div>

Closed on February 28, 2024, 2:42am UTC

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