|
From: Banerjee, T. K <tap...@jp...> - 2019-07-02 14:29:50
|
Hi Luigi, Thanks for your response . I set LD_LIBRARY_PATH before. Again tried, but no luck. (See below). Can version of library , g++/Linux cause this issue? Any other ideas I can try? I am using QuantLib-SWIG-1.15, QuantLib--1.15, boost_1_68_0, gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) bash-4.1$ LD_LIBRARY_PATH=/home/v574933/quantlib/qlib/lib bash-4.1$ export LD_LIBRARY_PATH bash-4.1$ echo $LD_LIBRARY_PATH Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/v574933/quantlib/qlib/lib/libQuantLibJNI.so: /home/v574933/quantlib/qlib/lib/libQuantLibJNI.so: undefined symbol: _ZNK8QuantLib13TermStructure13referenceDateEv From: Luigi Ballabio [mailto:lui...@gm...] Sent: Tuesday, July 02, 2019 4:59 AM To: Tapas Banerjee <ta...@ao...> Cc: QuantLib developers <qua...@li...> Subject: Re: [Quantlib-dev] Help! Quantlib Java SWIG build issue Try setting the environment variable LD_LIBRARY_PATH to <base-dir>/quantlib/qlib/lib Luigi On Tue, Jul 2, 2019 at 3:56 AM Tapas Banerjee via QuantLib-dev <qua...@li...<mailto:qua...@li...>> wrote: Hi Luigi & experts, I need urgent help to build Quantlib SWIG for Java Using the step mentioned here https://sourceforge.net/p/quantlib/mailman/message/19608067/<https://secureweb.jpmchase.net/readonly/https:/sourceforge.net/p/quantlib/mailman/message/19608067/> I could build libQuantLibJNI.so<https://secureweb.jpmchase.net/readonly/http:/libQuantLibJNI.so>, libQuantLib.so<https://secureweb.jpmchase.net/readonly/http:/libQuantLib.so>, QuantLib.jar suecssfully But while running example file, I am getting below error.. Any idea - what I am doing wrong and how to fix? _ZNK8QuantLib13TermStructure13referenceDateEv ...... when I load System.loadLibrary("QuantLibJNI"); I created below simple example call stripping all Quantlib include, still getting error ----- bash-4.1$ java -cp ./QuantLib.jar:. -Djava.library.path=/<base-dir>/quantlib/qlib/lib ex.Test Exception in thread "main" java.lang.UnsatisfiedLinkError: /libQuantLibJNI.so<https://secureweb.jpmchase.net/readonly/http:/libQuantLibJNI.so>: / /libQuantLibJNI.so<https://secureweb.jpmchase.net/readonly/http:/libQuantLibJNI.so>: undefined symbol:_ZNK8QuantLib13TermStructure13referenceDateEv at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938) 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. |