LibreOffice QuantLib Addin
LibreOffice-Calc QuantLib Addin
This document provides first steps with
- code generation
- code compilation
This code has been tested for QuantLib-1.9.1 under Linux using Anaconda3 and
Change to the directory gensrc. Execute 'python main.py -o'.
- Python 3
- PyParsing package
Both requirements are met using Anaconda3.
Change to the directory 'Calc'. Edit the file 'environment.sh' -
the meaning of the variables is the following:
- QL_PATH: path to your QuantLib source code (e.g. QL_PATH=/test/QuantLib)
- QL_LIB: path to the compiled QuantLib library (e.g. QL_LIB=/test/QuantLib/ql/.libs)
- BOOST_PATH: path to your boost development installation (header files, depending on your system)
In order to compile the files genereated you have to include the path variables (e.g.
execute '. environment.sh' under Gnu/Linux-bash). Include the LibreOffice SDK development
setup to your path (e.g. execute '. ~/libreoffice/sdk/setsdkenv_unix.sh' under Gnu/Linux-bash).
If both paths are set call 'make' (for parallel execution of 4 processes call 'make -j4').
If you have used the auto-installation feature of the LibreOffice SDK nothing else has to
be done. You can open the test sheet 'Examples.ods' by executing 'soffice path/Examples.ods'.
- installation of LibreOffice SDK 2.. development files for boost and compiled boost libraries (boost_regex, boost_serialization, lboost_filesystem, lboost_system)
- QuantLib library and QuantLib header files
- C++ compiler (e.g. g++ under Gnu/Linux)
Tested on Gnu/Linux amd64 with LibreOffice 5.2.