# Build all Header files of ITK into python.

**URL:** <https://discourse.itk.org/t/build-all-header-files-of-itk-into-python/1228>\
**Category:** Engineering\
**Tags:** cmake, python\
**Created:** [August 26, 2018, 8:42pm UTC](https://discourse.itk.org/t/build-all-header-files-of-itk-into-python/1228 "2018-08-26T20:42:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tirupathi\_Rao\_N](https://discourse.itk.org/letter_avatar_proxy/v4/letter/t/dc4da7/32.png) [@Tirupathi\_Rao\_N](https://discourse.itk.org/u/Tirupathi_Rao_N)\
**Post date:** [August 26, 2018, 8:42pm UTC](https://discourse.itk.org/t/build-all-header-files-of-itk-into-python/1228/1 "2018-08-26T20:42:43Z")

</div>

Hello Everyone,  
I want to use ITK,VTK(ITKVTKGLUE) in my python code, but there is no such filter in ITK and VTK python. So I started building up all header files of ITK and VTK into python, while building it I’m having errors at castxml. I don’t know much about this castxml, any help would be appreciated solve errors. I need all header files to be build into python.so I can work on full itk, vtk.I’m using latest versions of cmake and visual studio…  
Thanks team for creating such a wonderful package.

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [August 27, 2018, 2:15am UTC](https://discourse.itk.org/t/build-all-header-files-of-itk-into-python/1228/2 "2018-08-27T02:15:10Z")

</div>

Hello @Tirupathi_Rao_N,

Welcome to the community!

We will be building an `itk-vtkglue` Python package with classes that bridge ITK and VTK after the ITK 5.0 Beta 1 release, coming in a week or two, from [this repository](https://github.com/InsightSoftwareConsortium/ITKVtkGlue). If you have a Python build of VTK 8.1.1 or and and ITK Git `master` , you could try building it by configuring with CMake, and setting `ITK_DIR` and `VTK_DIR`. Otherwise, your help testing the beta packages would be appreciated!

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![Tirupathi\_Rao\_N](https://discourse.itk.org/letter_avatar_proxy/v4/letter/t/dc4da7/32.png) [@Tirupathi\_Rao\_N](https://discourse.itk.org/u/Tirupathi_Rao_N)\
**Post date:** [August 27, 2018, 7:03am UTC](https://discourse.itk.org/t/build-all-header-files-of-itk-into-python/1228/3 "2018-08-27T07:03:49Z")

</div>

Thank you for reply @matt.mccormick for a period time up to your release I try to work on building files and small programs execution. After beta release I will use beta packages,happy to test packages and help you guys…  
I’m using alpha release but I cant find any ItkToVtk filter.

---

<div class="post-metadata">

**Author:** ![Tirupathi\_Rao\_N](https://discourse.itk.org/letter_avatar_proxy/v4/letter/t/dc4da7/32.png) [@Tirupathi\_Rao\_N](https://discourse.itk.org/u/Tirupathi_Rao_N)\
**Post date:** [September 18, 2018, 10:38am UTC](https://discourse.itk.org/t/build-all-header-files-of-itk-into-python/1228/4 "2018-09-18T10:38:07Z")

</div>

@matt.mccormick Very happy to see beta release of itk 5 .Thank you all for your effort for making itk package.  
Can itk-vtk glue package binary files are built for windows too because up to now all I see is linux binary files.

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [September 18, 2018, 10:14pm UTC](https://discourse.itk.org/t/build-all-header-files-of-itk-into-python/1228/5 "2018-09-18T22:14:09Z")

</div>

@Tirupathi_Rao_N yes, thanks for the request – I will work on the Windows `itk-vtkglue` packages. The ITK 5 beta release was a big step forward towards this – it is built with C++11.

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [November 17, 2018, 3:30pm UTC](https://discourse.itk.org/t/build-all-header-files-of-itk-into-python/1228/6 "2018-11-17T15:30:52Z")

</div>

Windows `itk-vtkglue` binary packages are now available for Python 3.5 and 3.6. Install with

```auto
python -m pip install itk-vtkglue

```

These contain the filters to [convert to and from `itk.Image` and `vtkImageData`](https://blog.kitware.com/how-to-connect-itk-and-vtk-pipelines/). They also now contain the convenient [`itk.ViewImage`](https://discourse.itk.org/t/viewimage-in-python/951) class by @phcerdan ☀.

---

<div class="post-metadata">

**Author:** ![phcerdan](https://discourse.itk.org/user_avatar/discourse.itk.org/phcerdan/32/286_2.png) [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Post date:** [November 18, 2018, 12:37am UTC](https://discourse.itk.org/t/build-all-header-files-of-itk-into-python/1228/7 "2018-11-18T00:37:03Z")

</div>

Ole! This is great @matt.mccormick! ✨
