# vtk 9.0 build error

**URL:** https://discourse.vtk.org/t/vtk-9-0-build-error/4534
**Category:** Support
**Created:** [October 31, 2020, 2:52am UTC](https://discourse.vtk.org/t/vtk-9-0-build-error/4534 "2020-10-31T02:52:41Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Jone7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@Jone7](https://discourse.vtk.org/u/Jone7)
#### Post date: [October 31, 2020, 2:52am UTC](https://discourse.vtk.org/t/vtk-9-0-build-error/4534/1 "2020-10-31T02:52:41Z")

</div>

I tried to compile VTK 9.0 on VS2017 and combine QT for visualization, but I built many times, only to find that there was no QVTKWidgetPlugin.dll.  
I used CMake3.18.2 and QT 5.12.3.

---

<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: [October 31, 2020, 12:44pm UTC](https://discourse.vtk.org/t/vtk-9-0-build-error/4534/2 "2020-10-31T12:44:16Z")

</div>

The plugin was removed in Feb 2020 via [https://gitlab.kitware.com/vtk/vtk/commits/2f06700a831736143629f48bbc53137dc00acd5f](https://gitlab.kitware.com/vtk/vtk/commits/2f06700a831736143629f48bbc53137dc00acd5f). No changelog mentions the change though, sorry about that.

@mwestphal Do you remember why it was removed?

---

<div class="post-metadata">

### Author: ![Jone7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@Jone7](https://discourse.vtk.org/u/Jone7)
#### Post date: [October 31, 2020, 12:47pm UTC](https://discourse.vtk.org/t/vtk-9-0-build-error/4534/3 "2020-10-31T12:47:10Z")

</div>

How does VTK currently work with QT？

---

<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: [October 31, 2020, 4:52pm UTC](https://discourse.vtk.org/t/vtk-9-0-build-error/4534/4 "2020-10-31T16:52:32Z")

</div>

The plugin’s main use is for use by Qt Designer. Other than that, it’s just normal C++ libraries.

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [November 1, 2020, 2:13pm UTC](https://discourse.vtk.org/t/vtk-9-0-build-error/4534/5 "2020-11-01T14:13:42Z")

</div>

Complementing Ben’s answer, that DLL is just to allow you design user interfaces in Qt Designer/Creator with the VTK canvas as an additional Qt widget. Without that, you have to add it programmatically. You still have VTK available for Qt-based programs.

---

<div class="post-metadata">

### Author: ![Jone7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@Jone7](https://discourse.vtk.org/u/Jone7)
#### Post date: [November 2, 2020, 6:49am UTC](https://discourse.vtk.org/t/vtk-9-0-build-error/4534/6 "2020-11-02T06:49:25Z")

</div>

Are there any tutorials for using VTK with QT? Forgive me if I am new to this field. I have found some, but I am still confused.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [November 2, 2020, 8:59am UTC](https://discourse.vtk.org/t/vtk-9-0-build-error/4534/7 "2020-11-02T08:59:27Z")

</div>

This was a QT4 only plugin and afaik, it was not working and could not be built anymore on master when I removed it.

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [November 2, 2020, 9:59pm UTC](https://discourse.vtk.org/t/vtk-9-0-build-error/4534/8 "2020-11-02T21:59:18Z")

</div>

Hello, Jone,

Please, take a look at this code: [https://github.com/PauloCarvalhoRJ/cursoVTKgeo/tree/master/aulas\_3dias/HelloVTK](https://github.com/PauloCarvalhoRJ/cursoVTKgeo/tree/master/aulas_3dias/HelloVTK) . It is the most basic VTK-Qt application that demonstrates how to integrate them. It has a separate window class that you can design in Qt Creator/Design. The comments are in Portuguese because it is for a course I taught in Brazil, but you can paste them into Google Translator to get them in English.

take care,

Paulo

---

<div class="post-metadata">

### Author: ![Jone7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@Jone7](https://discourse.vtk.org/u/Jone7)
#### Post date: [November 3, 2020, 12:27am UTC](https://discourse.vtk.org/t/vtk-9-0-build-error/4534/10 "2020-11-03T00:27:14Z")

</div>

Hi, Paulo,

Thank you very much for your help, I already know how to do it !
