Help- Building of QuantLibAddin for OpenOffice4 Calc!

Posted by christos.arvanitis on
URL: http://quantlib.414.s1.nabble.com/Help-Building-of-QuantLibAddin-for-OpenOffice4-Calc-tp15306.html

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