3D slicer Windows 10 Build Fail (only SimpleITK project)

Good catch. The sync of svn maintenance branch with GitHub is not automated. Should be good now.

1 Like

For reference, I also just updated the ReleaseProcess#Backport_commit_into_release_branch guide

I deleted the SimpleITK folders from my C:/S4D directory, fetched the latest from Slicer master-410 branch, configured the cmake project again in Cmake GUI and built again. SimpleITK began building correctly and the project has now officially built successfully. :tada:

@jcfr https://github.com/Slicer/Slicer/commit/ebce522e0cb99a5e312800c6f01bc49e237942da Works well in the master-410 branch. I did notice that the comment for the tag line is incorrect. Technically

"e52c9ab047b514ef9584fef475e0ed416ad8fa4a" # slicer-v1.2.0-2019-02-27-dc5c1a1 (based of v1.1.0 tag)

should be

"e52c9ab047b514ef9584fef475e0ed416ad8fa4a" # slicer-v1.1.0-2018-03-21-dbc8dfe (based of v1.1.0 tag)

but not a big deal.

1 Like

:+1:

Thanks for reporting. This is now fixed.

Hi James,
I am building slicer in release mode.

Specifications:
Slicer 4.10 which I downloaded thorugh
svn co http://svn.slicer.org/Slicer4/branches/Slicer-4-10 Slicer-r28257 -r 28257
cmake 3.14.6 msvc 2017
VS 2017 community edition

cmake configuration:
image

Qt 5.11.0 with msvc 2017 x64 with qtwebengine and qt script

Then I run the slicer.sln in release mode with x64 selected in the active solution platform of vs 2017
build failed:
image

Error list
image
image

Need help to build the slicer what am I doing wrong. can t understand.
cmake configurations
image
image
image
image
image
image
image

@Saima Please read and follow the build instructions carefully (see https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Common_Prerequisites_2).

You have to use Qt 5.10.X or earlier, such as 5.9 series, when building Slicer on Windows. You mixed Qt Webengine for MSVC 2017 with MSVC 2015 which is what you specified when you set “v140” as the toolset. That refers to building as MSVC 2015 even though you might be using the Visual Studio 2017 IDE.

Hi Andras,
Which slicer patch should be used for building I am using:

I downloaded the slicer using the following on git cmd:

svn co http://svn.slicer.org/Slicer4/branches/Slicer-4-10 Slicer-r28257 -r 28257

cmake 3.15 with visual studio 15 2017 and v140 and x64

qt 5.10.0 with msvc 2015 x64

I am runing into lot of build errors.


What am I missing.

image

Please help me in building the slicer. I am following all the things dont know what I am missing.

visual studio:
Environment variable VTK_ROOT is set to:
46>
46> C:\Users\22374464\Slicer 4.8.1\lib\Slicer-4.8\python2.7\site-packages\vtk
46>
46> For compatibility, CMake is ignoring the variable.
46>This warning is for project developers. Use -Wno-dev to suppress it.
46>
46>CMake Error at CMakeLists.txt:844 (find_package):
46> Could not find a configuration file for package “VTK” that is compatible
46> with requested version “8”.
46>
46> The following configuration files were considered but not accepted:
46>
46> C:/D/S4D/VTK-build/VTKConfig.cmake, version: 8.2.0 (32bit)
46>
46>
46>
46>-- Configuring incomplete, errors occurred!
46>See also “C:/D/S4D/Slicer-build/CMakeFiles/CMakeOutput.log”.
46>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: “cmd.exe” exited with code 1.
46>Done building project “Slicer.vcxproj” – FAILED.
47>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------
47>Building Custom Rule C:/D/S4/CMakeLists.txt
========== Build: 28 succeeded, 19 failed, 0 up-to-date, 0 skipped ==========

Please try to build the latest trunk version of Slicer in source folder C:\D\S4, binary folder C:\D\S4D by specifying all parameters via command-line arguments (as described in “Alternative option” section here).

how to get the latest trunk version of slicer. Please help.

If you checkout the repository using either SVN or git, you will get the latest version of the main branch by default. You need this version. The main branch is called “trunk” according to SVN terminology and “master” according to git terminology.

1 Like

Hi Andras,
I used the latest trunk version of slicer. downloaded as:
svn co GitHub - NA-MIC/svn.slicer.org-Slicer4: Archive of source code originally available at svn.slicer.org/Slicer4
I am getting no errors this time but getting alot of warnings.

Is this because I didnt run it using the command prompt.

Successfully build with release mode

image

but dont know what the warnings are about. Could you please tell me why I am getting warnings.

Thank you

In a software application that is built from many libraries in several different build environments, it is usually not practically feasible to eliminate build warnings (especially when they are in external libraries). You can ignore the warnings.

1 Like

how to build in debug mode. Should I just change the mode in the visual studio to debug and then do build_all

You can use the same source code folder (C:\D\S4) but you need to create a completely separate build tree for debug-mode and release-mode builds.