Quantlib-SWIG

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Quantlib-SWIG

Die Optimisten
Hello,

has anyone installed it using SWIG with Ruby ?
I tried it half a year ago and failed, but now it's a newer version,
maybe things have changed...

Dependencies: Which libs-versions are necessary to compile it?

Where do I find a *beginners* doc for Quantlib? All seen on the
docu-Page is the Reference?
What could I read to get the "finance-wisdom" to use it?
(Maybe you want to answer me directly, because the mailing-list is about
the LIBRARY...)

thanks
Andrew




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Quantlib-SWIG

Die Optimisten
Hi,
I tried to compile latest (stable) Ver 1.10;
because logfiles are large, I attached them:
  log.txt;: stdout/stderr
  config.log    settings-Output

Why is CSharp compiled, when --disabled ?
Do others depend on this?

I disabled it because of
     csharp -c++ -outdir csharp -namespace QuantLib -o
cpp/quantlib_wrap.cpp ../SWIG/quantlib.i
error CS2007: Unrecognized command-line option: `-c++'
USING Linux Debian
------
guile: command not found    # Whats THAT for??
(Err 127) -- ignored        # ok
------
java -c++ -outdir org/quantlib \
             -package org.quantlib -o quantlib_wrap.cpp ../SWIG/quantlib.i
Unrecognized option: -c++
Error: Could not create the Java Virtual Machine.

But:
$ java -version
java version "1.7.0_131"
OpenJDK Runtime Environment (IcedTea 2.6.9) (7u131-2.6.9-2~deb7u1)
OpenJDK 64-Bit Server VM (build 24.131-b00, mixed mode)
-----------
Python:
creating build/temp.linux-x86_64-2.7/QuantLib
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c
QuantLib/quantlib_wrap.cpp -o
build/temp.linux-x86_64-2.7/QuantLib/quantlib_wrap.o -Wno-unused -g -O2
-fno-strict-aliasing -Wno-unused -Wno-uninitialized -Wno-sign-compare
-Wno-write-strings
gcc: error: QuantLib/quantlib_wrap.cpp: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command 'gcc' failed with exit status 4
------------
R:
/bin/bash: r: command not found
make[1]: [src/QuantLib.cpp] Error 127 (ignored)
mv src/QuantLib.R R/
mv: cannot stat `src/QuantLib.R': No such file or directory
make[1]: *** [src/QuantLib.cpp] Error 1
make[1]: Leaving directory
`/mnt/A4/TmpTmp-Anschauen/Filme/Temp/X/QuantLib/QuantLib-SWIG-1.10/R'
make: *** [all-recursive] Error 1

=> after all except Ruby are disabled!!

What is wrong here?

-- Thanks Andrew --


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev

config.log (14K) Download Attachment
log.txt (13K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Quantlib-SWIG

Luigi Ballabio
Hello,
    did you try to compile from a released archive or a git clone? It looks like, for some reason, make is trying to (re)generate the wrapper code. The errors are because ./configure didn't find swig, and now it's replacing it with a null string so "swig -csharp"  becomes "-csharp" and make tries to execute that.

Workarounds: either install swig (which you might need later if you change anything), or try again downloading the release from <https://sourceforge.net/projects/quantlib/files/QuantLib/1.10/other%20languages/>.

As for Ruby: I haven't been able to make that work for a while, but I haven't tackled the problem since I'm not a Ruby programmer.  It would be great if you managed to fix the build.

Hope this helps,
    Luigi


On Sun, Jun 25, 2017 at 7:06 PM Die Optimisten <[hidden email]> wrote:
Hi,
I tried to compile latest (stable) Ver 1.10;
because logfiles are large, I attached them:
  log.txt;: stdout/stderr
  config.log    settings-Output

Why is CSharp compiled, when --disabled ?
Do others depend on this?

I disabled it because of
     csharp -c++ -outdir csharp -namespace QuantLib -o
cpp/quantlib_wrap.cpp ../SWIG/quantlib.i
error CS2007: Unrecognized command-line option: `-c++'
USING Linux Debian
------
guile: command not found    # Whats THAT for??
(Err 127) -- ignored        # ok
------
java -c++ -outdir org/quantlib \
             -package org.quantlib -o quantlib_wrap.cpp ../SWIG/quantlib.i
Unrecognized option: -c++
Error: Could not create the Java Virtual Machine.

But:
$ java -version
java version "1.7.0_131"
OpenJDK Runtime Environment (IcedTea 2.6.9) (7u131-2.6.9-2~deb7u1)
OpenJDK 64-Bit Server VM (build 24.131-b00, mixed mode)
-----------
Python:
creating build/temp.linux-x86_64-2.7/QuantLib
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c
QuantLib/quantlib_wrap.cpp -o
build/temp.linux-x86_64-2.7/QuantLib/quantlib_wrap.o -Wno-unused -g -O2
-fno-strict-aliasing -Wno-unused -Wno-uninitialized -Wno-sign-compare
-Wno-write-strings
gcc: error: QuantLib/quantlib_wrap.cpp: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command 'gcc' failed with exit status 4
------------
R:
/bin/bash: r: command not found
make[1]: [src/QuantLib.cpp] Error 127 (ignored)
mv src/QuantLib.R R/
mv: cannot stat `src/QuantLib.R': No such file or directory
make[1]: *** [src/QuantLib.cpp] Error 1
make[1]: Leaving directory
`/mnt/A4/TmpTmp-Anschauen/Filme/Temp/X/QuantLib/QuantLib-SWIG-1.10/R'
make: *** [all-recursive] Error 1

=> after all except Ruby are disabled!!

What is wrong here?

-- Thanks Andrew --

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev