Help- Building of QuantLibAddin for OpenOffice4 Calc!

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Help- Building of QuantLibAddin for OpenOffice4 Calc!

christos.arvanitis

Dear all,

 

Recently I have tried ….at my own risk! to build the QuantLibAddin for OpenOffice4 Calc for ubuntu 14.04 LTS Trusty Tahr

 

I have installed carefully the OO SDK and configure the ENV VARS

 

OO4 is build with GCC 4.2.3 so I have build also the GCC 4.2.3 compiler with GCC 4.8.2

 

The installation steps I followed were:

 

Installation steps

 

  1. Build GCC 4.2.3 with GCC 4.8.2

  2. Install openoffice4 SDK and set SDK env properly

  3. Build with gcc 4.2.3 log4cxx, objecthandler quantlib

  4. Set envs

 

export PATH=/opt/openoffice4/sdk/bin:/opt/openoffice4/program/:${PATH}                                                                                                                      \

export LIBRARY_PATH=/usr/lib/i386-linux-gnu/:/usr/local/boost/lib/:/usr/local/qloo/lib/:/opt/openoffice4/sdk/lib/:${LIBRARY_PATH}        \

export LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu/:/usr/local/boost/lib/:/usr/local/qloo/lib/:/opt/openoffice4/sdk/lib/:${LD_LIBRARY_PATH}

 

and

 

export QL_PATH=/home/sofia/ql-build/QuantLib/ql                       \

export OH_PATH=/home/sofia/ql-build/ObjectHandler/oh          \

export QA_PATH=/home/sofia/ql-build/QuantLibAddin/qlo       \

export LG_PATH=/usr/local/qloo/include/log4cxx

 

 

5. from QuantLibAddin run autogen

 6. run configure

 

./configure                                                                                                          \

--prefix=/usr/local/qloo                                                                                \

--enable-addin-all                                                                                            \

--with-gensrc=/home/sofia/ql-build/gensrc                                        \

--with-oh=/home/sofia/ql-build/ObjectHandler                              \

CXX=/usr/local/gcc/4.2.3/bin/g++                                                            \

CPP=/usr/local/gcc/4.2.3/bin/cpp                                                            \

CPPFLAGS="-I/usr/local/qloo/include/ -I/opt/openoffice4/sdk/include"                                               \

LDFLAGS="-L/usr/local/qloo/lib -L/opt/openoffice4/sdk/lib -lQuantLib -lObjectHandler -llog4cxx"

 

make produces the following error:

 

cmsmarket.cpp:61: error: no matching function for call to 'QuantLib::CmsMarket::CmsMarket(const std::vector<QuantLib::Period, std::allocator<QuantLib::Period> >&, const std::vector<boost::shared_ptr<QuantLib::SwapIndex>, std::allocator<boost::shared_ptr<QuantLib::SwapIndex> > >&, const boost::shared_ptr<QuantLib::IborIndex>&, const std::vector<std::vector<QuantLib::Handle<QuantLib::Quote>, std::allocator<QuantLib::Handle<QuantLib::Quote> > >, std::allocator<std::vector<QuantLib::Handle<QuantLib::Quote>, std::allocator<QuantLib::Handle<QuantLib::Quote> > > > >&, std::vector<boost::shared_ptr<QuantLib::HaganPricer>, std::allocator<boost::shared_ptr<QuantLib::HaganPricer> > >&, const QuantLib::Handle<QuantLib::YieldTermStructure>&)'

 

/usr/local/qloo/include/ql/termstructures/volatility/swaption/cmsmarket.hpp:50: note: candidates are: QuantLib::CmsMarket::CmsMarket(const std::vector<QuantLib::Period, std::allocator<QuantLib::Period> >&, const std::vector<boost::shared_ptr<QuantLib::SwapIndex>, std::allocator<boost::shared_ptr<QuantLib::SwapIndex> > >&, const boost::shared_ptr<QuantLib::IborIndex>&, const std::vector<std::vector<QuantLib::Handle<QuantLib::Quote>, std::allocator<QuantLib::Handle<QuantLib::Quote> > >, std::allocator<std::vector<QuantLib::Handle<QuantLib::Quote>, std::allocator<QuantLib::Handle<QuantLib::Quote> > > > >&, const std::vector<boost::shared_ptr<QuantLib::CmsCouponPricer>, std::allocator<boost::shared_ptr<QuantLib::CmsCouponPricer> > >&, const QuantLib::Handle<QuantLib::YieldTermStructure>&)

