# Compiling PV superbuild with cmd VS2017

**URL:** https://discourse.paraview.org/t/compiling-pv-superbuild-with-cmd-vs2017/1757
**Category:** Development
**Created:** [May 3, 2019, 9:18am UTC](https://discourse.paraview.org/t/compiling-pv-superbuild-with-cmd-vs2017/1757 "2019-05-03T09:18:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Toorall](https://discourse.paraview.org/user_avatar/discourse.paraview.org/toorall/32/1992_2.png) [@Toorall](https://discourse.paraview.org/u/Toorall)
#### Post date: [May 3, 2019, 9:18am UTC](https://discourse.paraview.org/t/compiling-pv-superbuild-with-cmd-vs2017/1757/1 "2019-05-03T09:18:02Z")

</div>

Hello everyone!

I try to compile PV superbuild master branch from x64 Command prompt for VS2017.  
It seems to compile successfully but I cannot find paraview.exe in build directory.

to build it I used:  
cmake -G Ninja -DCMAKE\_BUILD\_TYPE=Release …/paraview-superbuild  
Ninja

Should I change something?  
Thank you in advance

---

<div class="post-metadata">

### Author: ![michal.wozniak](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/848f3c/32.png) [@michal.wozniak](https://discourse.paraview.org/u/michal.wozniak)
#### Post date: [May 3, 2019, 3:08pm UTC](https://discourse.paraview.org/t/compiling-pv-superbuild-with-cmd-vs2017/1757/2 "2019-05-03T15:08:16Z")

</div>

Hi,

add `-DENABLE_qt5=ON`

---

<div class="post-metadata">

### Author: ![Toorall](https://discourse.paraview.org/user_avatar/discourse.paraview.org/toorall/32/1992_2.png) [@Toorall](https://discourse.paraview.org/u/Toorall)
#### Post date: [May 4, 2019, 5:58am UTC](https://discourse.paraview.org/t/compiling-pv-superbuild-with-cmd-vs2017/1757/3 "2019-05-04T05:58:18Z")

</div>

Thank you for your help, for some reason Ninja gets stuck after downloading qt5, when I rerun ninja, it starts downloading it again, with my internet connection it is suffering, is there any tag to use downloaded packages instead of re-downloading them?

---

<div class="post-metadata">

### Author: ![michal.wozniak](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/848f3c/32.png) [@michal.wozniak](https://discourse.paraview.org/u/michal.wozniak)
#### Post date: [May 4, 2019, 4:06pm UTC](https://discourse.paraview.org/t/compiling-pv-superbuild-with-cmd-vs2017/1757/4 "2019-05-04T16:06:30Z")

</div>

You can download the qt binaries yourself from qt, install them and then add -DUSE\_SYSTEM\_qt5:BOOL=ON

---

<div class="post-metadata">

### Author: ![Toorall](https://discourse.paraview.org/user_avatar/discourse.paraview.org/toorall/32/1992_2.png) [@Toorall](https://discourse.paraview.org/u/Toorall)
#### Post date: [May 17, 2019, 12:18pm UTC](https://discourse.paraview.org/t/compiling-pv-superbuild-with-cmd-vs2017/1757/5 "2019-05-17T12:18:16Z")

</div>

Hello Michal, Sorry for delay with feedback, it worked, but for some reason I have encountered many problems, didn’t have enough time to solve them fast.

Finally I did it, the solution was:

1. Downloaded and installed qt 5.9 ([https://download.qt.io/official\_releases/qt/5.9/5.9.0/qt-opensource-windows-x86-5.9.0.exe](https://download.qt.io/official_releases/qt/5.9/5.9.0/qt-opensource-windows-x86-5.9.0.exe))  
During installation selected: “msvc2017 64 bit” and “Sources”  
(I am not sure if I needed Sources, selected it, just in case)
2. Added environmental variable to path: C:\Qt\Qt5.9.0\5.9\msvc2017\_64\bin
3. cmake -G Ninja -DCMAKE\_BUILD\_TYPE=Release -DENABLE\_qt5=ON -DUSE\_SYSTEM\_qt5=ON …\paraview-superbuild
4. Ninja

Thank you again for your support!
