# Building VTK-9.2.5 on macOS

**URL:** https://discourse.vtk.org/t/building-vtk-9-2-5-on-macos/14665
**Category:** Support
**Tags:** code
**Created:** [October 5, 2024, 7:26am UTC](https://discourse.vtk.org/t/building-vtk-9-2-5-on-macos/14665 "2024-10-05T07:26:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![constifer](https://discourse.vtk.org/user_avatar/discourse.vtk.org/constifer/32/8799_2.png) [@constifer](https://discourse.vtk.org/u/constifer)
#### Post date: [October 5, 2024, 7:26am UTC](https://discourse.vtk.org/t/building-vtk-9-2-5-on-macos/14665/1 "2024-10-05T07:26:36Z")

</div>

The dreaded day is finally upon me where we swap from an installation that was working to apple silicon (i’m not happy about it either, i was happy before!).  
It seems that 9.2.5 is the last version of VTK we can use as a dependency to [clitk](https://github.com/benpresles/vv). Building it with shared libs and qt5 (also needed by clitk) is raising these errors [here](https://gitlab.com/-/snippets/3754523).  
I found this post [here](https://gitlab.kitware.com/vtk/vtk/-/issues/19232) that lead to this post [here](https://github.com/CGNS/CGNS/pull/706) that i tried out. However this resulted in this error stack [here](https://gitlab.com/-/snippets/3754524).

I’m kinda outside of my depth with macos hence why i’m here to ask if anyone has seen this or has a possible solution for these.

In context of the os, using macOS Sequioa 15.0.1 and Xcode 16.0 (16A242d).

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [October 5, 2024, 1:17pm UTC](https://discourse.vtk.org/t/building-vtk-9-2-5-on-macos/14665/2 "2024-10-05T13:17:31Z")

</div>

If any third-party libraries like hdf5 don’t build, then try turning them off in the configuration. This will also require `TESTING` to be disabled, since many of the tests use hdf files.

```cmake
VTK_BUILD_TESTING=OFF
VTK_MODULE_ENABLE_VTK_hdf5=NO
VTK_MODULE_ENABLE_VTK_netcdf=NO

```

Chances are that you don’t need hdf in your application.

---

<div class="post-metadata">

### Author: ![constifer](https://discourse.vtk.org/user_avatar/discourse.vtk.org/constifer/32/8799_2.png) [@constifer](https://discourse.vtk.org/u/constifer)
#### Post date: [October 5, 2024, 2:20pm UTC](https://discourse.vtk.org/t/building-vtk-9-2-5-on-macos/14665/3 "2024-10-05T14:20:21Z")

</div>

You’re absolutely right @dgobbi, this fixed it right up.

Thanks.
