# VTK + QT CMake errors

**URL:** https://discourse.vtk.org/t/vtk-qt-cmake-errors/1166
**Category:** Support
**Created:** [June 18, 2019, 7:29am UTC](https://discourse.vtk.org/t/vtk-qt-cmake-errors/1166 "2019-06-18T07:29:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ChristopherWaters](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/d78d45/32.png) [@ChristopherWaters](https://discourse.vtk.org/u/ChristopherWaters)
#### Post date: [June 18, 2019, 7:29am UTC](https://discourse.vtk.org/t/vtk-qt-cmake-errors/1166/1 "2019-06-18T07:29:15Z")

</div>

Built vtk and qt together with no errors twice. When creating my own project I get this ironic error:  
 ![error](https://discourse.vtk.org/uploads/default/original/1X/2872e963d7f53d069a62367d536f26120f8337d2.png)

When trying to use a vtkQt example, CMake can never find vtk, even when correctly pointing to its dir with: cmake -DVTK\_DIR:PATH=/home/me/vtk\_build

More information: Win10 x64 machine, using mcvs2017 generator in CMake, system paths set for qt and vtk, latest version of CMake, vtk, and Qt.

My CMake file:

 ![cmakefile](https://discourse.vtk.org/uploads/default/original/1X/80f256f88615f19ea14b7fdee29b9b2f9551a375.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: [June 18, 2019, 11:54am UTC](https://discourse.vtk.org/t/vtk-qt-cmake-errors/1166/2 "2019-06-18T11:54:03Z")

</div>

The “64bit” suffix makes me think that you’re trying to build your project in 32bit mode. Could you confirm what generator and toolchain you’re selecting in `cmake-gui` and/or the command line?
