|
From: Banerjee, T. K <tap...@jp...> - 2019-08-07 17:13:22
|
Hi Luigi, Qlib experts,
I fixed both issues the way u mentioned below. Now Quantlib.jar and libJNI.so created fine
When I try to run example programs, I get below error:
java -cp ".:QuantLib.jar" -Djava.library.path=/home/podsintr/qlib/lib examples.FRA
/home/podsintr/qlib/QuantLib-SWIG-1.15/Java > java -cp ".:QuantLib.jar" -Djava.library.path=/home/podsintr/qlib/lib examples.FRA
Exception in thread "main" java.lang.RuntimeException: Missing Euribor3M Actual/360 fixing for May 19th, 2006
at org.quantlib.QuantLibJNI.ForwardRateAgreement_spotValue(Native Method)
at org.quantlib.ForwardRateAgreement.spotValue(ForwardRateAgreement.java:51)
at examples.FRA.main(FRA.java:49)
/home/podsintr/qlib/QuantLib-SWIG-1.15/Java > java -cp ".:QuantLib.jar" -Djava.library.path=/home/podsintr/qlib/lib examples.Bonds
Today: Monday, September 15th, 2008
Settlement date: Thursday, September 18th, 2008
Exception in thread "main" java.lang.RuntimeException: Boost assertion failed: px != 0
at org.quantlib.QuantLibJNI.IborCouponPricer_setCapletVolatility__SWIG_0(Native Method)
at org.quantlib.IborCouponPricer.setCapletVolatility(IborCouponPricer.java:43)
at examples.Bonds.main(Bonds.java:497)
Any idea, why is the issue & how to fix?
Can I run any other example program to see it I working?
FYI: We are using 1.56 version Boost (to make it compatible gcc 44) , 1.15 version of Quantlib.
Thanks,
From: Luigi Ballabio [mailto:lui...@gm...]
Sent: Tuesday, August 06, 2019 3:14 AM
To: Banerjee, Tapas K <tap...@jp...>
Cc: QuantLib developers <qua...@li...>
Subject: Re: [Quantlib-dev] QuantLib-SWIG-1.15 build issue
Thanks. The first error,
On Mon, Aug 5, 2019 at 10:16 PM Banerjee, Tapas K via QuantLib-dev <qua...@li...<mailto:qua...@li...>> wrote:
checking for QuantLib... ./configure: line 4029: quantlib-config: command not found
means that you either didn't install QuantLib (the C++ library) or that you installed it in a non-standard location and configure can't find it. In the first case, install QuantLib (i.e., run `make install` and possibly `ldconfig` after you compile it). In the second case, if you installed it in /some/other/path, add /some/other/path/bin to PATH before running configure.
The second error,
config.status: error: cannot find input file: `CSharp/Makefile.in<https://secureweb.jpmchase.net/readonly/http:/Makefile.in>' # We don’t have C# compiler, so thought it is OK to infore.
blocks configure and prevents it from continuing and creating the Java Makefile (Makefile.in<https://secureweb.jpmchase.net/readonly/http:/Makefile.in> is not the makefile; it's the input that configure processes to create the makefile). Did you remove CSharp/Makefile.in<https://secureweb.jpmchase.net/readonly/http:/Makefile.in>? If so, start over from a clean download.
Luigi
This message is confidential and subject to terms at: https://www.jpmorgan.com/emaildisclaimer including on confidential, privileged or legal entity information, viruses and monitoring of electronic messages. If you are not the intended recipient, please delete this message and notify the sender immediately. Any unauthorized use is strictly prohibited.
|