![]() |
Build | ||
teem |
then your teem build will not work correctly. Either one of the default settings in the architecture-specific makefile teem/src/make/<arch>.mk is wrong, or your machine isn't up to snuff. In either case, email me (gk@cs.utah.edu) with the error message from nrrdSanity../nrrdSanity: nrrd sanity check passed.
TEEM_ARCH | The architecture you're building on and for; described above. |
TEEM_DEST | If you'd rather everything be installed to some other directory (with include, lib, and bin subdirectories), then set environment variable TEEM_DEST to that directory, and make will put headers, libraries, and binaries in the corresponding subdirectories of TEEM_DEST. |
TEEM_ZLIB | If this is set (but it doesn't need to be set to anything in particular), nrrd will do zlib compression and decompression of data. It also enables the "-e gzip" encoding flag in unu save. Gzip/gunzip are command-line tools which uses zlib compression; the format nrrd uses for zlib-compressed data is always compatible with the gzip command-line tool. Enabling zlib also enables PNG images, since these are always zlib-compressed. |
TEEM_BZIP2 | This allows nrrd to do bzip2 compression and decompression, enabling the "-e bzip2" encoding flag in unu save. The data compressed this way is compatible with the bzip2/bunzip2 command-line tools. |
TEEM_PNG | This enables nrrd to read and write PNG images. Because the key/value chunk in PNG is used to store NRRD headers (such as axis labels, mins, and maxs) this means PNG is a a completely lossless format to store NRRDs, as long as they are 8 or 16 bit unsigned, either 2-dimensional, or 3-dimensional with 1, 2, 3, or 4 samples along axis 0. PNGs can be viewed with most browsers, and can even be imported into Powerpoint! |
The following versions of the optional libraries are recommended:
In case you do not have the workable versions of zlib, bzip2, and png installed in /usr/local/ on your system (or wherever the C compiler looks for headers and libraries by default), you can teach the teem makefiles where to find them by setting more environment variables. In the following, "XXX" stands for either "ZLIB", "BZIP2", or "PNG".
TEEM_XXX_IPATH | This is the include flag to be passed the compiler, to tell it where to find the header files for optional thing XXX. It should be of the form "-I<path>", such as "-I/home/gk/include". |
TEEM_XXX_LPATH | This is the link flag to be passed to the linker, to tell it where to find the library for optional thing XXX. It should be of the form "-L<path>", such as "-L/home/gk/lib". The makefiles know the name of the library; you do need to (nor can you) supply the library link flag itself (e.g. "-lzlib"); this is done by the makefiles for you. |
If interested, you can read more about the directory structure of teem. For more specific information about how the GNUmakefiles work, or how to use them to do something besides the standard install described above, see How teem uses GNU make.