/usr/local/qloo/include/ql/termstructures/volatility/swaption/cmsmarket.hpp:42: note:                 QuantLib::CmsMarket::CmsMarket(const QuantLib::CmsMarket&)

make[2]: *** [cmsmarket.lo] Error 1

make[1]: *** [all] Error 2

make: *** [all-recursive] Error 1

 

Can you help on that ? Can I find somewhere a detailed guidance to build QuantLibAddin for OO?

 

Thank you very much in advance for your help

 

Best Regards

 

Christos Arvanitis

 

 

 

 

 

 

 

 


MESSAGE CONFIDENTIALITY AND SECURITY NOTICE

=========================================

This message and/or its attachments may contain confidential and privileged information and is intended for the named person or entity to which it is addressed. Any use, copying or distribution of this information by anyone other than the intended recipient(s) is prohibited by law. If you receive this in error, please immediately delete it from your system and notify the sender.

The contents of this message contain personal opinions of the sender, which are not the official views of Piraeus Bank nor do they consist a provision of financial or advisory services unless expressly stated otherwise. This message is not a solicitation and/or an offer or acceptance of any proposal in relation to any contract or transaction unless expressly otherwise indicated in the message itself.

The Internet is not a secure or error-free environment, and Piraeus Bank does not accept liability for any loss or damage arising from the use of this message or from delayed, intercepted, corrupted or virus-infected e-mail transmission.

 


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Help- Building of QuantLibAddin for OpenOffice4 Calc!

Luigi Ballabio
This should be fixed now. Try pulling the latest code from the
QuantLib git repository.

Luigi


On Thu, May 22, 2014 at 5:14 PM,  <[hidden email]> wrote:

