-
Notifications
You must be signed in to change notification settings - Fork 0
How to compile and install Mr.MIRA
kho edited this page Apr 16, 2013
·
1 revision
We use standard autoconf/automake
in Mr.MIRA.
Mr.MIRA depends on Boost (>= 1.44) and glog (>= 0.3).
-
First run
autoreconf if
to generate the configure script; -
Next run the configure script,
- You may specify a non-standard install path of Boost by
--with-boost=PATH
, wherePATH
is the prefix install directory of Boost (i.e. there should be directories such asinclude
andlib
underPATH
); - You may specify a non-standard install location of glog by
PKG_CONFIG_PATH=PATH
, wherePATH
is the directory containinglibglog.pc
; - For production code, consider increasing optimization level, etc. by setting
CXXFLAGS
; and turning off debug output, by settingCPPFLAGS='-DNDEBUG'
.
Here an example
configure
command, - You may specify a non-standard install path of Boost by
./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'
- Then
make
; if you have a multi-core machine, usemake -jN
with N > 1 to speed up compilation. - Try using a more recent version of gcc (e.g. >= 4.5) if you run into problems in compiling.
Simply make install
.
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.