Building Slicer from source

I was able to build Slicer following this tutorial

I have not tested if all the functionalities work without crash but at least the sliceViews and the 3D View work.

I had to change one line of the instructions a little bit for it to work. Here it is in case some one needs it:

"C:\Program Files\CMake\bin\cmake.exe" -G "Visual Studio 16 2019" -A x64 -DQt5_DIR:PATH=C:\Qt\5.15.2\msvc2019_64\lib\cmake\Qt5 C:\D\S4\Slicer

You are correct that the “Visual Studio 16 2019 Win64” is not an appropriate generator name.
See CMake 3.14 Release Notes where the CMake generator platform must be set with the “-A” command line option starting with the VS 2019 generator which was introduced in this version.

@mau_igna_06 That documentation can be changed in the following file which is located in the Slicer GitHub repo. Could you issue a PR to fix this? Thanks! Slicer/ at master · Slicer/Slicer · GitHub

1 Like