Skip to content

QuickStart

rousseau edited this page Sep 30, 2014 · 5 revisions

Installation

This is a quickstart for installing the toolkit BTK of the fbrain project

Dependencies

Baby Brain Toolkit (BTK) needs the following packages for running :

These libraries can be installed using the following command line:

  • for debian-based distributions:

apt-get install cmake cmake-curses-gui libtclap-dev libgomp1 libvtk5-dev libann-dev doxygen

  • for MacOSX using macports3:

port install cmake tclap vtk5 libANN doxygen

In order to get a clone of fbrain projet, Git must be installed:

  • for debian-based distribution:

apt-get install git-core

  • for MacOSX using macports:

port install git-core

Installation of Insight Toolkit (ITK) version 4.5 :

BTK needs Insight Toolkit (ITK) for running, currently BTK support the 4.5 version of ITK.

mkdir ITK-build

cd ITK-build

ccmake ../(your-ITK-Source-folder)/

This will bring up the CMake configuration screen. Press [c] for configure and then use [t] to toggle the advanced mode. Make the following changes:

  BUILD_TESTING = OFF
  CMAKE_BUILD_TYPE = Release
  ITK_USE_REVIEW = ON
  ITK_BUILD_ALL_MODULES = ON
  ITKV3_COMPATIBILITY = ON
  BUILD_DOCUMENTATION = ON

Then press [c] to configure and [g] to generate the make file. Finally, go to the build folder of ITK (ITK-build) and type make at the prompt to obtain the final build of ITK.

Download and compile the BTK sources

Get the BTK sources

git clone https://github.com/rousseau/fbrain.git

Then

   mkdir fbrain-build
   cd fbrain-build
   ccmake ../fbrain
   make

Most of the programs of the BTK suite use the OpenMP library for multi-threading purpose. The number of cores used can be tuned using the following command line (in this example, 4 cores will be used):

export OMP NUM THREADS=4

Clone this wiki locally