From PmWiki

SourceCode: Source

Source Code

DTI-TK is an open source project. The source code repository is currently hosted on NITRC. This page describes how you can gain access to the repository, download the source code, and compile DTI-TK yourself.

Access the repository

To access the source code,

Download the source code

To download the source code, you need a CVS client software installed on your computer. On a Linux machine, you will need to have the Development Tools installed; on a MacOSX machine, you will need to install the fink. These softwares will be required for compiling the source code.

You can check if CVS is installed by running, in a command line interface,

which cvs

If CVS is installed and in your path, you should get a response like

/usr/bin/cvs
(The exact output depends on your setup.)

Once CVS is installed, you can download the source code with the following commands:

mkdir /Users/huiz/devel/DTI-TK
cd /Users/huiz/devel/DTI-TK
export CVS_RSH=ssh
cvs -d :ext:developername@www.nitrc.org:/cvsroot/dtitk checkout dtitk
NOTE: You need to

If everything goes okay, you should see the following

cvs checkout: Updating dtitk
U dtitk/CMakeLists.txt
U dtitk/CPackOptions.cmake.in
U dtitk/CPackSetup.cmake
U dtitk/CTestConfig.cmake
....

Compile the source code

DTI-TK can be compiled from source with the following steps:

NOTE: The command examples use the setup on my machine. So remember to adapt according to your local setup.

ITK and VTK will need to be compiled from source with cmake. If you don't have experience with doing this, please refer to the ccmake instructions below (as a guide only, since details differ).
cd /Users/huiz/devel/DTI-TK
mkdir rel.build
cd rel.build
ccmake ../dtitk
The steps involved here are:
make
make install

What next?

Don't forget that you still need to follow the installation tutorial after this, although just from the step 3 and onward.

Retrieved from http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=SourceCode.SourceCode
Page last modified on April 25, 2014, at 05:56 AM