This document summarizes how to build and package vpaw on Windows. Instructions for Linux and macOS are similar. For more details, see 3D Slicer Developer Wiki
vpaw is a custom Slicer application. Reading the 3D Slicer Developer Documentation may help answer additional questions.
The initial source files were created using KitwareMedical/SlicerCustomAppTemplate.
-
Microsoft Windows 10 or above recommended
-
Supported Microsoft Visual Studio versions:
- Visual Studio 17 2022
-
CMake, version 3.16.3 or above
-
Qt, version 5.15.2 recommended
-
Setting up your git account:
-
Create a Github account.
-
Setup your SSH keys following these instructions, with the exception of
step 2
where you should NOT enter a passphrase. -
Setup your git username and your git email.
-
If not already done, email
FirstName LastName <[email protected]>
to be granted access to the KitwareMedical/vpaw repository.
-
- Start Git Bash
- Checkout the source code into a directory
C:\W\
by typing the following commands:
cd /c
mkdir W
cd /c/W
git clone https://github.com/KitwareMedical/vpaw.git v
Note: use short source and build directory names to avoid the maximum path length limitation.
Note: The build process will take approximately 3 hours on a modern computer.
Option 1: CMake GUI and Visual Studio (Recommended)
- Start CMake GUI, select source directory
C:\W\v
and set build directory toC:\W\vR
. - Add an entry
Qt5_DIR
pointing toC:/Qt/${QT_VERSION}/${COMPILER}/lib/cmake/Qt5
. - Generate the project.
- Open
C:\W\vR\vpaw.sln
, selectRelease
and build the project.
Option 2: Command Line
- Start the Command Line Prompt
- Configure and build the project in
C:\W\vR
by typing the following commands:
cd C:\W\
mkdir vR
cd vR
cmake -G "Visual Studio 17 2022" -A x64 -DQt5_DIR:PATH=`C:/Qt/${QT_VERSION}/${COMPILER}/lib/cmake/Qt5 ..\v
cmake --build . --config Release -- /maxcpucount:4
Install NSIS 2
Option 1: CMake and Visual Studio (Recommended)
- In the
C:\W\vR\Slicer-build
directory, openSlicer.sln
and build thePACKAGE
target
Option 2: Command Line
- Start the Command Line Prompt
- Build the
package
target by typing the following commands:
cd C:\W\vR\Slicer-build
cmake --build . --config Release --target package