# Build Slicer Error 

**URL:** <https://discourse.slicer.org/t/build-slicer-error/7470>\
**Category:** Support\
**Created:** [July 8, 2019, 5:24pm UTC](https://discourse.slicer.org/t/build-slicer-error/7470 "2019-07-08T17:24:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohsen\_Taheri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mohsen_taheri/32/4108_2.png) [@Mohsen\_Taheri](https://discourse.slicer.org/u/Mohsen_Taheri)\
**Post date:** [July 8, 2019, 5:24pm UTC](https://discourse.slicer.org/t/build-slicer-error/7470/1 "2019-07-08T17:24:35Z")

</div>

Hi,  
I follow the buillding instruction step by step but when I want to build slicer I get this error (Severity Code Description Project File Line Suppression State Error EndUpdateResourceC /D/S4D/Slicer-build/Slicer.exe [C:\D\S4D\Slicer-build\Applications\SlicerApp\SlicerUpdateLauncherIcon.vcxproj] Slicer C:\D\S4D\CUSTOMBUILD 1)

 ![111](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/6/c65b506c95968f43c6e09e9f19999a9b6dff0510.jpeg)  
also my Qt version is 5.10.0 and my compiler is Visual Studio 15 2017 Win64  
I appriciate if anyone could help me

Operating system: Windows 10  
Slicer version: 4.11.0

---

<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:** [July 8, 2019, 7:47pm UTC](https://discourse.slicer.org/t/build-slicer-error/7470/2 "2019-07-08T19:47:26Z")

</div>

Hi,

It is hard to tell what the problem only looking at the screenshot you shared.

Here are few suggestions to get a better understanding of the problem:

- Scroll up to see if there is an other message with more details
- Close Visual Studio, and open the solution file `C:\D\S4D\Slicer-build\Slicer.sln`, then re-run the build. This should give more details.

---

<div class="post-metadata">

**Author:** ![Mohsen\_Taheri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mohsen_taheri/32/4108_2.png) [@Mohsen\_Taheri](https://discourse.slicer.org/u/Mohsen_Taheri)\
**Post date:** [July 8, 2019, 10:12pm UTC](https://discourse.slicer.org/t/build-slicer-error/7470/3 "2019-07-08T22:12:22Z")

</div>

I tried to build `C:\D\S4D\Slicer-build\Slicer.sln` and there is a simillar error  
CUSTOMBUILD : error EndUpdateResourceC: /D/S4D/Slicer-build/Slicer.exe

---

<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:** [July 8, 2019, 10:37pm UTC](https://discourse.slicer.org/t/build-slicer-error/7470/4 "2019-07-08T22:37:16Z")

</div>

The command that is failing seems to be the following:

> <https://github.com/Slicer/Slicer/blob/e4e93ea8d5ae0de35d6d154d5a437bf44c855a27/CMake/SlicerMacroBuildApplication.cmake#L713-L718>

By clicking on the “Output” tab you should be able to get more details. The idea would be to try to re-run the command in a regular terminal.

Probably something like this on your workstation:

```auto
C:\D\S4D\CTKResEdit\bin\CTKResEdit.exe --update-resource-ico C:\D\S4D\Slicer-build\bin\Debug\SlicerApp-real.exe IDI_ICON1 C:\D\S4\Applications\SlicerApp\Resources\Slicer.ico

```

By having a better understanding of the problem, we should be able to release an updated version of the [binaries](https://github.com/jcfr/ResEdit/releases) or update Slicer build system to always build one expected to work on the developer system.

---

<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:** [July 9, 2019, 12:15am UTC](https://discourse.slicer.org/t/build-slicer-error/7470/5 "2019-07-09T00:15:27Z")

</div>

This error happens when you have Slicer.exe running (and during Slicer build, CTKResEdit wants to update the icon in Slicer.exe). Just close Slicer.exe and the error will go away. If you cannot find the running instance then restart your computer or use a utility such as LockHunter to find and close it.
