# Build Error PythonQt Visual Studio 2015 Qt 5.9.2

**URL:** <https://discourse.slicer.org/t/build-error-pythonqt-visual-studio-2015-qt-5-9-2/1411>\
**Category:** Development\
**Tags:** qt\
**Created:** [November 8, 2017, 9:40pm UTC](https://discourse.slicer.org/t/build-error-pythonqt-visual-studio-2015-qt-5-9-2/1411 "2017-11-08T21:40:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [November 8, 2017, 10:46pm UTC](https://discourse.slicer.org/t/build-error-pythonqt-visual-studio-2015-qt-5-9-2/1411/4 "2017-11-08T22:46:46Z")

</div>

From an empty directory, if you configure using:

```auto
cmake -DQt5_DIR:PATH=... 

```

There is no need to manually set `Slicer_REQUIRED_QT_VERSION`.

If you are using cmake-gui or ccmake, just make sure you are **NOT** configuring a first time and then setting the `Qt5_DIR` variable.

You need to set the `Qt5_DIR` variable the first time you configure. That way all default values are properly initialized.

---

_[View the full topic](https://discourse.slicer.org/t/build-error-pythonqt-visual-studio-2015-qt-5-9-2/1411)._
