# I can't build Slicer master branch in Windows10 via VisualStudio2019(toolset v142),Qt5.15.2

**URL:** https://discourse.slicer.org/t/i-cant-build-slicer-master-branch-in-windows10-via-visualstudio2019-toolset-v142-qt5-15-2/19829
**Category:** Support
**Tags:** build, qt
**Created:** [September 23, 2021, 5:57pm UTC](https://discourse.slicer.org/t/i-cant-build-slicer-master-branch-in-windows10-via-visualstudio2019-toolset-v142-qt5-15-2/19829 "2021-09-23T17:57:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kookoo9999](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kookoo9999/32/12394_2.png) [@kookoo9999](https://discourse.slicer.org/u/kookoo9999)
#### Post date: [September 23, 2021, 5:57pm UTC](https://discourse.slicer.org/t/i-cant-build-slicer-master-branch-in-windows10-via-visualstudio2019-toolset-v142-qt5-15-2/19829/1 "2021-09-23T17:57:13Z")

</div>

@jamesobutler@lassoan  
I tried to build a different release in a different environment, but I failed every time, so I’m trying to build the current branch.  
I just tried to build Slicer master branch in Windows 10 via VisualStudio2019 (toolset v142),Qt5.15.2 ,CMake 3.21.3 but I failed.  
I cleaned the build tree every time I tried. but I can’t find Slicer.exe in C:\D\S4R\Slicer\_build.  
Every time I try LibArchive.vcxproj, SimpleITK.vcxproj, and Slicer.vcxproj fail to build.

And I tried to build it at CMD, but it failed, and there were more errors at this time.  
I also ran the development setup via Git-Bash-Here listed in the build-instruction when using or not using the CMake-GUI.  
Do I have to install ITK, VTK, Python before build and then use it to build?

Lastly, I want to do AR programming using IGT, PlusToolKit, and Slicer, so I want to succeed in building and run Slicer.exe.  
Please advice and help me…

 ![](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/e/fe01573b5773c03ca416a687f451dc8e3b8f65ec.png)  
 ![](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/1/211ab880f725997cac73f49a4013183e6fc8c936.png)  
 ![](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/7/876544852abbf74fcf44e80a7afe3ae2ff2a83c6.png)  
 ![](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/0/60ed330def094de582c426426c7fd0c9d6131292.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/e/3e6f2299f6f0f5be75a5927e566af20fa3018a47.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/8/a8e335f862f547183b4d985749be04d3bc29a272.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/6/466f583b2ba8dc768553d5bf0acc8b531cef931c.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/6/b64cb8352135d37059b7ee8bd95d432bc5e2c4a6.png)

---

<div class="post-metadata">

### Author: ![kookoo9999](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kookoo9999/32/12394_2.png) [@kookoo9999](https://discourse.slicer.org/u/kookoo9999)
#### Post date: [September 24, 2021, 8:41am UTC](https://discourse.slicer.org/t/i-cant-build-slicer-master-branch-in-windows10-via-visualstudio2019-toolset-v142-qt5-15-2/19829/2 "2021-09-24T08:41:42Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/7/47c534e4018478f5fafdfdc6253ae2288d018d54.png)  
this is message when I configure in CMake-GUI .  
You can configuration Full log.txt in [here](https://github.com/kookoo9999/Slicer/blob/main/CMake_Configure_Message.txt) and after Generate Log in [here](https://github.com/kookoo9999/Slicer/blob/main/CMake_Generate_Message.txt)

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [September 26, 2021, 3:47am UTC](https://discourse.slicer.org/t/i-cant-build-slicer-master-branch-in-windows10-via-visualstudio2019-toolset-v142-qt5-15-2/19829/3 "2021-09-26T03:47:28Z")

</div>

The messages in the last picture are just warnings. You can safely ignore them.

The build error and solution (workaround) is discussed [here](https://github.com/Slicer/Slicer/issues/5498).
