installing Quantlib-SWIG from source

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

installing Quantlib-SWIG from source

bruche
Hello,

I am trying to install Quantlib-SWIG from source (on Mac OS X), but
have my boost library in a non-standard location (/opt/local,
because I installed it from darwinports).

My Quantlib install is in /usr/local. I used the --with-boost-include
and --with-boost-lib to specify the location of boost while building Quantlib.

For the SWIG bit, I tried ./configure and make, but it complains that
it cannot find the boost includes:

In file included from /usr/local/include/ql/quantlib.hpp:24, from
                 quantlib_wrap.cpp:1440:
                 /usr/local/include/ql/qldefines.hpp:28:28: error:
                 boost/config.hpp: No such file or directory
etc.

I had a look at ./configure --help , but couldn't find any option to
specify the location of boost (like --with-boost-include).

Did I miss something?

Thanks.

Max



Reply | Threaded
Open this post in threaded view
|

Re: installing Quantlib-SWIG from source

Ken Anderson-2
Max,

I recently built Quantlib on OS X, and the only way I got this phase  
to work was to put the libs in /usr/local/lib and the headers in /usr/
local/include.

If you're building the Java bridge, this is the command line I used  
to successfully build the JNI library:

g++ -dynamiclib -l QuantLib -l QuantLibFunctions -l QuantLib-0.3.11 -
o libQuantLibJNI.jnilib *.o -framework JavaVM

I'm not sure if all the explicit libs were necessary...

Ken

On Feb 20, 2006, at 10:52 AM, [hidden email] wrote:

> Hello,
>
> I am trying to install Quantlib-SWIG from source (on Mac OS X), but
> have my boost library in a non-standard location (/opt/local,
> because I installed it from darwinports).
>
> My Quantlib install is in /usr/local. I used the --with-boost-include
> and --with-boost-lib to specify the location of boost while  
> building Quantlib.
>
> For the SWIG bit, I tried ./configure and make, but it complains that
> it cannot find the boost includes:
>
> In file included from /usr/local/include/ql/quantlib.hpp:24, from
>                  quantlib_wrap.cpp:1440:
>                  /usr/local/include/ql/qldefines.hpp:28:28: error:
>                  boost/config.hpp: No such file or directory
> etc.
>
> I had a look at ./configure --help , but couldn't find any option to
> specify the location of boost (like --with-boost-include).
>
> Did I miss something?
>
> Thanks.
>
> Max
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through  
> log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD  
> SPLUNK!
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Quantlib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users



Reply | Threaded
Open this post in threaded view
|

Re: installing Quantlib-SWIG from source

Luigi Ballabio
In reply to this post by bruche
On 2/20/06, [hidden email] <[hidden email]> wrote:
> I am trying to install Quantlib-SWIG from source (on Mac OS X), but
> have my boost library in a non-standard location (/opt/local,
> because I installed it from darwinports).
>
> I had a look at ./configure --help , but couldn't find any option to
> specify the location of boost (like --with-boost-include).
>
> Did I miss something?

No, it is me who missed it.  In next release, I'll try and make it
possible to run
./configure CXXFLAGS="-I/opt/local/include"
(which would also allow one to specify any other g++ flags.)

Thanks for the head-up,
    Luigi