README
=========
0) Install cvs and subversion to checkout code 'sudo apt-get install cvs subversion' (Note: CVS is internally used )

1) Check out the code
svn checkout https://www.nitrc.org/svn/fiber-sig

2) Download latest ITKv4.1 from http://sourceforge.net/projects/itk/files/itk/4.1/InsightToolkit-4.1.0.tar.gz/download

3) Download latest VTK-5.10 from http://www.vtk.org/files/release/5.10/vtk-5.10.0.tar.gz
Install openGL and other visual libraries in Ubuntu via 'sudo apt-get install freeglut3 freeglut3-dbg freeglut3-dev libglw1-mesa-dev libegl1-mesa libgles1-mesa-dev libosmesa6-dev'  if required
You may need to set openGL and OSMESA_LIBRARY options.

4) Download latest VXL-1.14.0 from http://sourceforge.net/projects/vxl/files/latest/download
May require you to set PYTHON_INCLUDE_DIR path 
"sudo apt-get install libv4l-dev lib32v4l-dev python2.7-dev python-dev zlib1g-dev libpng12-dev libbz2-dev lib32z1-dev" (additional install if required)
If you get additional errors -> refer to http://www.mirkules.com/opengazer/vxl_install_notes.txt for help.

There was an issue with the libpng.a and libz.a libraries built in vxl/lib with those in /usr/lib. So I just went to vxl/lib and renamed this files or even creating a soft link to the files in /usr/lib will also work fine.

5) Install ITKv4.1, VTK-5.10 and VXL-1.14.0 using the standard 'mkdir bin; cd bin; ccmake ../ , "c", "c", g" , "make" commands.

6) Install teem-libraries via 'sudo apt-get install libteem1-dev' OR do a manual install by downloading it from http://teem.sourceforge.net/download/index.html

7) In your ~/.bashrc file, export the variables ITK_DIR, VTK_DIR, VXL_DIR

8) If you get errors with libpng, libz and stuff, see 4th step error debugging. If you get an error saying "No rule to make target `/usr/lib/libz.so or libpng.so'", just create a softlink via 'sudo ln -s /usr/lib32/libz.so /usr/lib/libz.so' and 'sudo ln -s /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/libpng.so'

9) I think the troublesome part of the installation is VXL because sometimes it requires the libraries to be in /usr/lib although you might have installed the same thing in /usr/lib64 /usr/lib32 /usr/lib/x86_64* . If you can fix these issues by installing required packages or creating soft-links (simlinks), it should be fine.

10) One step to install additional packages:-
sudo apt-get install freeglut3 freeglut3-dbg freeglut3-dev libglw1-mesa-dev libegl1-mesa libgles1-mesa-dev libosmesa6-dev libv4l-dev lib32v4l-dev python2.7-dev python-dev zlib1g-dev libpng12-dev libbz2-dev lib32z1-dev libteem1-dev'

11) To compile and build the executable run :-
cd ../fiber-sig; mkdir bin; cd bin; make
