\chapter{Getting Started}

\section{Building and Configuring}

\subsection{Dependencies}

In order to compile \tt{STM} you will need the following:

\begin{itemize}
\item Linux, MacOS-X or Microsoft Windows.
\item The CMake build system, available from \tt{http://www.cmake.org}.
\item A C++ compiler.  Either g++, clang++ or Microsoft Visual Studio 2010.
\end{itemize}

In order to build all the modules you will also need the following libraries:

\begin{itemize}
\item libtiff, available from \tt{http://libtiff.org}
\item libpng, available from \tt{http://libpng.org}
\item openexr, available from \tt{http://www.openexr.com}
\end{itemize}

The build system should automatically detect if any of these are missing, and 
skip compilation.

\subsection{Building}

Once this is all installed, open a shell in the \tt{STM} directory and type the
following:

\begin{verbatim}
$ cmake CMakeLists.txt
\end{verbatim}

On unix like operating systems this will produce a \tt{Makefile}, and the source
can be compiled by simply typing \tt{Make}.  If you are building on windows
with Microsoft Visual Studio then it should create a set of project files, 
which can be opened and built from the IDE.

\subsection{Configuring}


