-
Notifications
You must be signed in to change notification settings - Fork 5
/
building_deps_unix.txt
56 lines (47 loc) · 1.61 KB
/
building_deps_unix.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
This file outlines building steps of QuantLib related dependencies on Unix platform.
Boost
------
$ tar xvf boost_1_54_0.tar.gz
$ cd boost_1_54_0/
$ ./bootstrap.sh --prefix=$HOME --exec-prefix=$HOME
$ ./b2 install
QuantLib
-------
$ tar xvf QuantLib-1.2.1.tar.gz
$ cd QuantLib-1.2.1
$ ./configure --prefix=$HOME --exec-prefix=$HOME --with-boost-include=$HOME/include --with-boost-lib=$HOME/lib
$ make install
ObjectHandler requires log4cxx which requires apr and apr-util. Incase, log4cxx, apr and apr-utils are not installed on your host below are the steps to install them.
-------
$ tar xvf apr-1.4.6.tar.gz
$ cd apr-1.4.6/
$ ./configure --prefix=$HOME --exec-prefix=$HOME
$ make install
$ tar xvf apr-util-1.5.1.tar.gz
$ cd apr-util-1.5.1
$ ./configure --prefix=$HOME --exec-prefix=$HOME --with-apr=../apr-1.4.6
$ make install
$ tar xvf log4cxx-0.10.0d.tar.gz
$ cd log4cxx-0.10.0d
$ ./configure --prefix=$HOME --exec-prefix=$HOME --with-apr=../apr-1.4.6 --with-apr-util=../apr-util-1.5.1
$ make install
Gensrc
------
$ tar xvf gensrc-1.2.0.tar.gz
$ cd gensrc-1.2.0
$ ./configure --prefix=$HOME --exec-prefix=$HOME
$ make install
ObjectHandler
-------------
$ tar xvf ObjectHandler-1.2.0.tar.gz
$ cd ObjectHandler-1.2.0
$ export CPPFLAGS=-I$HOME/include
$ export LIBS=-L$HOME/lib
$ ./configure --prefix=$HOME --exec-prefix=$HOME --with-gensrc=../gensrc-1.2.0
$ make install
QuantLibAddin with C++
----------------------
$ tar xvf QuantLibAddin-1.2.0.tar.gz
$ cd QuantLibAddin-1.2.0
$ ./configure --prefix=$HOME --exec-prefix=$HOME --with-gensrc=../gensrc-1.2.0 --with-oh=../ObjectHandler-1.2.0 --enable-addin-cpp
$ make install