Last active
July 20, 2018 18:23
-
-
Save paddy74/f4fed243c7142fbf38c7025201f16d5d to your computer and use it in GitHub Desktop.
Single script to build 3D Slicer on Ubuntu 16.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions | |
# Install prerequisites | |
sudo apt install subversion git-core git-svn | |
sudo apt install build-essential libx11-dev libxt-dev libgl1-mesa-dev libosmesa6-dev libglu1-mesa-dev libfontconfig1-dev libxrender-dev libncurses5-dev | |
sudo apt install cmake | |
sudo apt install libgstreamer-plugins-base1.0-dev # qt5 | |
# Checkout | |
cd ~/bin | |
git clone git://github.com/Slicer/Slicer.git | |
cd Slicer | |
./Utilities/SetupForDevelopment.sh | |
# Configure | |
mkdir ~/bin/Slicer-SuperBuild && cd ~/bin/Slicer-SuperBuild | |
cmake -DSlicer_USE_SYSTEM_QT:BOOL=1 -DCMAKE_BUILD_TYPE:STRING=Debug ../Slicer | |
# Build | |
make | |
# Test | |
ctest | |
# Run | |
# .~/bin/Slicer-SuperBuild/Slicer-build/Slicer | |
# Package | |
# cd ~/bin/Slicer-SuperBuild/Slicer-build && make package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment