Teem

From Manta

The (Optional) Teem Library

Gordon Kindlmann's Teem library may be used to import and export raw images or volume data; it also supports a handful of conventional image formats.

More information about the library is available at http://teem.sourceforge.net

On the SCI file system, Teem may already be built for your architecture/compiler. Look in /usr/sci/projects/Manta/Thirdparty/. If not, consider building it there (or requesting that it be built for you) so the next person will be able to use it.

Building Teem

The svn version of Teem is now required by Manta and is not yet a stand alone release. It must be obtained from sourceforge:

> svn co https://teem.svn.sourceforge.net/svnroot/teem/teem/trunk teem

Enter the checked out directory and create a build directory. Then run ccmake.

> cd teem
> mkdir build
> cd build
> ccmake ..

Follow the usual cmake build process. Specify an installation prefix using the CMAKE_INSTALL_PREFIX variable. Shared libraries should be built if teem code will be accessed through swig/python. Also enable bzip2, png, and zlib if available on the local system (using the CMake variables TEEM_BZIP2, TEEM_PNG, and TEEM_ZLIB).

> make
> make install

Try running the "unu" command. If this is not found you may need to set LD_LIBRARY_PATH to the lib folder location in your installation directory. Manta will search for the "unu" command to determine TEEM's install prefix. Make sure that this command is in the path before configuring manta. If "unu" isn't in your path, you can edit FOUND_TEEM_BIN to point to the location where you installed teem to. Note that you must install teem somewhere to get all the paths correct. You can't simply point it to the build directory.

Targets that need to be linked against teem should use specify "teem" in TARGET_LINK_LIBRARIES instead of the individual libraries.