Re: BasisPointValue and ZSpread methods do not exist for JAVA

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/BasisPointValue-and-ZSpread-methods-do-not-exist-for-JAVA-tp14052p14064.html

It looks like it's installed correctly, and yes, that's the one.

Strange.  Try posting your modified cashflows.i and I'll try to see if
it works for me.

Luigi

On Thu, Feb 21, 2013 at 12:45 PM, sergvil <[hidden email]> wrote:

> Hello Luigi,
>
> I have executed all the SWIG process again after modifying cashflows.i and
> I'm still receiving the same error on execution.
>
> This is the output for:
>
> 1) make -C Java
>
>
>> make: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Java'
>> mkdir -p org/quantlib
> *
>> /usr/bin/swig -java -c++ -outdir org/quantlib \
>>             -package org.quantlib -o quantlib_wrap.cpp ../SWIG/quantlib.i
> *
>> make  all-am
>> make[1]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Java'
>> g++ -c quantlib_wrap.cpp -fno-strict-aliasing -g -O2
>> -I/home/arena/Desarrollo/jdk/jdk1.5.0_22/include
>> -I/home/arena/Desarrollo/jdk/jdk1.5.0_22/include/linux `quantlib-config
>> --cflags` -o quantlib_wrap.o
>> g++ -shared quantlib_wrap.o -Wl -o libQuantLibJNI.so `quantlib-config
>> --libs`
>> mkdir -p bin
>> find org/quantlib -name '*.java' | xargs
>> /home/arena/Desarrollo/jdk/jdk1.5.0_22/bin/javac -d bin
>> /home/arena/Desarrollo/jdk/jdk1.5.0_22/bin/jar cf QuantLib.jar -C bin org
>> make[1]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Java'
>> make: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Java'
>
> 2) sudo make Install
>
>
>> Making install in CSharp
>> make[1]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/CSharp'
>> /usr/bin/swig -csharp -c++ -outdir csharp \
>>             -namespace QuantLib -o cpp/quantlib_wrap.cpp
>> ../SWIG/quantlib.i
>> make  install-am
>> make[2]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/CSharp'
>> make[3]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/CSharp'
>> make[3]: No se hace nada para `install-exec-am'.
>> make[3]: No se hace nada para `install-data-am'.
>> make[3]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/CSharp'
>> make[2]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/CSharp'
>> make[1]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/CSharp'
>> Making install in Guile
>> make[1]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Guile'
>> /usr/bin/swig -guile -c++ -Linkage passive -scmstub -gh \
>>             -o quantlib_wrap.cpp ../SWIG/quantlib.i
>> make  install-am
>> make[2]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Guile'
>> make[3]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Guile'
>> make[3]: No se hace nada para `install-exec-am'.
>> make[3]: No se hace nada para `install-data-am'.
>> make[3]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Guile'
>> make[2]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Guile'
>> make[1]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Guile'
> *
>> Making install in Java
>> make[1]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Java'
>> make  install-am
>> make[2]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Java'
>> make[3]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Java'
>> cp -p libQuantLibJNI.so //usr/local/lib/libQuantLibJNI.so
>> cp -p QuantLib.jar //usr/local/lib/QuantLib.jar
>> make[3]: No se hace nada para `install-data-am'.
>> make[3]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Java'
>> make[2]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Java'
>> make[1]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Java'
> *
>> Making install in MzScheme
>> make[1]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/MzScheme'
>> /usr/bin/swig -mzscheme -c++ -o quantlib_wrap.cpp ../SWIG/quantlib.i
>> make  install-am
>> make[2]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/MzScheme'
>> make[3]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/MzScheme'
>> make[3]: No se hace nada para `install-exec-am'.
>> make[3]: No se hace nada para `install-data-am'.
>> make[3]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/MzScheme'
>> make[2]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/MzScheme'
>> make[1]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/MzScheme'
>> Making install in OCaml
>> make[1]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/OCaml'
>> /usr/bin/swig -ocaml -c++ -o quantlib_wrap.c ../SWIG/quantlib.i
>> ../SWIG/basketoptions.i:72: Warning 467: Overloaded method
>> AverageBasketPayoffPtr::AverageBasketPayoffPtr(boost::shared_ptr< Payoff >
>> const,Array const &) not supported (no type checking rule for
>> 'boost::shared_ptr< Payoff > const').
>> make  install-am
>> make[2]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/OCaml'
>> make[3]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/OCaml'
>> make[3]: No se hace nada para `install-exec-am'.
>> make[3]: No se hace nada para `install-data-am'.
>> make[3]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/OCaml'
>> make[2]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/OCaml'
>> make[1]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/OCaml'
>> Making install in Perl
>> make[1]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Perl'
>> /usr/bin/swig -perl -c++ -o quantlib_wrap.cpp ../SWIG/quantlib.i
>> make  install-am
>> make[2]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Perl'
>> make -f Makefile.quantlib
>> make[3]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Perl'
>> Skip blib/lib/QuantLib.pm (unchanged)
>> cc -c   -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV
>> -fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE
>> -D_FILE_OFFSET_BITS=64 -g -O2 -fno-strict-aliasing -Wno-unused
>> -Wno-uninitialized -Wno-sign-compare -Wno-write-strings
>> -DVERSION=\"1.2\" -DXS_VERSION=\"1.2\" -fPIC
>> "-I/usr/lib/perl5/5.14.2/i586-linux-thread-multi/CORE"   quantlib_wrap.cpp
>> rm -f blib/arch/auto/QuantLib/QuantLib.so
>> LD_RUN_PATH="/usr/local/lib" cc  -shared -fomit-frame-pointer
>> -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
>> -funwind-tables -fasynchronous-unwind-tables -g -Wall -pipe
>> quantlib_wrap.o  -o blib/arch/auto/QuantLib/QuantLib.so      \
>>    -lQuantLib   \
>>
>> chmod 755 blib/arch/auto/QuantLib/QuantLib.so
>> make[3]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Perl'
>> touch .build-stamp
>> make[3]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Perl'
>> make -f Makefile.quantlib install
>> make[4]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Perl'
>> Files found in blib/arch: installing files in blib/lib into architecture
>> dependent library tree
>> Appending installation info to
>> /usr/local/lib/perl5/5.14.2/i586-linux-thread-multi/perllocal.pod
>> make[4]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Perl'
>> make[3]: No se hace nada para `install-data-am'.
>> make[3]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Perl'
>> make[2]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Perl'
>> make[1]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Perl'
>> Making install in Python
>> make[1]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Python'
>> /usr/bin/swig -python -c++ -modern -outdir QuantLib \
>>             -o QuantLib/quantlib_wrap.cpp ../SWIG/quantlib.i
>> make  install-am
>> make[2]: se ingresa al directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Python'
>> CXXFLAGS="-g -O2 -fno-strict-aliasing -Wno-unused -Wno-uninitialized
>> -Wno-sign-compare -Wno-write-strings" /usr/bin/python setup.py build
>> running build
>> running build_py
>> copying QuantLib/QuantLib.py -> build/lib.linux-i686-2.7/QuantLib
>> running build_ext
>> sh: quantlib-config: no se encontrĂ³ la orden
>> sh: quantlib-config: no se encontrĂ³ la orden
>> building 'QuantLib._QuantLib' extension
>> g++ -fno-strict-aliasing -g -O2 -DNDEBUG -fomit-frame-pointer
>> -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
>> -funwind-tables -fasynchronous-unwind-tables -g -fPIC
>> -I/usr/include/python2.7 -c QuantLib/quantlib_wrap.cpp -o
>> build/temp.linux-i686-2.7/QuantLib/quantlib_wrap.o -Wno-unused -g -O2
>> -fno-strict-aliasing -Wno-unused -Wno-uninitialized -Wno-sign-compare
>> -Wno-write-strings
>> QuantLib/quantlib_wrap.cpp:149:20: fatal error: Python.h: No existe el
>> fichero o el directorio
>> compilation terminated.
>> error: command 'g++' failed with exit status 1
>> make[2]: *** [.build-stamp] Error 1
>> make[2]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Python'
>> make[1]: *** [install] Error 2
>> make[1]: se sale del directorio
>> `/home/arena/Desarrollo/MathLibs/QuantLib-SWIG-1.2/Python'
>> make: *** [install-recursive] Error 1
>
> I think that the process finishes correctly, but I'm not sure if
> libQuantLibJNI.so copied to /usr/local/lib is well generated or if this is
> the one I have to use.
>
> Thank you very much.
> Sergio.
>
>
>
> --
> View this message in context: http://quantlib.10058.n7.nabble.com/BasisPointValue-and-ZSpread-methods-do-not-exist-for-JAVA-tp14052p14063.html
> Sent from the quantlib-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users