# proper linking with MetaIO with metaTypes

**URL:** https://discourse.vtk.org/t/proper-linking-with-metaio-with-metatypes/3021
**Category:** Support
**Created:** [April 10, 2020, 3:59pm UTC](https://discourse.vtk.org/t/proper-linking-with-metaio-with-metatypes/3021 "2020-04-10T15:59:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kayarre](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kayarre/32/808_2.png) [@kayarre](https://discourse.vtk.org/u/kayarre)
#### Post date: [April 10, 2020, 3:59pm UTC](https://discourse.vtk.org/t/proper-linking-with-metaio-with-metatypes/3021/1 "2020-04-10T15:59:01Z")

</div>

I am updating a vtk based code work with the latest vtk. I am running into this issue.

```auto
[67%] Building CXX object VolumeProcessing/CMakeFiles/vtkVolumeProcessing.dir/vtkOOCMetaImageReader.cxx.o
In file included from /Users/sansomk/build/ACVD/ACVD/VolumeProcessing/vtkOOCMetaImageReader.cxx:27:
/Users/sansomk/build/VTK/install/include/vtk-9.0/vtkmetaio/metaTypes.h:12:10: fatal error: 
      'localMetaConfiguration.h' file not found
#include "localMetaConfiguration.h"

```

the top level CMakeLists.txt includes the metaio library via

```auto
find_package(VTK REQUIRED COMPONENTS 
            CommonCore
            CommonDataModel
            RenderingCore
            CommonSystem
            IOImport
            IOExport
            IOImage
            IOGeometry
            IOPLY
            FiltersSources
            InteractionStyle
            FiltersHybrid
            RenderingLabel
            IOMINC
            FiltersModeling
            FiltersGeneral
            metaio
)

```

the local CMakeLists.txt has

```auto
target_link_libraries(vtkVolumeProcessing ${VTK_LIBRARIES})

```

and I added

```auto
vtk_module_autoinit(
  TARGETS vtkVolumeProcessing
  MODULES ${VTK_LIBRARIES}
  )

```

which I thought was supposed to take care of the includes?

I am sure there is something simple I am missing but I am at a loss here.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [April 10, 2020, 4:11pm UTC](https://discourse.vtk.org/t/proper-linking-with-metaio-with-metatypes/3021/2 "2020-04-10T16:11:32Z")

</div>

Seems I missed installing that header. In the meantime, you can copy it from your source/build tree to the install tree manually.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [April 10, 2020, 4:16pm UTC](https://discourse.vtk.org/t/proper-linking-with-metaio-with-metatypes/3021/3 "2020-04-10T16:16:40Z")

</div>

[https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/6716](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/6716) will be in 9.0

---

<div class="post-metadata">

### Author: ![kayarre](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kayarre/32/808_2.png) [@kayarre](https://discourse.vtk.org/u/kayarre)
#### Post date: [April 10, 2020, 4:20pm UTC](https://discourse.vtk.org/t/proper-linking-with-metaio-with-metatypes/3021/4 "2020-04-10T16:20:31Z")

</div>

Yay I found bug! thanks @ben.boeckel  
Feels good to contribute.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [April 10, 2020, 4:34pm UTC](https://discourse.vtk.org/t/proper-linking-with-metaio-with-metatypes/3021/5 "2020-04-10T16:34:02Z")

</div>

MetaIO upstream (another Kitware team) had actually already fixed it, just needed to pull it into VTK 🙂 .
