Building Internal Third Party Software

Internal third party software is distributed with SCIRun and is required for SCIRun to run properly. It must be built before building SCIRun. This section provides instruction for building internal third party software.

Follow these steps to build the internal third-party distribution:

Follow these steps to install the third-party distribution:

Note

Third-party libraries built under OSX 10.3 are not compatible with SCIRun built under OSX 10.4 and vice-versa.

  1. Create a directory for third-party binaries and libraries, for example:

    mkdir /usr/local/SCIRun/Thirdparty_osx
          
  2. cd to the third-party sources directory:

    cd Thirdparty_install_osx.x.x.x
    	

  3. Optional: Enable PNG support in the Teem third party library. To enable PNG support in the Teem third party library set the TEEM_ZLIB and TEEM_PNG environment variables:

    For sh-type shells:

    TEEM_ZLIB=1
    TEEM_PNG=1
    export TEEM_ZLIB TEEM_PNG	
        

    for csh-type shells:

    setenv TEEM_ZLIB
    setenv TEEM_PNG
        

    If these variables are not set, PNG support will be omitted.

    If PNG support is enabled and PNG libraries (and corresponding header files) are not installed in a standard location (/sw/lib) then environment variables TEEM_PNG_IPATH and TEEM_PNG_LPATH must be set. For example, if PNG libraries and headers are installed in /usr/local then TEEM_PNG_IPATH and TEEM_PNG_LPATH are set as follows:

    For sh-type shells:

    TEEM_PNG_LPATH=-I/usr/local/lib
    TEEM_PNG_IPATH=-I/usr/local/include
    export TEEM_PNG_LPATH TEEM_PNG_IPATH
        

    for csh-type shells:

    setenv TEEM_PNG_LPATH -I/usr/local/lib
    setenv TEEM_PNG_IPATH -I/usr/local/include
        

    If ZLIB libraries (and corresponding header files) are not installed in a standard location (/sw/lib) then environment variables TEEM_ZLIB_IPATH and TEEM_ZLIB_LPATH must be set. For example, if ZLIB libraries and headers are installed in /usr/local then TEEM_ZLIB_IPATH and TEEM_ZLIB_LPATH are set as follows:

    For sh-type shells:

    TEEM_ZLIB_LPATH=-I/usr/local/lib
    TEEM_ZLIB_IPATH=-I/usr/local/include
    export TEEM_ZLIB_LPATH TEEM_ZLIB_IPATH
        

    for csh-type shells:

    setenv TEEM_ZLIB_LPATH -I/usr/local/lib
    setenv TEEM_ZLIB_IPATH -I/usr/local/include
        

  4. Run the third party installation script:

    ./install.sh dir
    	

    where dir is the third-party installation directory. Dir must be an absolute path. For example:

    ./install.sh /usr/local/SCIRun/Thirdparty_osx
    	

    The path to the third-party installation directory is used in the configure step of the SCIRun build process. The configure step is described in “Building SCIRun”.

Proceed to “Building External Thirdparty Software”.