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.
To access 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
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
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 ....
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.
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
rel.build
mkdir rel.build cd rel.build
ccmake
, which is an interactive cmake
client, in rel.build
.
ccmake ../dtitk
'c'
to initiate the configuration process.
/usr/local/dtitk
. (To set this variable, you may need to reveal the advanced option by pressing 't') If this is a shared workstation, you may not have the write permission to this directory. In this case, you need to set it to a different directory.
'c'
again, if you have made any changes.
'g'
to generate the makefile
required. If you do not see 'g' as an available key to press (listed at the bottom of the ccmake
interface), one or more required variables may not be set or set correctly.
make
make
make install
ccmake
.
sudo make install
if it is your own machine. Otherwise ask your system administrator for help, or change the installation directory to one that you have the write permission (need to re-run ccmake
).
Don't forget that you still need to follow the installation tutorial after this, although just from the step 3 and onward.