# Failed to find the required module VTK::ImagingMorphological

**URL:** https://discourse.paraview.org/t/failed-to-find-the-required-module-vtk-imagingmorphological/14152
**Category:** Development
**Created:** [March 14, 2024, 8:55am UTC](https://discourse.paraview.org/t/failed-to-find-the-required-module-vtk-imagingmorphological/14152 "2024-03-14T08:55:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Thomas\_Theussl](https://discourse.paraview.org/user_avatar/discourse.paraview.org/thomas_theussl/32/4471_2.png) [@Thomas\_Theussl](https://discourse.paraview.org/u/Thomas_Theussl)
#### Post date: [March 14, 2024, 8:55am UTC](https://discourse.paraview.org/t/failed-to-find-the-required-module-vtk-imagingmorphological/14152/1 "2024-03-14T08:55:17Z")

</div>

I am trying to use vtkImageOpenClose3D in a ParaView plugin, I have added `VTK::ImagingMorphological` in vtk.module under DEPENDS, but I get the cmake error

```auto
[cmake] Failed to find the required module VTK::ImagingMorphological.

```

I can see the module in the paraView 5.11.2 source tree in `VTK/Imaging/Morphological`. I usually do this this way, what am I doing wrong in this case?

Thomas

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 14, 2024, 3:18pm UTC](https://discourse.paraview.org/t/failed-to-find-the-required-module-vtk-imagingmorphological/14152/2 "2024-03-14T15:18:25Z")

</div>

Hi @Thomas_Theussl

This VTK module is not enabled in ParaView build because nothing in ParaView depends on it.  
If you build ParaView yourself, you can enable it using the cmake var: `VTK_MODULE_ENABLE_VTK_ImagingMorphological`.

Best,

---

<div class="post-metadata">

### Author: ![Thomas\_Theussl](https://discourse.paraview.org/user_avatar/discourse.paraview.org/thomas_theussl/32/4471_2.png) [@Thomas\_Theussl](https://discourse.paraview.org/u/Thomas_Theussl)
#### Post date: [March 14, 2024, 3:35pm UTC](https://discourse.paraview.org/t/failed-to-find-the-required-module-vtk-imagingmorphological/14152/3 "2024-03-14T15:35:53Z")

</div>

thank you! I will try that

it’s funny though, I checked my CMakeCache.txt and it said `VTK_MODULE_ENABLE_VTK_ImagingMorphological:STRING=DEFAULT` as do all the other modules I use, how do I find out what DEFAULT means?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 14, 2024, 3:38pm UTC](https://discourse.paraview.org/t/failed-to-find-the-required-module-vtk-imagingmorphological/14152/4 "2024-03-14T15:38:01Z")

</div>

> [@Thomas\_Theussl](#):
>
> how do I find out what DEFAULT means?

It depends on what ParaView needs, which is automatic, there is no such feedback from CMake directly.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [April 1, 2024, 8:54pm UTC](https://discourse.paraview.org/t/failed-to-find-the-required-module-vtk-imagingmorphological/14152/5 "2024-04-01T20:54:28Z")

</div>

`DEFAULT` is, for VTK modules in a ParaView build, `DONT_WANT`. For ParaView client and “core” (non-incubator) modules, `PARAVIEW_BUILD_ALL_MODULES=ON` will treat `DEFAULT` as `WANT`. Note that any non-`DEFAULT` group settings that modules belong to apply before (ultimately) falling back on `PARAVIEW_BUILD_ALL_MODULES`.
