![]() |
Teem on Windows | ||
teem |
You can download precompiled binaries with the compression encodings enabled or not. For both, you'll need to copy lib/teem.dll to somewhere within the Windows path, typically %SystemRoot%/system32. For the compression encodings, you'll need to copy the provided DLLs lib/zlib.dll and lib/libbz2.dll to the same directory in case you do not have them yet.
Note that the precompiled binaries are linked against the multithreaded DLL version of the Windows C runtime library MSVCRT.lib. This means that you have to link against the same library in your project by setting the appropriate compiler flag (/MD), which is unfortunately not the default setting in Visual Studio. Linking against a different version will result in unexpected crashes of your program.
For example, if you want to install teem into c:\teem, open up the "System Properties" control panel, a.k.a. the "Control Panel System icon", click on the "Advanced" tab and select "Environment Variables...". Add the TEEM_DEST variable with value c:\teem and add c:\teem\lib to the Path environment variable.
Alternatively, you can set the %TEEM_INSTALL_SYSTEM% environment variable to 1 to tell the script to install teem in the Visual Studio directories, which are %SystemDrive%\Program Files\Microsoft Visual Studio\Vc98\{include,lib} for 6.0 and $(VCInstallDir)\PlatformSDK\{include,lib} for .NET, and to copy teem.dll to %SystemRoot%/system32.
You can also copy the DLL and the executables manually to a directory in the Windows path %PATH%. In this case, the import library teem.lib usually goes into one of the Visual Studio library directories, e.g. 'path to visual studio'\Vc98\lib. Likewise, the headers can be placed in one of the Visual Studio include directories.
To uninstall teem you have to delete the installed files manually. Note that the Visual Studio .NET project file provides an alternative to manual deinstallation. You simply have to build teem after running clean and stop the build after the pre-build script is executed. This script is run to make sure the installation targets are cleaned up before the build.
The compression options require the zlib and bzip2 libraries, which are available in source or precompiled Windows binary form at http://www.gzip.org/zlib/ and http://sources.redhat.com/bzip2/. These libraries must be available to the compiler, e.g. by copying the import libraries and headers to the Visual Studio library and include subdirectories, otherwise the build will fail.
No teem development is currently done on Windows. Using the Visual Studio files is simply the path-of-least-borg-resistance for distributing sources in a form that facilitates easy building on Windows.