# VTK\_Group\_Qt cmake error

**URL:** https://discourse.vtk.org/t/vtk-group-qt-cmake-error/2826
**Category:** Support
**Created:** [March 16, 2020, 9:27am UTC](https://discourse.vtk.org/t/vtk-group-qt-cmake-error/2826 "2020-03-16T09:27:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Tracy\_Nk](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@Tracy\_Nk](https://discourse.vtk.org/u/Tracy_Nk)
#### Post date: [March 16, 2020, 9:27am UTC](https://discourse.vtk.org/t/vtk-group-qt-cmake-error/2826/1 "2020-03-16T09:27:24Z")

</div>

I’m trying to configure VTK\_Group\_Qt for my VTK build on cmake however i’m experiencing the following error (i have tried putting the directory of my Qt download but it doesnt make a difference):

 ![image](https://discourse.vtk.org/uploads/default/original/2X/5/52924f560c2ffe328e2138a90d0dad11d39d66cd.png)

Qt directory: C:\Qt\5.9.9\msvc2017\_64\lib\cmake

My cmake version: 3.16.0-rc3

my Qt creator information:  
 ![image](https://discourse.vtk.org/uploads/default/original/2X/e/e5d0e5a6c41456e818fd4885b23b2393dfc25983.png)

---

<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: [March 16, 2020, 12:47pm UTC](https://discourse.vtk.org/t/vtk-group-qt-cmake-error/2826/2 "2020-03-16T12:47:32Z")

</div>

`Qt5_DIR` needs to point to the directory of the `Qt5Config.cmake`. This should be `C:\Qt\5.9.9\msvc2017_64\lib\cmake\Qt5` for your installation.

---

<div class="post-metadata">

### Author: ![Tracy\_Nk](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@Tracy\_Nk](https://discourse.vtk.org/u/Tracy_Nk)
#### Post date: [March 16, 2020, 2:07pm UTC](https://discourse.vtk.org/t/vtk-group-qt-cmake-error/2826/3 "2020-03-16T14:07:07Z")

</div>

perfect, thank you!

---

<div class="post-metadata">

### Author: ![Tracy\_Nk](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@Tracy\_Nk](https://discourse.vtk.org/u/Tracy_Nk)
#### Post date: [March 17, 2020, 2:35am UTC](https://discourse.vtk.org/t/vtk-group-qt-cmake-error/2826/4 "2020-03-17T02:35:18Z")

</div>

after trying to build these modules on visual studio i’m now getting the following errors:

 ![image](https://discourse.vtk.org/uploads/default/original/2X/b/bf2ef08b703ffcd008e97dca7c31587225359f07.png)  
which is confusing because my laptop system is x64 as is the Qt compiler i picked.

system info:  
 ![image](https://discourse.vtk.org/uploads/default/original/2X/9/95952a0bd84c46492e369bdfdf0a4eecd04359eb.png)

---

<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: [March 17, 2020, 2:46pm UTC](https://discourse.vtk.org/t/vtk-group-qt-cmake-error/2826/5 "2020-03-17T14:46:50Z")

</div>

You need to select either the “Win64” variant of the generator in the GUI dropdown or set the toolset to “x64” to get 64-bit compilation with Visual Studio in CMake. VS 2019 and newer generators default to the host architecture, but older ones default to 32-bit.
