Difference between revisions of "Slicer:Debian"

From Slicer Wiki
Jump to: navigation, search
(first draft for Slicer on Debian 8)
(change qt 4.7 download location)
Line 9: Line 9:
 
  sudo aptitude install libxext-dev libxrender-dev make g++
 
  sudo aptitude install libxext-dev libxrender-dev make g++
 
  # download the 'supported' Qt version [http://www.slicer.org/slicerWiki/index.php/Documentation/4.0/Developers/Build_Instructions/Prerequisites/Qt]
 
  # download the 'supported' Qt version [http://www.slicer.org/slicerWiki/index.php/Documentation/4.0/Developers/Build_Instructions/Prerequisites/Qt]
  wget ftp://ftp.qt-project.org/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz
+
  wget https://download.qt.io/archive/qt/4.7/qt-everywhere-opensource-src-4.7.4.tar.gz
 
  mkdir qt-everywhere-opensource-build-4.7.4
 
  mkdir qt-everywhere-opensource-build-4.7.4
 
  tar xvfz qt-everywhere-opensource-src-4.7.4.tar.gz
 
  tar xvfz qt-everywhere-opensource-src-4.7.4.tar.gz

Revision as of 02:34, 8 October 2015

Home < Slicer:Debian

Intro

Instructions how to build Slicer from scratch on Debian systems

Debian 8 "jessie"

Debian 8 "jessie" contains all tools to compile a local "3D Slicer 4.x" version.

sudo aptitude install libxext-dev libxrender-dev make g++
# download the 'supported' Qt version [1]
wget https://download.qt.io/archive/qt/4.7/qt-everywhere-opensource-src-4.7.4.tar.gz
mkdir qt-everywhere-opensource-build-4.7.4
tar xvfz qt-everywhere-opensource-src-4.7.4.tar.gz
cd qt-everywhere-opensource-src-4.7.4
./configure -prefix ../qt-everywhere-opensource-build-4.7.4 -debug-and-release -opensource -confirm-license -no-qt3support -webkit -nomake examples -nomake demos
make -j8
make install
sudo aptitude update
#cmake 2.8.6 required because of libarchive
sudo aptitude install git-svn gitk subversion git gcc g++ make cmake-curses-gui libglu1-mesa-dev zlib1g-dev libxt-dev #libqt4-dev

git clone https://github.com/Slicer/Slicer.git
cd Slicer
git svn init http://svn.slicer.org/Slicer4/trunk
git update-ref refs/remotes/git-svn refs/remotes/origin/master
git checkout master
git svn rebase
git checkout v4.4.0 # optional: this is a Slicer release 4.4.0 from Nov 02 2014
mkdir ../Slicer4-SuperBuild-Debug
cd ../Slicer4-SuperBuild-Debug
#cmake ../Slicer -DSlicer_REQUIRED_QT_VERSION:STRING=4.8.6 # if using system QT
#cmake -DQT_QMAKE_EXECUTABLE:FILEPATH=~/qt-everywhere-opensource-build-4.7.4/bin/qmake -DITK_VERSION_MAJOR:STRING=4 -DSlicer_USE_GIT_PROTOCOL:BOOL=OFF ../Slicer
cmake -DQT_QMAKE_EXECUTABLE:FILEPATH=~/qt-everywhere-opensource-build-4.7.4/bin/qmake ../Slicer
make -j8
# runtime dependency:
sudo aptitude install python-tk

Usage

Use Slicer's command line tools

/usr/lib/Slicer3/Plugins/AffineRegistration --help

or start Slicer's GUI

slicer3

Archive

http://slicer.org/slicerWiki/index.php/Slicer3:Debian