ITK Release 4/Microscopy/File Formats/Bio-Formats: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
Line 45: Line 45:


= Configure ITK =
= Configure ITK =
Go to the binary tree where you have build ITK and rerun CMake
For example, in Linux do
      make  edit_cache


= Build ITK adaptors =
= Build ITK adaptors =

Revision as of 22:08, 11 February 2011

This page describes the process of building the ITK adaptors to the Bio-Format library.

Download JACE

Check out the Jace source code:

   svn co -r 39 https://jace.svn.sourceforge.net/svnroot/jace/trunk /path/to/jace

Where

   /path/to/jace 

is the desired location of your Jace source code checkout.

The "-r 39" matters, since Jace revisions 40 and later may not work with bf-cpp. As of this writing, the most recent revision was 52, and it does not compile on some systems. We currently recommend revision 39.

Download Bio-Formats

Download the bio-formats code according to the instructions in

  http://www.loci.wisc.edu/bio-formats/source-code

Essentially

  git clone git://dev.loci.wisc.edu/bio-formats.git

Build Bio-Formats and Its C++ Bindings

go to the top directory of the bio-formats source tree and type

   ant tools

then go to the directory "components/native/bf-cpp"

   cd components/native/bf-cpp 

and type

   ant   -Djace.home=/path/to/jace

where "/path/to/jace" is the path to the directory where you checked out the code of JACE.

This will produce C++ libraries that wrap the functionalities of the Bio-Formats Java library.

Configure ITK

Go to the binary tree where you have build ITK and rerun CMake

For example, in Linux do

     make   edit_cache

Build ITK adaptors