# Problem with VTK examples not building

**URL:** <https://discourse.vtk.org/t/problem-with-vtk-examples-not-building/14273>\
**Category:** Support\
**Created:** [July 22, 2024, 3:06am UTC](https://discourse.vtk.org/t/problem-with-vtk-examples-not-building/14273 "2024-07-22T03:06:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gib\_Bogle](https://discourse.vtk.org/user_avatar/discourse.vtk.org/gib_bogle/32/740_2.png) [@Gib\_Bogle](https://discourse.vtk.org/u/Gib_Bogle)\
**Post date:** [July 22, 2024, 3:06am UTC](https://discourse.vtk.org/t/problem-with-vtk-examples-not-building/14273/1 "2024-07-22T03:06:47Z")

</div>

Hi all. After failing to build VTK 8.2.0 with Qt5.12.12, I decided to build it without Qt. This went without errors. But I am puzzled by one thing. I selected BUILD\_EXAMPLES, but as far as I can see no examples were built. Maybe I’m not looking in the right place.  
Which examples should I expect to get built, and where?  
Thanks,  
Gib

---

<div class="post-metadata">

**Author:** ![Leonid\_Dulman](https://discourse.vtk.org/user_avatar/discourse.vtk.org/leonid_dulman/32/1555_2.png) [@Leonid\_Dulman](https://discourse.vtk.org/u/Leonid_Dulman)\
**Post date:** [July 22, 2024, 5:23am UTC](https://discourse.vtk.org/t/problem-with-vtk-examples-not-building/14273/2 "2024-07-22T05:23:36Z")

</div>

VTK-9.3.0 excellent works with Qt-6.7.0 in Windows and Linux

---

<div class="post-metadata">

**Author:** ![Gib\_Bogle](https://discourse.vtk.org/user_avatar/discourse.vtk.org/gib_bogle/32/740_2.png) [@Gib\_Bogle](https://discourse.vtk.org/u/Gib_Bogle)\
**Post date:** [July 22, 2024, 6:59am UTC](https://discourse.vtk.org/t/problem-with-vtk-examples-not-building/14273/3 "2024-07-22T06:59:11Z")

</div>

Well that’s interesting. There presumably is a binary download for Qt-6.7.0.  
Could you tell me what cmake settings for Qt in the vtk build you used?  
Thanks.

---

<div class="post-metadata">

**Author:** ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)\
**Post date:** [July 22, 2024, 10:38am UTC](https://discourse.vtk.org/t/problem-with-vtk-examples-not-building/14273/4 "2024-07-22T10:38:34Z")

</div>

I split this post off the “Welcome to Discourse” post. Please ask new questions in new topics.

> [@Gib\_Bogle](#):
>
> I selected BUILD\_EXAMPLES

Do you mean `VTK_BUILD_EXAMPLES`? That’s the one you need to enable.

To build examples, use ctest:

`ctest -R VTKExamples`

Why ctest? It lets us test and report test results in VTK’s continuous integration builds to make sure the examples work.

---

<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:** [July 22, 2024, 1:52pm UTC](https://discourse.vtk.org/t/problem-with-vtk-examples-not-building/14273/5 "2024-07-22T13:52:43Z")

</div>

Hello,

You can get the latest Qt here: [Get and Install Qt | Qt 6.7](https://doc.qt.io/qt-6/get-and-install-qt.html). There are desktop installers for Linux, MacOS and Windows (presumably compiled with Visual Studio 2017-2022).

If you have an odd combination of OS, compiler and architecture, then I recommend building Qt from sources with the Conan ([Introduction — conan 2.5.0 documentation](https://docs.conan.io/2/introduction.html)) recipe from here: [qt - Conan 2.0: C and C++ Open Source Package Manager](https://conan.io/center/recipes/qt?version=6.7.1). Building Qt and its entire dependency tree with Conan (think of Java’s Maven) is relatively easy. All you need, in addition to have a developer toolset installed, is to install a recent version of Python and install Conan with a `pip install conan`.

best,

PC

---

<div class="post-metadata">

**Author:** ![Leonid\_Dulman](https://discourse.vtk.org/user_avatar/discourse.vtk.org/leonid_dulman/32/1555_2.png) [@Leonid\_Dulman](https://discourse.vtk.org/u/Leonid_Dulman)\
**Post date:** [July 23, 2024, 7:49am UTC](https://discourse.vtk.org/t/problem-with-vtk-examples-not-building/14273/6 "2024-07-23T07:49:54Z")

</div>

All you need is available from [https://r3fowwcolhrzycn2yzlzzw-on.drv.tw/AdaStudio/adastudio.html](https://r3fowwcolhrzycn2yzlzzw-on.drv.tw/AdaStudio/adastudio.html)

[https://r3fowwcolhrzycn2yzlzzw-on.drv.tw/AdaStudio/](https://r3fowwcolhrzycn2yzlzzw-on.drv.tw/AdaStudio/)adastudio.html

Prebuilt subdirectory
