Login  Register

Re: Building and Installing the Libreoffice Addin

Posted by Eric Ehlers-3 on Nov 24, 2015; 7:21am
URL: http://quantlib.414.s1.nabble.com/Building-and-Installing-the-Libreoffice-Addin-tp17102p17115.html

Hi Ali,

> I tried following your instructions for version 1.6 and got the
> following error:
>
> gcc -c -fpic -fvisibility=hidden -O -I.
> -I/home/ali/libreoffice5.0_sdk/LINUXexample.out/inc
> -I/home/ali/libreoffice5.0_sdk/LINUX example.out/inc/examples
> -I/usr/lib/libreoffice/sdk/include
> -I/home/ali/libreoffice5.0_sdk/LINUXexample.out/inc/CalcAddinCpp -I/
> usr/lib -I/usr/lib -I/usr/lib -I/usr/lib -I -DUNX -DGCC -DLINUX
> -DCPPU_ENV=gcc3 -DHAVE_GCC_VISIBILITY_FEATURE -o/home/ali/libreo
> ffice5.0_sdk/LINUXexample.out/slo/CalcAddinCpp/qladdin.o qladdin.cpp
> qladdin.cpp:180:5: error: expected initializer before ‘SAL_THROW’
> SAL_THROW( () ) { ^ qladdin.cpp:185:7: error:
> ‘create_CalcAddins_impl’ was not declared in this scope

Please apply this patch to your copy of the source code:

https://github.com/eehlers/quantlib/commit/5854604095a026ebde81b5ac1f2b3517b2dfcf2c

> Thank you for your help. When you said this will be included in the
> 1.7 release did you mean that these instructions will not work using
> version 1.6?

No, that is not what I meant.  What I meant is that that documentation
will be included in the 1.7 release, so that next time it will not be
necessary to email us and ask for it :)

Very little has changed between the 1.6 and 1.7 builds and those
instructions apply to both.  Version 1.6 was built against LibreOffice
version 4.4.  The error that you are getting occurs because you are
building against LibreOffice version 5.0, hopefully the above patch
will fix that.

Also a correction was just made to the documentation, please reload the
file from the same link that I gave you before:

https://github.com/eehlers/quantlib/blob/v1.7.x/QuantLibAddin/Addins/Calc/HOWTO.TXT

Kind Regards,
Eric

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users