# Building slicer with system QT

**URL:** <https://discourse.slicer.org/t/building-slicer-with-system-qt/2710>\
**Category:** Development\
**Tags:** build\
**Created:** [April 26, 2018, 6:05pm UTC](https://discourse.slicer.org/t/building-slicer-with-system-qt/2710 "2018-04-26T18:05:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [April 26, 2018, 7:46pm UTC](https://discourse.slicer.org/t/building-slicer-with-system-qt/2710/3 "2018-04-26T19:46:02Z")

</div>

Slicer developers [recommend](https://discourse.slicer.org/t/slicer-nightly-does-not-build-with-qt4-vtk7/2631/4) building against Qt5.

On my host running Arch Linux, the following configuration builds nicely :

> cmake -DSlicer\_VTK\_VERSION\_MAJOR:INT=9 -DQt5\_DIR:PATH=/usr/lib/cmake/Qt5 -DSlicer\_USE\_PYTHONQT\_WITH\_OPENSSL:BOOL=0 -DBUILD\_TESTING:BOOL=0 -DCMAKE\_BUILD\_TYPE:STRING=Release …/Slicer

You should adapt Qt5\_DIR parameter to your distribution.

If you really want Qt4, I guess you’ll be having a hard time and few help. In any case, Qt4 support is scheduled to be deprecated, as far as I understood.

---

_[View the full topic](https://discourse.slicer.org/t/building-slicer-with-system-qt/2710)._
