Build Slicer Error

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)


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

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.

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

The command that is failing seems to be the following:

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:

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 or update Slicer build system to always build one expected to work on the developer system.

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.

1 Like