First you have to ensure some prerequisites:

  • Debian or Debian-based Linux operating system (e.g. Ubuntu) recommended

  • Matlab + mex-compiler

  • packages (install with apt-get, aptitude, synaptic, macports, …)

    • make
    • g++ (at least version 4.7.3)
    • libsndfile1-dev
    • libxml2-dev
    • libfftw3-dev
  • get SoundScape Renderer (location will be denoted as SSR_DIR)

    git clone SSR_DIR
    git checkout origin/master -b master

Compile MEX Binaries

  • switch to directory containing the mex-files

    cd SSR_DIR/mex/
  • if you are using a Mac and installed Matlab at /Applications/

    export PATH="/Applications/$PATH"
    export CPPFLAGS="-I/Applications/"
  • generate mex-files

    make matlab
  • If you get an error saying that the version of GLIBCXX is not correct this is due to the usage of the Matlab provided libstdc++ which is for an older gcc version. You can solve this by deleting linking it to your system libstdc++ via

    ln -s /usr/lib/x86_64-linux-gnu/<LIBSTDC-VERSION> \
  • open Matlab and add SSR_DIR/mex/ to Matlab-path using pathtool or addpath

That’s all, now you should be able to use the Two!Ears Binaural Simulator.