Difference between revisions of "Slicer3:Debian"

From Slicer Wiki
Jump to: navigation, search
Line 29: Line 29:
 
  sudo aptitude update
 
  sudo aptitude update
 
  #cmake 2.8.6 required because of libarchive
 
  #cmake 2.8.6 required because of libarchive
  sudo aptitude install subversion git gcc g++ make cmake-curses-gui libglu1-mesa-dev #libqt4-dev
+
  sudo aptitude install git-svn gitk subversion git gcc g++ make cmake-curses-gui libglu1-mesa-dev #libqt4-dev
  svn co http://svn.slicer.org/Slicer4/trunk Slicer4
+
   
  mkdir Slicer4-SuperBuild-Debug
+
git clone https://github.com/Slicer/Slicer.git
  cd Slicer4-SuperBuild-Debug
+
cd Slicer
  #cmake ../Slicer4
+
git svn init http://svn.slicer.org/Slicer4/trunk
  cmake -DQT_QMAKE_EXECUTABLE:FILEPATH=~/qt-everywhere-opensource-build-4.7.4/bin/qmake ../Slicer4
+
git update-ref refs/remotes/git-svn refs/remotes/origin/master
  make -j5
+
git checkout master
 +
git svn rebase
 +
 +
  mkdir ../Slicer4-SuperBuild-Debug
 +
  cd ../Slicer4-SuperBuild-Debug
 +
  #cmake ../Slicer
 +
  cmake -DQT_QMAKE_EXECUTABLE:FILEPATH=~/qt-everywhere-opensource-build-4.7.4/bin/qmake ../Slicer
 +
  make -j8
  
 
  # runtime dependency:
 
  # runtime dependency:

Revision as of 22:38, 25 January 2013

Home < Slicer3:Debian

Intro

A Debian package for slicer has been created to make it easier to install "3D Slicer" on Debian machines. This means users can simply do:

sudo apt-get install slicer

and the slicer3 command will be available in their path and system menus. All slicer executables and libraries will be installed along with dependencies.

slicer3

Debian "squeeze"

Debian "squeeze" contains a "3D Slicer 3.4" package.

Debian "wheezy"

The next major Debian release "wheezy" will contain 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 ftp://ftp.qt-project.org/qt/source/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 #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

mkdir ../Slicer4-SuperBuild-Debug
cd ../Slicer4-SuperBuild-Debug
#cmake ../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

Cloud computing

The EBS AMI ami-6ca05805 contains a ready to use 3D Slicer 3.4 installation. The image can be started as a t1.micro instance (~ $0.02 per hour).

Example session:

AMI=ami-6ca05805
ec2-describe-images $AMI
ec2-run-instances -t t1.micro $AMI -n1 -k mykey
ec2-describe-instances
host=ec2-174-129-170-61.compute-1.amazonaws.com
ssh -i id_rsa-mykey -X ubuntu@${host}

Use Slicer's command line tools

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

or start Slicer's GUI

slicer3

Dependencies

Media:slicer_rdep_squeeze.png

Ubuntu

The Ubuntu distribution will also contain a slicer package in their universe repository [2]. This package is probably based on the slicer package taken from Debian "unstable".

"The MOTU team cares for the packages in universe and multiverse (which are comprised mostly of packages from the Debian archive) on a best-effort basis, as there are a large number of packages relative to the resources of the team. Therefore, a vast majority of these packages are used unchanged from Debian, rebuilt in an Ubuntu build environment, and do not receive personal attention from an Ubuntu developer." [3]

Thanks!

These packages were the result of a lot of work by Dominique Belhachemi.