Skip to content

How to compile and install Mr.MIRA

kho edited this page Apr 16, 2013 · 1 revision

We use standard autoconf/automake in Mr.MIRA.

Dependencies

Mr.MIRA depends on Boost (>= 1.44) and glog (>= 0.3).

Compiling

  1. First run autoreconf if to generate the configure script;

  2. Next run the configure script,

    • You may specify a non-standard install path of Boost by --with-boost=PATH, where PATH is the prefix install directory of Boost (i.e. there should be directories such as include and lib under PATH);
    • You may specify a non-standard install location of glog by PKG_CONFIG_PATH=PATH, where PATH is the directory containing libglog.pc;
    • For production code, consider increasing optimization level, etc. by setting CXXFLAGS; and turning off debug output, by setting CPPFLAGS='-DNDEBUG'.

    Here an example configure command,

./configure \
    --with-boost=/fs/clip-software/user-supported/boost/boost-current \
    PKG_CONFIG_PATH=/fs/clip-software/user-supported/glog/glog-current/lib/pkgconfig \
    CPPFLAGS='-DNDEBUG' CXXFLAGS='-O2 -march=native -mtune=native -fno-omit-frame-pointer'
  1. Then make; if you have a multi-core machine, use make -jN with N > 1 to speed up compilation.
  2. Try using a more recent version of gcc (e.g. >= 4.5) if you run into problems in compiling.

Installing

Simply make install.

For developers

We have preset config sites under debug and release for ease of debugging and running experiments at the same time, use --prefix=`pwd`/debug or --prefix=`pwd`/release to activate the presets.

Clone this wiki locally