This document summarizes how to build and package SlicerQReads on Windows. Instructions for Linux and macOS are similar. For more details, see 3D Slicer Developer Guide on readthedocs
-
Microsoft Windows 7 or above recommended
-
Supported Microsoft Visual Studio versions:
- Visual Studio 2015
- Visual Studio 2017
-
CMake, version 3.11 or above
-
Qt, version 5.10 or above
-
Setting up your git account:
-
Create a Github account.
-
Setup your SSH keys following these instructions at the exception of
step 2where you should NOT enter a passphrase. -
Setup your git username and your git email.
-
If not already done, email
FirstName LastName <firstname.lastname@KitwareMedical.com>to be granted access to the KitwareMedical/SlicerQReads 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/SlicerQReads.git SlicerQReadsNote: use short source and build directory names to avoid the maximum path length limitation.
Note: The build process will take approximately 3 hours.
Option 1: CMake GUI and Visual Studio (Recommended)
- Start CMake GUI, select source directory
C:\W\SlicerQReadsand set build directory toC:\W\SlicerQReads-rel. - Add an entry
Qt5_DIRpointing toC:/Qt/${QT_VERSION}/${COMPILER}/lib/cmake/Qt5. - Generate the project.
- Open
C:\W\SlicerQReads-rel\SlicerQReads.sln, selectReleaseand build the project.
Option 2: Command Line
- Start the Command Line Prompt
- Configure and build the project in
C:\W\SlicerQReads-relby typing the following commands:
cd C:\W\
mkdir SlicerQReads-rel
cd SlicerQReads-rel
cmake -G "Visual Studio 14 2015 Win64" -DQt5_DIR:PATH=`C:/Qt/${QT_VERSION}/${COMPILER}/lib/cmake/Qt5 ..\SlicerQReads
cmake --build . --config ReleaseInstall NSIS 2
Option 1: CMake and Visual Studio (Recommended)
- In the
C:\W\SlicerQReads-rel\Slicer-builddirectory, openSlicer.slnand build thePACKAGEtarget
Option 2: Command Line
- Start the Command Line Prompt
- Build the
PACKAGEtarget by typing the following commands:
cd C:\W\SlicerQReads-rel\Slicer-build
cmake --build . --config Release --target PACKAGE