# module configuration error

**URL:** https://discourse.vtk.org/t/module-configuration-error/8185
**Category:** Support
**Created:** [March 31, 2022, 12:15pm UTC](https://discourse.vtk.org/t/module-configuration-error/8185 "2022-03-31T12:15:13Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![djduke](https://discourse.vtk.org/user_avatar/discourse.vtk.org/djduke/32/2174_2.png) [@djduke](https://discourse.vtk.org/u/djduke)
#### Post date: [March 31, 2022, 12:15pm UTC](https://discourse.vtk.org/t/module-configuration-error/8185/1 "2022-03-31T12:15:13Z")

</div>

After resolving misunderstandings about the module system , I made progress on building  
my own module. However I have an error message that I’m struggling to understand.  
When I run ccmake and configure I get

VTK::Interaction dependency is missing for Wrapping::Wrappable.

I’ve created my module by starting from the Wrappable example module.

Now, my vtk.module file includes VTK::Interaction and when I built VTK-9.1  
I selected interaction components,  
any suggestion on how to resolve the error?  
[Icouldn’t spot how to attach a file to an issue r I’d include  
my module .module and CMakeCache.

I’m on OSX 11.6

thanks,  
David Duke

---

<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: [March 31, 2022, 5:23pm UTC](https://discourse.vtk.org/t/module-configuration-error/8185/2 "2022-03-31T17:23:58Z")

</div>

The `CMakeCache.txt` probably wouldn’t be very informative, but could you post the contents of your `vtk.module` file (quoted with ```` ````) and the relevant pieces of your `CMakeLists.txt` files?

Perhaps the problem is just a typo. There is no `VTK::Interaction` module, you might have meant `VTK::InteractionStyle` or `VTK::InteractionWidgets`.

---

<div class="post-metadata">

### Author: ![djduke](https://discourse.vtk.org/user_avatar/discourse.vtk.org/djduke/32/2174_2.png) [@djduke](https://discourse.vtk.org/u/djduke)
#### Post date: [March 31, 2022, 6:09pm UTC](https://discourse.vtk.org/t/module-configuration-error/8185/3 "2022-03-31T18:09:11Z")

</div>

Using VTK::InteractionStyle and VTK::InteractionWidgets makes no difference.

I’ve attached the vtk.module to the email, if you need the contents inlined and quote please let me know.  
AQlso included are the CMakeLists from the module root and the module-subdir.  
If its easier I’ll just tarball the module and send that.

thanks  
David

[CMakeLists-9.1.txt](https://discourse.vtk.org/uploads/short-url/gIppk7ag3lEAinHjj2zzVhM1FAS.txt) (17.8 KB)

[vtk.module](https://discourse.vtk.org/uploads/short-url/77DkzAx166wKVieWFcT2k4QPNqT.module) (660 Bytes)

[CMakeListsWrapping.txt](https://discourse.vtk.org/uploads/short-url/cPCdr6WofZMBB1GdzgtZ8foNEaT.txt) (2.22 KB)

[CMakeListsWrapping-module.txt](https://discourse.vtk.org/uploads/short-url/c2LNOLb3cjwg1aYjYic8V9LGoVt.txt) (651 Bytes)

---

<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: [March 31, 2022, 6:22pm UTC](https://discourse.vtk.org/t/module-configuration-error/8185/4 "2022-03-31T18:22:45Z")

</div>

> [@djduke](#):
>
> Using VTK::InteractionStyle and VTK::InteractionWidgets makes no difference.

As in, you removed the non-existent `VTK::Interaction` module and added `VTK::InteractionStyle` and `VTK::InteractionWidgets` in its place? Again, I just want to be sure the problem isn’t being caused by a trivial mistake before I dig in any deeper.

---

<div class="post-metadata">

### Author: ![djduke](https://discourse.vtk.org/user_avatar/discourse.vtk.org/djduke/32/2174_2.png) [@djduke](https://discourse.vtk.org/u/djduke)
#### Post date: [March 31, 2022, 6:29pm UTC](https://discourse.vtk.org/t/module-configuration-error/8185/5 "2022-03-31T18:29:48Z")

</div>

Correct, I removed VTK::Interaction and then added the other two with the same result.

---

<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: [March 31, 2022, 6:36pm UTC](https://discourse.vtk.org/t/module-configuration-error/8185/6 "2022-03-31T18:36:12Z")

</div>

After removing `VTK::Interaction`, you are still seeing the following error when you configure with cmake?

```auto
VTK::Interaction dependency is missing for Wrapping::Wrappable.

```

I apologize if I sound like a broken record.

---

<div class="post-metadata">

### Author: ![djduke](https://discourse.vtk.org/user_avatar/discourse.vtk.org/djduke/32/2174_2.png) [@djduke](https://discourse.vtk.org/u/djduke)
#### Post date: [March 31, 2022, 7:11pm UTC](https://discourse.vtk.org/t/module-configuration-error/8185/7 "2022-03-31T19:11:39Z")

</div>

Yes withVTK::INTERACTION removed and replaced with theother two I get the same result:

CMake Error at /usr/local/lib/cmake/vtk-9.1/vtkModule.cmake:2518 (message):

The VTK::Interaction dependency is missing for Wrapping::Wrappable.

Call Stack (most recent call first):

CMakeLists.txt:57 (vtk\_module\_build)

Configuring incomplete, errors occurred!

See also “/Users/scsdjd/Visualisation/Wrap-9/CMakeFiles/CMakeOutput.log”.

See also “/Users/scsdjd/Visualisation/Wrap-9/CMakeFiles/CMakeError.log”.

---

<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: [March 31, 2022, 7:42pm UTC](https://discourse.vtk.org/t/module-configuration-error/8185/8 "2022-03-31T19:42:50Z")

</div>

Maybe you only removed `VTK::Interaction` from the `DEPENDS` section and not from `PRIVATE_DEPENDS`. In any case, the only reason for cmake to complain that it’s a missing dependency is if you list it as a dependency somewhere…

---

<div class="post-metadata">

### Author: ![djduke](https://discourse.vtk.org/user_avatar/discourse.vtk.org/djduke/32/2174_2.png) [@djduke](https://discourse.vtk.org/u/djduke)
#### Post date: [April 1, 2022, 9:11am UTC](https://discourse.vtk.org/t/module-configuration-error/8185/9 "2022-04-01T09:11:46Z")

</div>

Face-palm! Thank you for spotting that, a different problem has popped up but I think Ican resolve then rty again with  
the dependencies triple-checked.

regards,  
David
