# Could not find the VTK package with the following required components:GuiSupportQt, ViewsQt

**URL:** https://discourse.vtk.org/t/could-not-find-the-vtk-package-with-the-following-required-components-guisupportqt-viewsqt/8252
**Category:** Support
**Created:** [April 10, 2022, 12:06pm UTC](https://discourse.vtk.org/t/could-not-find-the-vtk-package-with-the-following-required-components-guisupportqt-viewsqt/8252 "2022-04-10T12:06:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mnekkach](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/e19b73/32.png) [@mnekkach](https://discourse.vtk.org/u/mnekkach)
#### Post date: [April 10, 2022, 12:06pm UTC](https://discourse.vtk.org/t/could-not-find-the-vtk-package-with-the-following-required-components-guisupportqt-viewsqt/8252/1 "2022-04-10T12:06:01Z")

</div>

Hi,

I just compile VTK 9.1.0 on RedHat version 8.3 and I try to compile the SimpleView example.

I have this message error but I don’t know how I can solve it.

> CMake Warning at CMakeLists.txt:4 (find\_package):  
> Found package configuration file:  
> home/user/Downloads/VTK-9.1.0/build/lib64/cmake/vtk-9.1/vtk-config.cmake  
> but it set VTK\_FOUND to FALSE so package “VTK” is considered to be NOT FOUND.  
> Reason given by package:  
> Could not find the VTK package with the following required components:  
> GUISupportQt, ViewsQt.

Qt version 5.15.2 is installed on my computer.

Has anyone encountered this problem before ?

Thank you for your help.

---

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://discourse.vtk.org/user_avatar/discourse.vtk.org/freya_the_goddess/32/4942_2.png) [@Freya\_the\_Goddess](https://discourse.vtk.org/u/Freya_the_Goddess)
#### Post date: [April 10, 2022, 9:52pm UTC](https://discourse.vtk.org/t/could-not-find-the-vtk-package-with-the-following-required-components-guisupportqt-viewsqt/8252/2 "2022-04-10T21:52:21Z")

</div>

Set your environment variable:  
`export VTK_DIR=/VTK-installation-folder/lib/cmake/vtk-9.1`

make sure that it is right by typing:  
`echo $VTK_DIR`

Hope this helps

---

<div class="post-metadata">

### Author: ![mnekkach](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/e19b73/32.png) [@mnekkach](https://discourse.vtk.org/u/mnekkach)
#### Post date: [April 11, 2022, 7:49pm UTC](https://discourse.vtk.org/t/could-not-find-the-vtk-package-with-the-following-required-components-guisupportqt-viewsqt/8252/3 "2022-04-11T19:49:38Z")

</div>

VTK\_DIR was good, I solved my problem by set VTK\_MODULE\_ENABLE\_VTK\_GuiSupportQt and VTK\_MODULE\_ENABLE\_VTK\_ViewsQt options to “YES” when I ran configure in CMake

---

<div class="post-metadata">

### Author: ![ZeleiShao](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zeleishao/32/5793_2.png) [@ZeleiShao](https://discourse.vtk.org/u/ZeleiShao)
#### Post date: [September 16, 2022, 3:23pm UTC](https://discourse.vtk.org/t/could-not-find-the-vtk-package-with-the-following-required-components-guisupportqt-viewsqt/8252/4 "2022-09-16T15:23:43Z")

</div>

excuse me, I wander how to set VTK\_MODULE\_ENABLE\_VTK\_GuiSupportQt ?

---

<div class="post-metadata">

### Author: ![vinzent](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vinzent/32/6672_2.png) [@vinzent](https://discourse.vtk.org/u/vinzent)
#### Post date: [March 2, 2023, 1:54pm UTC](https://discourse.vtk.org/t/could-not-find-the-vtk-package-with-the-following-required-components-guisupportqt-viewsqt/8252/5 "2023-03-02T13:54:50Z")

</div>

1. as per _README.md_ go to your VTK build directory, from there open `ccmake ../path/to/vtk/source`.
2. now the VTK\_MODULE\_ENABLE\_VTK\_GUISupportQt variable is hidden by default; hit the _T_ key to see all variables
3. then you can search for variables by pressing _/_ and entering a sub-string of your variabel; so maybe _/GUISupportQt_ (beware: the search is case sensitive)
4. select the variable and hit enter until it shows _“YES”_

Then _C_ for configure → _G_ for generate and then you can re-build your VTK with your usual `make` command
