Quantlib and SWIG compilation

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

Quantlib and SWIG compilation

Paolo Tenconi
Hi,
I've just begun using quantlib in R trough swig on Ubuntu. All is fine. Then I added a new swig binding file (and added to ql.i), moved to the R subdirectory and run make but the compilation process despite this small change lasts for many hours, is this normal?

Can anyone in the list tell me if this way to recompile is ok or there is a quick one to perform experiments? The slow compilation can also depends on my machine which is not very powerful.

Last question: how one can contribute binding files to the community?

Many thanks for any help
Paolo


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Quantlib and SWIG compilation

Luigi Ballabio
Hi Paolo,
    unfortunately it might be normal.  Currently SWIG generates a
single, huge source file for all the bindings.  If your machine
doesn't have a lot of memory, it might be swapping on disk, which
makes the compilation quite slow.

As for your second question, you can either post new bindings here or
open an issue on the patch manager at Sourceforge.

Later,
    Luigi


On Thu, Nov 22, 2012 at 9:53 AM, Paolo Tenconi <[hidden email]> wrote:

> Hi,
> I've just begun using quantlib in R trough swig on Ubuntu. All is fine. Then
> I added a new swig binding file (and added to ql.i), moved to the R
> subdirectory and run make but the compilation process despite this small
> change lasts for many hours, is this normal?
>
> Can anyone in the list tell me if this way to recompile is ok or there is a
> quick one to perform experiments? The slow compilation can also depends on
> my machine which is not very powerful.
>
> Last question: how one can contribute binding files to the community?
>
> Many thanks for any help
> Paolo
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users