Custom version of Slicer for museum exhibition
-
Operating System:
- Microsoft Windows 7 or above recommended
- Ubuntu 18.04
-
Tested Microsoft Visual Studio versions:
- Visual Studio 2015
-
Tools:
- CMake
- Version 3.11 or above
- Qt
- Version 5.9.8 or above
- Git
- Subversion
- CMake
-
Setting up your git account:
-
Setup your SSH keys following these instructions at 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
Abián Hernández <[email protected]>
to be granted access to the GTMA/MuseumInterface 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 git@alix.iuibs.ulpgc.es:ULPGC.GTMA/MuseumInterface.git MuseumInterface
Note: in Windows, 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\MuseumInterface
and set build directory toC:\W\Build
. - Add an entry
Qt5_DIR
pointing to:[Qt Location]\[Qt Version]\[MSVC Version]\lib\cmake\Qt5\
.
- Generate the project.
- Open the project using the Open Project button in CMake, select
Release
and build the project.
Note: It is mandatory to use CMake macros of Git that are located in [Git location]\usr\bin
. This path should be included in Windows PATH Variable
.
Warning: Sometimes is necessary create the Slicer-build/bin
directory because it is not created in Building time.
Option 2: Command Line
- Start the Command Line Prompt
- Configure and build the project in
C:\W\Build
by typing the following commands:
cd C:\W\
mkdir Build
cd Build
cmake -G "Visual Studio 14 2015 Win64" -DQt5_DIR=[Qt Location]\[Qt Version]\[MSVC Version]\lib\cmake\Qt5\ ..\MuseumInterface
cmake --build . --config Release
Install NSIS 2
Option 1: CMake and Visual Studio (Recommended)
- In the
C:\W\MuseumInterface-rel\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\MuseumInterface-rel\Slicer-build
cmake --build . --config Release --target PACKAGE