Coin use of 3rd party libraries. coin may use a wide variety of 3rd party libraries, directly and indirectly, depending on how the coin build was configured. this document tries to summarize the situation. some of the libraries that are a standard part of an operating system are ignored here. this document expects that the reader is familiar with library build processes and has knowledge of various concepts such as 'configure-time', 'linktime', and 'runtime' related to library builds and behaviour. first of all, coin requires opengl. depending on the opengl version, features in coin are turned on and off. if a feature coin is supposed to suport does not seem to produce any result, make sure to check that the underlying opengl version does support that feature. opengl is linked into coin both at linktime and runtime. features added to opengl later than the oldest version of opengl we support in coin are always tried linked up at runtime, and failure to do so will disable features in coin or cause alternate implementations of features to be used instead. opengl is accompanied with a set of auxiliary libraries we also use. these are libraries like glext, glu (for nurbs tessellation and texture mipmaping amongst others), cggl (for shaders that use cg (we recommend using glsl instead btw)). of these libraries, cggl is loaded at runtime if needed, while the others are linked with coin at linktime. some platforms have glu libraries that don't behave properly in certain respects, and some coin users have particular needs wrt coin's use of glu. for these users, we (at kongsberg oil & gas technologies) have created a fork og glu that we have named superglu that we have tweaked in certain ways. this library can be checked out into the coin source code directory, which will be detected at configure-time and linked statically into coin and used instead of the glu libraries on the host system. in addition to these libraries, coin will use agl on mac os x, wgl on ms windows, and glx on x windows systems for offscreen rendering purposes. we now move on to libraries that are not related to opengl. coin uses libz (aka zlib) and libbzip2 to read and/or write files compressed with either of those compression techniques. both libraries can ble linked with coin at linktime or loaded at runtime, and this is controlled at configure-time. they can also be disabled if compressed file input/output is not wanted. the libz library is likely to be pulled in as a dependency from other libraries as well, especially graphics libraries. for font support, coin uses fontconfig or freetype in addition to native platform apis for font reading. freetype can be loaded at runtime instead of linked at linktime if desired, but freetype is only used if fontconfig is not found at configure-time anyway, unless the library builder overrides this behaviour. for javascript support in vrml97, coin uses spidermonkey. spidermonkey can also be loaded at runtime instead of linked at linktime. for sound support in vrml97, coin uses openal. openal is loaded at runtime or linked at linktime. btw, some versions of the openal library delivered with installers from creative on ms windows have been known to crash/freeze coin-applications when loaded, so if you experience something like that, that's one thing to investigate. for threading support, coin uses posix threads (pthread library) or the native win32 api on ms windows. you can use pthread on ms windows as well instead of the native threads by setting this at configure-time. we now come to a special class of libraries that has been directly integrated into the coin source code, thereby not requiring the libraries to be installed on the system beforehand for coin to build or run. coin makes use of certain utilities like smart-pointers from boost. the boost headers can be found under include/ in the coin source code directory. no boost types are exposed in the coin api, nor will they ever be. they are completely hidden, viewed from the outside of coin. all boost types used in coin are completely inlined in the boost headers and therefore do not require a link library to pull their implementation from at runtime. for xml reading, coin uses the expat library, which has also been integrated directly into coin, so also here there are no extra linktime or runtime dependencies to other libraries. the expat api is not exposed in the coin api, it is hidden, but coin provides its own xml dom api that is a wrapper over the expat engine. the last thing to mention here is hardly a library, but we mention it anyway. coin uses flex and bison to generate some parsers (one for the stl 3d model file format, and another one for parsing the calculator language in the socalculator engine). this is code that has been generated by 3rd party parser generators and integrated into coin. the generated code is distributed with the source code, so neither flex nor bison is needed to build coin. and last but definitely not least, coin uses simage...
Coin uses a library called simage, which is a 1st part library since we have written it ourselves. Simage is a thin wrapper library over a huge set of graphics and audio libraries, to provide Coin with a unified API for loading images (textures), audio, and animations, regardless of which image file format it is stored as. The simage library can in other words pull in another set of 3rd party libraries. All 3rd party libraries to simage are optional. Simage is loaded at runtime or (if specified) linked at linktime with Coin.
Simage can use QImage from Qt to add support for the file formats Qt supports.
Simage can use GDI+ (gdiplus) under MS Windows to add support for the file formats supported by GDI+.
Simage can use QuickTime under Mac OS X to add support for the file formats QuickTime supports.
Simage can use libungif or giflib for GIF file support.
Simage can use libjpeg for JPEG file support.
Simage can use libpng for PNG file support. This will also require that zlib is used.
Simage can use libtiff for TIFF file support.
Simage can use JASPER support for JPEG 2000 file support.
Simage can use mpeg2enc for MPEG2 encoding.
Simage can use vfw (Video for Windows) for AVI video encoding.
Simage can use libogg, libvorbis and libvorbisfile for Ogg Vorbis support. This is for VRML97 sound support in Coin.
Simage can use libsndfile for VRML97 sound support in Coin.
Simage can use libguile for a Guile (Scheme) binding for the Simage library API.