Compiling the 1.7.0 Calc Addin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Compiling the 1.7.0 Calc Addin

alihassani

Hello,

 

Thank you in advance for your continued help.

 

I get two errors when compiling the quantlibaddin in Linux.

 

The first is when I enable the CPP addin in configure

 

***********Quantlibaddin CPP Compile Error**********************

 

g++ -DHAVE_CONFIG_H -I. -I../../qlo  -I../.. -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -MT QLADemo-qlademo.o -MD -MP -MF .deps/QLADemo-qlademo.Tpo -c -o QLADemo-qlademo.o `test -f 'qlademo.cpp' || echo './'`qlademo.cpp
In file included from
qlademo.cpp:19:0:
../../Addins/Cpp/addincpp.hpp:41:45: fatal error: Addins/Cpp/calibrationhelpers.hpp: No such file or directory
compilation terminated.
Makefile:378: recipe for target 'QLADemo-qlademo.o' failed

*****************************************************************

 

If I don't enable the CPP addin and only enable the Calc addin everything works fine. However,

 

When building the Quantlibaddin 1.7.0 Calc Addin I get the below error after running: make -f Makefile.oo  

 

 

***********Quantlibaddin Calc Compile Error**********************


mkdir -p /home/ali/libreoffice5.0_sdk/LINUXexample.out/slo/CalcAddinCpp
gcc -c -fpic -fvisibility=hidden -O -I. -I/home/ali/libreoffice5.0_sdk/LINUXexample.out/inc -I/home/ali/libreoffice5.0_sdk/LINUXexample.out/inc/examples -I/usr/lib/libreoffice/sdk/include -I/home/ali/libreoffice5.0_sdk/LINUXexample.out/inc/CalcAddinCpp -I -I -I -I -I -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -DHAVE_GCC_VISIBILITY_FEATURE -o/home/ali/libreoffice5.0_sdk/LINUXexample.out/slo/CalcAddinCpp/qladdin.o qladdin.cpp
qladdin.cpp: In function ‘com::sun::star::uno::Reference<com::sun::star::uno::XInterface> create_CalcAddins_impl(const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>&)’:
qladdin.cpp:182:55: error: invalid new-expression of abstract class type ‘CalcAddins_impl
    return static_cast< ::cppu::OWeakObject * > ( new CalcAddins_impl );
                                                      ^
In file included from
qladdin.cpp:21:0:
./qladdin.hpp:79:7: note:   because the following virtual functions are pure within ‘CalcAddins_impl’:
class CalcAddins_impl  
      ^
In file included from
/home/ali/libreoffice5.0_sdk/LINUXexample.out/inc/CalcAddinCpp/quantlib/XCalcAddins.hpp:8:0,
                from
./qladdin.hpp:57,
                from
qladdin.cpp:21:
/home/ali/libreoffice5.0_sdk/LINUXexample.out/inc/CalcAddinCpp/quantlib/XCalcAddins.hdl:100:86: note:   virtual com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::uno::Any> > quantlib::XCalcAddins::qlModelG2Calibrate(const com::sun::star::uno::Any&, const com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::uno::Any> >&, const com::sun::star::uno::Any&, const com::sun::star::uno::An
y&, const com::sun::star::uno::Any&, const com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::uno::Any> >&, const com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<int> >&, const com::sun::star::uno::Any&)
    virtual ::css::uno::Sequence< ::css::uno::Sequence< ::css::uno::Any > > SAL_CALL qlModelG2Calibrate( const ::css::uno::Any& ObjectId, const ::css::uno::Sequence< ::css::uno::Sequence< ::css::uno::Any > >& CalibrationHelpers, const ::css::uno::Any& Method, const ::css::uno::Any& EndCriteria, const ::css::uno::Any& Constraint, const ::css::uno::Sequence< ::css::uno::Sequence< ::css::uno::Any > >& Weights, const ::css::uno::Seq
                                                                                     ^
In file included from
/home/ali/libreoffice5.0_sdk/LINUXexample.out/inc/CalcAddinCpp/quantlib/XCalcAddins.hpp:8:0,
                from
./qladdin.hpp:57,
                from
qladdin.cpp:21:
/home/ali/libreoffice5.0_sdk/LINUXexample.out/inc/CalcAddinCpp/quantlib/XCalcAddins.hdl:101:86: note:   virtual com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::uno::Any> > quantlib::XCalcAddins::qlOneFactorAffineModelCalibrate(const com::sun::star::uno::Any&, const com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::uno::Any> >&, const com::sun::star::uno::Any&, const com::sun::
star::uno::Any&, const com::sun::star::uno::Any&, const com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::uno::Any> >&, const com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<int> >&, const com::sun::star::uno::Any&)
    virtual ::css::uno::Sequence< ::css::uno::Sequence< ::css::uno::Any > > SAL_CALL qlOneFactorAffineModelCalibrate( const ::css::uno::Any& ObjectId, const ::css::uno::Sequence< ::css::uno::Sequence< ::css::uno::Any > >& CalibrationHelpers, const ::css::uno::Any& Method, const ::css::uno::Any& EndCriteria, const ::css::uno::Any& Constraint, const ::css::uno::Sequence< ::css::uno::Sequence< ::css::uno::Any > >& Weights, const ::
                                                                                     ^
Makefile.oo:226: recipe for target '/home/ali/libreoffice5.0_sdk/LINUXexample.out/slo/CalcAddinCpp/qladdin.o' failed
make: *** [/home/ali/libreoffice5.0_sdk/LINUXexample.out/slo/CalcAddinCpp/qladdin.o] Error 1

************************************************************************************


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users