Skip to content

Compiling on Debian or Ubuntu

Julien Lamy edited this page Dec 2, 2016 · 4 revisions

Unofficial packages exist for several Debian and Ubuntu releases. If you want to compile from scratch, please proceed as follows.

  • Install Odil. Official packages are available (Debian, Ubuntu), as well as unofficial backports.

  • Install packages:

      apt-get install cmake pkg-config libqt4-dev liblog4cpp5-dev libboost-date-time-dev libboost-filesystem-dev libboost-python-dev libboost-program-options-dev libboost-system-dev libboost-regex-dev libjsoncpp-dev libnifti-dev zlib1g-dev python libboost-test-dev python-nose python-dateutil python-numpy
    
  • Fetch the latest stable version, unzip it

  • From the source directory:

      mkdir build
      cd build
      cmake -D NIfTI_INCLUDE_DIR=/usr/include/nifti ..
      make
    
  • Make sure everything compiled correctly:

      ../tests/run_tests.sh
    
Clone this wiki locally