|
From: Alan t. n. de m. N. <ala...@ya...> - 2022-08-25 11:01:31
|
Hello. I've been studying QuantLib C++ library for some months. Recently I got interested in knowing and using the LibreOffice Calc export, I tried to follow the instructions described at github.com/lcallenbach/quantlibaddin but I didn't totally understand the code compilation section (I'm a mathematician, novice to software development). I tried to contact the address lcallenbach@de, but had no success. Since the information on internet is scarce and old, I decided to post on this list. In the following I'll just explain what I already did and what I wasn't able to do. My configurations: Windows 10 64-bit, MVSC C++ compiler, latest Anaconda3 (with Python 3.9), Linux shell for windows (Ubuntu 20.04.4 LTS), LibbreOffice 7.4. Code generation: In 'gensrc' folder I executed on Anaconda3 Powershell the command 'python main.py -o', it ran without problems and generated some c++ source files and a .idl file in 'Calc' folder. Code compilation: In 'Calc' folder I edited the file 'environment.sh'. I inserted the three respective address according to my system (I just wrote the address and save the changes). In the guide it says " In order to compile the files generated you have to include the path variables (e.g. execute '. environment.sh' under Gnu/Linux-bash ". Here I have a question: the only 'environment.sh' I see in 'Calc' folder is the one I just edited, when I execute it in the Ubuntu shell it does nothing (what is normal since there are only path descriptions in that file). What am I doing wrong? In the sequence it says " Include the LibreOffice SDK development setup to your path (e.g. execute '. ~/libreoffice/sdk/setsdkenv_unix.sh' under Gnu/Linux-bash) ". In my case I executed the 'setsdkenv_windows.bat' which just asked some directories and then created a new 'setsdkenv_windows.bat' in user's home directory, all as described on the LibreOffice installation guide page api.libreoffice.org/docs/install.html. Now it says " If both paths are set call 'make' ". Question: Does "to be set" mean '. environment.sh' and 'setsdkenv_windows.bat' executed as described in the guide? If yes they are already set, if not what does it mean so? Supposing the paths are set, where do I have to call 'make'? On which directory?, on which prompt (Anaconda, cmd, bash)? Would 'make' mean 'Makefile'? Finally the guide ends with " 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' ". I think that I used the auto-installation feature of the LibreOffice (didn't I?). What does 'soffice path' mean? on which prompt do I execute 'soffice path/Examples.ods' (Anaconda, cmd, bash)? I'll really appreciate if somebody could help me here or indicate where I can find help. Regards. |