You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-5Lines changed: 30 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,14 +13,10 @@ All functions in this project are Async, they are exported to [Promise](https://
13
13
npm install quantlib
14
14
```
15
15
16
-
* Windows - 32-Bit
16
+
* Windows
17
17
18
18
`npm install quantlib` will do everything, including the node package installation and pre-built native addon (no dependency) download, you can start use it right away.
19
19
20
-
* Windows - 64-Bit
21
-
22
-
I will try to build and upload the pre-built addon, before that, Please refer to [how to build](#building-the-native-addon) below
23
-
24
20
* Linux & Mac
25
21
26
22
Please refer to [how to build](#building-the-native-addon) below
@@ -37,6 +33,35 @@ Please refer to [how to build](#building-the-native-addon) below
* QuantLib, QuantLibAddin, ObjectHandler source code according to [version matrix](#version-matrix), they need to be put in the same directory
47
+
*`boost` - which is required to build QuantLib
48
+
49
+
#### Set environment variable
50
+
51
+
please refer to `cmake/*.cmake` and `CMakeList.txt` files
52
+
53
+
*`NAN_DIR` - location of `nan`
54
+
*`NODE_GYP_DIR` - location of `.node-gyp` generated by `node-gyp` tool, which is at `~/.node-gyp`, if it doesn't exist, follow the instruction in [node-gyp](https://github.com/nodejs/node-gyp), and build a helloword program, it will generate the `.node-gyp` directory
55
+
*`QUANTLIB_ROOT` - location of QuantLib, QuantLibAddin, ObjectHandler source code
56
+
*`BOOST_ROOT` - location `boost` installed
57
+
58
+
#### Use cmake to build the addon
59
+
60
+
1. Build QuantLib and QuantLibAddin, please check `CMakeList.txt` for library name, and make sure generated library names are the same in `CMakeList.txt`
61
+
2. from `quantlibnode` root directory `cd build`
62
+
3.`cmake ..` for Windows and Linux, `cmake -G Xcode ..` for Mac OS X
63
+
4.`cmake --build . --config Release`
64
+
5. For Linux, you may need to put `quantlib.node` under `build/Release` manually,
0 commit comments