# Slicer failed build on win10

**URL:** https://discourse.slicer.org/t/slicer-failed-build-on-win10/10654
**Category:** Support
**Created:** [March 12, 2020, 7:31am UTC](https://discourse.slicer.org/t/slicer-failed-build-on-win10/10654 "2020-03-12T07:31:56Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Dyatsen](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@Dyatsen](https://discourse.slicer.org/u/Dyatsen)
#### Post date: [March 12, 2020, 7:31am UTC](https://discourse.slicer.org/t/slicer-failed-build-on-win10/10654/1 "2020-03-12T07:31:56Z")

</div>

Hello,

I followed the Build Instructions to build Slicer on Windows 10.  
CMake: 3.15.0  
Git: 2.25.1  
Qt: 5.10.0 64-bit (MSVC 2015)  
Visual Studio 2015  
After BUILD Slicer in Visual Studio, 42 errors occurred.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/9/a99bcde55d1f386236b1cf18c65c8bfdd2f6f4ac.png)

Could someone tell me how to solve these errors? Thanks!

---

<div class="post-metadata">

### Author: ![Dyatsen](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@Dyatsen](https://discourse.slicer.org/u/Dyatsen)
#### Post date: [March 12, 2020, 11:37am UTC](https://discourse.slicer.org/t/slicer-failed-build-on-win10/10654/2 "2020-03-12T11:37:22Z")

</div>

In addition, this is the second time I build the same Slicer.sln in S4D folder. At the first time, I remember there were not so many errors (I don’t remember exactly), and I was able to run slicer.exe in slicer-build folder. But when I built the RUN\_TESTS project, errors occurred. So I suppose I failed to build Slicer at the first time and built it for this second time. I don’t know whether this matters.

---

<div class="post-metadata">

### Author: ![Dyatsen](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@Dyatsen](https://discourse.slicer.org/u/Dyatsen)
#### Post date: [March 12, 2020, 4:10pm UTC](https://discourse.slicer.org/t/slicer-failed-build-on-win10/10654/3 "2020-03-12T16:10:23Z")

</div>

It seems that I click the build button instead of the rebuild button to make so many errors. I just rebuilt the slicersln. Although there are not so many errors, there is still one:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 171: error MSB6006: “cmd.exe” exited with code 1.

The executable Slicer.exe in Slicer-build was regenerated and it can run. But many files are failed to be loaded:

 ![20200313000455](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/c/dc36cbcffa52789b461607804e9d2ba542060c63.png)

Could someone tell me how to solve that error? Or does it mean that the build has been completed? Thanks!

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [March 12, 2020, 4:18pm UTC](https://discourse.slicer.org/t/slicer-failed-build-on-win10/10654/4 "2020-03-12T16:18:27Z")

</div>

The build error you see may just mean that a resource file cannot be overwritten, so it might be harmless. I usually ignore these kind of errors as long as there are no other ones, and SlicerApp-real.exe is generated.

The errors you see on startup is due to a problem with a certain revision, and it has been fixed since then. Please update your Slicer source code, build, and it will work.

---

<div class="post-metadata">

### Author: ![kejuhn](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kejuhn/32/10826_2.png) [@kejuhn](https://discourse.slicer.org/u/kejuhn)
#### Post date: [January 26, 2021, 6:24am UTC](https://discourse.slicer.org/t/slicer-failed-build-on-win10/10654/5 "2021-01-26T06:24:55Z")

</div>

How to ignore these errors ?

---

<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: [January 26, 2021, 1:12pm UTC](https://discourse.slicer.org/t/slicer-failed-build-on-win10/10654/6 "2021-01-26T13:12:19Z")

</div>

You can only ignore warnings (by simply not doing anything with them) but errors must be fixed because otherwise your build will be incomplete. Instead of reviving this old thread, I would recommend to create a new topic with whatever problem you have, unless it seems to be the same root cause of build error as this.