> Dear all,
>
>
>
> Recently I have tried ….at my own risk! to build the QuantLibAddin for
> OpenOffice4 Calc for ubuntu 14.04 LTS Trusty Tahr
>
>
>
> I have installed carefully the OO SDK and configure the ENV VARS
>
>
>
> OO4 is build with GCC 4.2.3 so I have build also the GCC 4.2.3 compiler with
> GCC 4.8.2
>
>
>
> The installation steps I followed were:
>
>
>
> Installation steps
>
>
>
>   1. Build GCC 4.2.3 with GCC 4.8.2
>
>   2. Install openoffice4 SDK and set SDK env properly
>
>   3. Build with gcc 4.2.3 log4cxx, objecthandler quantlib
>
>   4. Set envs
>
>
>
> export PATH=/opt/openoffice4/sdk/bin:/opt/openoffice4/program/:${PATH}
> \
>
> export
> LIBRARY_PATH=/usr/lib/i386-linux-gnu/:/usr/local/boost/lib/:/usr/local/qloo/lib/:/opt/openoffice4/sdk/lib/:${LIBRARY_PATH}
> \
>
> export
> LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu/:/usr/local/boost/lib/:/usr/local/qloo/lib/:/opt/openoffice4/sdk/lib/:${LD_LIBRARY_PATH}
>
>
>
> and
>
>
>
> export QL_PATH=/home/sofia/ql-build/QuantLib/ql                       \
>
> export OH_PATH=/home/sofia/ql-build/ObjectHandler/oh          \
>
> export QA_PATH=/home/sofia/ql-build/QuantLibAddin/qlo       \
>
> export LG_PATH=/usr/local/qloo/include/log4cxx
>
>
>
>
>
> 5. from QuantLibAddin run autogen
>
>  6. run configure
>
>
>
> ./configure
> \
>
> --prefix=/usr/local/qloo
> \
>
> --enable-addin-all
> \
>
> --with-gensrc=/home/sofia/ql-build/gensrc
> \
>
> --with-oh=/home/sofia/ql-build/ObjectHandler                              \
>
> CXX=/usr/local/gcc/4.2.3/bin/g++
> \
>
> CPP=/usr/local/gcc/4.2.3/bin/cpp
> \
>
> CPPFLAGS="-I/usr/local/qloo/include/ -I/opt/openoffice4/sdk/include"
> \
>
> LDFLAGS="-L/usr/local/qloo/lib -L/opt/openoffice4/sdk/lib -lQuantLib
> -lObjectHandler -llog4cxx"
>
>
>
> make produces the following error:
>
>
>
> cmsmarket.cpp:61: error: no matching function for call to
> 'QuantLib::CmsMarket::CmsMarket(const std::vector<QuantLib::Period,
> std::allocator<QuantLib::Period> >&, const
> std::vector<boost::shared_ptr<QuantLib::SwapIndex>,
> std::allocator<boost::shared_ptr<QuantLib::SwapIndex> > >&, const
> boost::shared_ptr<QuantLib::IborIndex>&, const
> std::vector<std::vector<QuantLib::Handle<QuantLib::Quote>,
> std::allocator<QuantLib::Handle<QuantLib::Quote> > >,
> std::allocator<std::vector<QuantLib::Handle<QuantLib::Quote>,
> std::allocator<QuantLib::Handle<QuantLib::Quote> > > > >&,
> std::vector<boost::shared_ptr<QuantLib::HaganPricer>,
> std::allocator<boost::shared_ptr<QuantLib::HaganPricer> > >&, const
> QuantLib::Handle<QuantLib::YieldTermStructure>&)'
>
>
>
> /usr/local/qloo/include/ql/termstructures/volatility/swaption/cmsmarket.hpp:50:
> note: candidates are: QuantLib::CmsMarket::CmsMarket(const
> std::vector<QuantLib::Period, std::allocator<QuantLib::Period> >&, const
> std::vector<boost::shared_ptr<QuantLib::SwapIndex>,
> std::allocator<boost::shared_ptr<QuantLib::SwapIndex> > >&, const
> boost::shared_ptr<QuantLib::IborIndex>&, const
> std::vector<std::vector<QuantLib::Handle<QuantLib::Quote>,
> std::allocator<QuantLib::Handle<QuantLib::Quote> > >,
> std::allocator<std::vector<QuantLib::Handle<QuantLib::Quote>,
> std::allocator<QuantLib::Handle<QuantLib::Quote> > > > >&, const
> std::vector<boost::shared_ptr<QuantLib::CmsCouponPricer>,
> std::allocator<boost::shared_ptr<QuantLib::CmsCouponPricer> > >&, const
> QuantLib::Handle<QuantLib::YieldTermStructure>&)
>
> /usr/local/qloo/include/ql/termstructures/volatility/swaption/cmsmarket.hpp:42:
> note:                 QuantLib::CmsMarket::CmsMarket(const
> QuantLib::CmsMarket&)
>
> make[2]: *** [cmsmarket.lo] Error 1
>
> make[1]: *** [all] Error 2
>
> make: *** [all-recursive] Error 1
>
>
>
> Can you help on that ? Can I find somewhere a detailed guidance to build
> QuantLibAddin for OO?
>
>
>
> Thank you very much in advance for your help
>
>
>
> Best Regards
>
>
>
> Christos Arvanitis
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> MESSAGE CONFIDENTIALITY AND SECURITY NOTICE
>
> =========================================
>
> This message and/or its attachments may contain confidential and privileged
> information and is intended for the named person or entity to which it is
> addressed. Any use, copying or distribution of this information by anyone
> other than the intended recipient(s) is prohibited by law. If you receive
> this in error, please immediately delete it from your system and notify the
> sender.
>
> The contents of this message contain personal opinions of the sender, which
> are not the official views of Piraeus Bank nor do they consist a provision
> of financial or advisory services unless expressly stated otherwise. This
> message is not a solicitation and/or an offer or acceptance of any proposal
> in relation to any contract or transaction unless expressly otherwise
> indicated in the message itself.
>
> The Internet is not a secure or error-free environment, and Piraeus Bank
> does not accept liability for any loss or damage arising from the use of
> this message or from delayed, intercepted, corrupted or virus-infected
> e-mail transmission.
>
>
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>



