# Build examples and Qt does not work on VTK 9.0.0.rc2 and VTK 9.0.0.rc3 and Ubuntu 18.04

**URL:** https://discourse.vtk.org/t/build-examples-and-qt-does-not-work-on-vtk-9-0-0-rc2-and-vtk-9-0-0-rc3-and-ubuntu-18-04/3118
**Category:** Support
**Created:** [April 21, 2020, 8:21am UTC](https://discourse.vtk.org/t/build-examples-and-qt-does-not-work-on-vtk-9-0-0-rc2-and-vtk-9-0-0-rc3-and-ubuntu-18-04/3118 "2020-04-21T08:21:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![idhamari](https://discourse.vtk.org/user_avatar/discourse.vtk.org/idhamari/32/1180_2.png) [@idhamari](https://discourse.vtk.org/u/idhamari)
#### Post date: [April 21, 2020, 8:21am UTC](https://discourse.vtk.org/t/build-examples-and-qt-does-not-work-on-vtk-9-0-0-rc2-and-vtk-9-0-0-rc3-and-ubuntu-18-04/3118/1 "2020-04-21T08:21:56Z")

</div>

I thought I should post here as well.

source: [https://gitlab.kitware.com/vtk/vtk/-/issues/17862](https://gitlab.kitware.com/vtk/vtk/-/issues/17862)

I tried both VTK 9.0.0.rc2 and VTK 9.0.0.rc3 on my Ubuntu 18.04 using CMake 3.14.4 and nothing works. There are no examples e.g. Cone\* nor libQVTKWidgetPlugin.so after the build.  
I thought there may be a problem with my cmake or system. I build vtk 8.2.0 and everything works. Maybe 9.0 has a bug?

---

<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: [April 21, 2020, 8:43am UTC](https://discourse.vtk.org/t/build-examples-and-qt-does-not-work-on-vtk-9-0-0-rc2-and-vtk-9-0-0-rc3-and-ubuntu-18-04/3118/2 "2020-04-21T08:43:28Z")

</div>

I closed your issue as I’m quite sure this is more a misuse.

how do you build vtk ?

---

<div class="post-metadata">

### Author: ![idhamari](https://discourse.vtk.org/user_avatar/discourse.vtk.org/idhamari/32/1180_2.png) [@idhamari](https://discourse.vtk.org/u/idhamari)
#### Post date: [April 21, 2020, 9:04am UTC](https://discourse.vtk.org/t/build-examples-and-qt-does-not-work-on-vtk-9-0-0-rc2-and-vtk-9-0-0-rc3-and-ubuntu-18-04/3118/3 "2020-04-21T09:04:43Z")

</div>

Thanks for your quick reply.

> I’m quite sure this is more a misuse.

Probably but I did the same as I built 8.2.0: configuring using cmake-gui, enabling example and qt and use release. Is there something different between 8 and 9 configuration I am missing?

---

<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: [April 21, 2020, 10:08am UTC](https://discourse.vtk.org/t/build-examples-and-qt-does-not-work-on-vtk-9-0-0-rc2-and-vtk-9-0-0-rc3-and-ubuntu-18-04/3118/4 "2020-04-21T10:08:04Z")

</div>

Seems to work here

```
cd vtk
git checkout v9.0.0.rc3
git submodule update --init --recursive
cd ../
mkdir vtk_build
cmake -DCMAKE_BUILD_TYPE=Release -DVTK_GROUP_ENABLE_Qt=WANT -DVTK_BUILD_EXAMPLES=ON ../vtk
make -j
ctest -R Example
```

---

<div class="post-metadata">

### Author: ![idhamari](https://discourse.vtk.org/user_avatar/discourse.vtk.org/idhamari/32/1180_2.png) [@idhamari](https://discourse.vtk.org/u/idhamari)
#### Post date: [April 21, 2020, 11:58am UTC](https://discourse.vtk.org/t/build-examples-and-qt-does-not-work-on-vtk-9-0-0-rc2-and-vtk-9-0-0-rc3-and-ubuntu-18-04/3118/5 "2020-04-21T11:58:10Z")

</div>

Thanks for your reply. I see now that the examples are not in the bin anymore. Things seem to work now.