--
<https://implementingquantlib.blogspot.com>
<https://twitter.com/lballabio>

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Help- Building of QuantLibAddin for OpenOffice4 Calc!

Eric Ehlers-2
Hi Christos,

I hope that the error is resolved but even so - if you haven't done it  
already, I suggest you start with a hello world addin that does not  
link QuantLib.  After that you could try just one minimal  
QuantLibAddin function e.g. qlVersion().

Please keep us posted, I would be very happy if you were to get this working.

Kind Regards,
Eric

Quoting Luigi Ballabio <[hidden email]>:

> This should be fixed now. Try pulling the latest code from the
> QuantLib git repository.
>
> Luigi
>
>
> On Thu, May 22, 2014 at 5:14 PM,  <[hidden email]> wrote:
>> Dear all,
>>
>>
>>
>> Recently I have tried ….at my own risk! to build the QuantLibAddin for
>> OpenOffice4 Calc for ubuntu 14.04 LTS Trusty Tahr
>>
>>
>>
>> I have installed carefully the OO SDK and configure the ENV VARS
>>
>>
>>
>> OO4 is build with GCC 4.2.3 so I have build also the GCC 4.2.3 compiler with
>> GCC 4.8.2
>>
>>
>>
>> The installation steps I followed were:
>>
>>
>>
>> Installation steps
>>
>>
>>
>>   1. Build GCC 4.2.3 with GCC 4.8.2
>>
>>   2. Install openoffice4 SDK and set SDK env properly
>>
>>   3. Build with gcc 4.2.3 log4cxx, objecthandler quantlib
>>
>>   4. Set envs
>>
>>
>>
>> export PATH=/opt/openoffice4/sdk/bin:/opt/openoffice4/program/:${PATH}
>> \
>>
>> export
>> LIBRARY_PATH=/usr/lib/i386-linux-gnu/:/usr/local/boost/lib/:/usr/local/qloo/lib/:/opt/openoffice4/sdk/lib/:${LIBRARY_PATH}
>> \
>>
>> export
>> LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu/:/usr/local/boost/lib/:/usr/local/qloo/lib/:/opt/openoffice4/sdk/lib/:${LD_LIBRARY_PATH}
>>
>>
>>
>> and
>>
>>
>>
>> export QL_PATH=/home/sofia/ql-build/QuantLib/ql                       \
>>
>> export OH_PATH=/home/sofia/ql-build/ObjectHandler/oh          \
>>
>> export QA_PATH=/home/sofia/ql-build/QuantLibAddin/qlo       \
>>
>> export LG_PATH=/usr/local/qloo/include/log4cxx
>>
>>
>>
>>
>>
>> 5. from QuantLibAddin run autogen
>>
>>  6. run configure
>>
>>
>>
>> ./configure
>> \
>>
>> --prefix=/usr/local/qloo
>> \
>>
>> --enable-addin-all
>> \
>>
>> --with-gensrc=/home/sofia/ql-build/gensrc
>> \
>>
>> --with-oh=/home/sofia/ql-build/ObjectHandler                              \
>>
>> CXX=/usr/local/gcc/4.2.3/bin/g++
>> \
>>
>> CPP=/usr/local/gcc/4.2.3/bin/cpp
>> \
>>
>> CPPFLAGS="-I/usr/local/qloo/include/ -I/opt/openoffice4/sdk/include"
>> \
>>
>> LDFLAGS="-L/usr/local/qloo/lib -L/opt/openoffice4/sdk/lib -lQuantLib
>> -lObjectHandler -llog4cxx"
>>
>>
>>
>> make produces the following error:
>>
>>
>>
>> cmsmarket.cpp:61: error: no matching function for call to
>> 'QuantLib::CmsMarket::CmsMarket(const std::vector<QuantLib::Period,
>> std::allocator<QuantLib::Period> >&, const
>> std::vector<boost::shared_ptr<QuantLib::SwapIndex>,
>> std::allocator<boost::shared_ptr<QuantLib::SwapIndex> > >&, const
>> boost::shared_ptr<QuantLib::IborIndex>&, const
>> std::vector<std::vector<QuantLib::Handle<QuantLib::Quote>,
>> std::allocator<QuantLib::Handle<QuantLib::Quote> > >,
>> std::allocator<std::vector<QuantLib::Handle<QuantLib::Quote>,
>> std::allocator<QuantLib::Handle<QuantLib::Quote> > > > >&,
>> std::vector<boost::shared_ptr<QuantLib::HaganPricer>,
>> std::allocator<boost::shared_ptr<QuantLib::HaganPricer> > >&, const
>> QuantLib::Handle<QuantLib::YieldTermStructure>&)'
>>
>>
>>
>> /usr/local/qloo/include/ql/termstructures/volatility/swaption/cmsmarket.hpp:50:
>> note: candidates are: QuantLib::CmsMarket::CmsMarket(const
>> std::vector<QuantLib::Period, std::allocator<QuantLib::Period> >&, const
>> std::vector<boost::shared_ptr<QuantLib::SwapIndex>,
>> std::allocator<boost::shared_ptr<QuantLib::SwapIndex> > >&, const
>> boost::shared_ptr<QuantLib::IborIndex>&, const
>> std::vector<std::vector<QuantLib::Handle<QuantLib::Quote>,
>> std::allocator<QuantLib::Handle<QuantLib::Quote> > >,
>> std::allocator<std::vector<QuantLib::Handle<QuantLib::Quote>,
>> std::allocator<QuantLib::Handle<QuantLib::Quote> > > > >&, const
>> std::vector<boost::shared_ptr<QuantLib::CmsCouponPricer>,
>> std::allocator<boost::shared_ptr<QuantLib::CmsCouponPricer> > >&, const
>> QuantLib::Handle<QuantLib::YieldTermStructure>&)
>>
>> /usr/local/qloo/include/ql/termstructures/volatility/swaption/cmsmarket.hpp:42:
>> note:                 QuantLib::CmsMarket::CmsMarket(const
>> QuantLib::CmsMarket&)
>>
>> make[2]: *** [cmsmarket.lo] Error 1
>>
>> make[1]: *** [all] Error 2
>>
>> make: *** [all-recursive] Error 1
>>
>>
>>
>> Can you help on that ? Can I find somewhere a detailed guidance to build
>> QuantLibAddin for OO?
>>
>>
>>
>> Thank you very much in advance for your help
>>
>>
>>
>> Best Regards
>>
>>
>>
>> Christos Arvanitis
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> MESSAGE CONFIDENTIALITY AND SECURITY NOTICE
>>
>> =========================================
>>
>> This message and/or its attachments may contain confidential and privileged
>> information and is intended for the named person or entity to which it is
>> addressed. Any use, copying or distribution of this information by anyone
>> other than the intended recipient(s) is prohibited by law. If you receive
>> this in error, please immediately delete it from your system and notify the
>> sender.
>>
>> The contents of this message contain personal opinions of the sender, which
>> are not the official views of Piraeus Bank nor do they consist a provision
>> of financial or advisory services unless expressly stated otherwise. This
>> message is not a solicitation and/or an offer or acceptance of any proposal
>> in relation to any contract or transaction unless expressly otherwise
>> indicated in the message itself.
>>
>> The Internet is not a secure or error-free environment, and Piraeus Bank
>> does not accept liability for any loss or damage arising from the use of
>> this message or from delayed, intercepted, corrupted or virus-infected
>> e-mail transmission.
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform
>> available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> QuantLib-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>>
>
>
>
> --
> <https://implementingquantlib.blogspot.com>
> <https://twitter.com/lballabio>
>
> ------------------------------------------------------------------------------
> The best possible search technologies are now affordable for all companies.
> Download your FREE open source Enterprise Search Engine today!
> Our experts will assist you in its installation for $59/mo, no commitment.
> Test it for FREE on our Cloud platform anytime!
> http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users

===================================================
Eric Ehlers
nazcatech sprl | Brussels | http://www.nazcatech.be
* Distributed computing for pricing analytics
* Use Microsoft Excel as a client to the Grid


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users