Error building QuantLib under MinGW

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

Error building QuantLib under MinGW

Cyril Schmidt-2
I am building QuantLib under MinGW, but at some point it gives me the following
error message:

libtool: link: ERROR: object name conflicts:
.libs/libMarketModelsProducts.lax/libMarketModelsProductsMultiStep.a//c/QUANTL~1.14/ql/MarketModels/Products/MultiStep/.libs/libMarketModelsProductsMultiStep.a

Can anyone enlighten me on how I can fix that?

Cheers,

Cyril

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building QuantLib under MinGW

Luigi Ballabio

Cyril,
        apologies for the delay. I haven't seen your post until today (it was
confined into purgatory by the Sourceforge filters.)

On Wed, 2007-05-09 at 08:49 +0200, Cyril Schmidt wrote:
> I am building QuantLib under MinGW, but at some point it gives me the following
> error message:
>
> libtool: link: ERROR: object name conflicts:
> .libs/libMarketModelsProducts.lax/libMarketModelsProductsMultiStep.a//c/QUANTL~1.14/ql/MarketModels/Products/MultiStep/.libs/libMarketModelsProductsMultiStep.a
>
> Can anyone enlighten me on how I can fix that?

What version of QuantLib are you building?

Later,
        Luigi


----------------------------------------

Better to remain silent and be thought a fool than to speak out and
remove all doubt.
-- Abraham Lincoln



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building QuantLib under MinGW

Cyril Schmidt-2
Luigi,

I am trying to build QuantLib 0.4.0 using gcc version 3.4.2 and Boost
1.34.0 under msys 1.0.10.

Regards,

Cyril

2007/5/23, Luigi Ballabio <[hidden email]>:

>
> Cyril,
>         apologies for the delay. I haven't seen your post until today (it was
> confined into purgatory by the Sourceforge filters.)
>
> On Wed, 2007-05-09 at 08:49 +0200, Cyril Schmidt wrote:
> > I am building QuantLib under MinGW, but at some point it gives me the following
> > error message:
> >
> > libtool: link: ERROR: object name conflicts:
> > .libs/libMarketModelsProducts.lax/libMarketModelsProductsMultiStep.a//c/QUANTL~1.14/ql/MarketModels/Products/MultiStep/.libs/libMarketModelsProductsMultiStep.a
> >
> > Can anyone enlighten me on how I can fix that?
>
> What version of QuantLib are you building?
>
> Later,
>         Luigi
>
>
> ----------------------------------------
>
> Better to remain silent and be thought a fool than to speak out and
> remove all doubt.
> -- Abraham Lincoln
>
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building QuantLib under MinGW

Luigi Ballabio
On Wed, 2007-05-23 at 21:25 +0200, Cyril Schmidt wrote:
> I am trying to build QuantLib 0.4.0 using gcc version 3.4.2 and Boost
> 1.34.0 under msys 1.0.10.

Cyril,
        did you try QuantLib 0.8.1? Did you have better luck?

Later,
        Luigi


----------------------------------------

The young man knows the rules, but the old man knows the exceptions.
-- O. W. Holmes



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building QuantLib under MinGW

Cyril Schmidt-2
Luigi,

I have tried QuantLib 0.8.0 with the same result as before :(

Now I am taking a deep breath before trying it with QuantLib 0.8.1,
although I suspect the problem is somewhere in my MSYS/MinGW setup
rather than in QuantLib.

Has anyone out there tried to build QuantLib 0.8.1 under MinGW?

Cheers,

Cyril
___

2007/6/6, Luigi Ballabio <[hidden email]>:

> On Wed, 2007-05-23 at 21:25 +0200, Cyril Schmidt wrote:
> > I am trying to build QuantLib 0.4.0 using gcc version 3.4.2 and Boost
> > 1.34.0 under msys 1.0.10.
>
> Cyril,
>         did you try QuantLib 0.8.1? Did you have better luck?
>
> Later,
>         Luigi
>
>
> ----------------------------------------
>
> The young man knows the rules, but the old man knows the exceptions.
> -- O. W. Holmes
>
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building QuantLib under MinGW

Luigi Ballabio

On Jun 6, 2007, at 10:10 PM, Cyril Schmidt wrote:
> I have tried QuantLib 0.8.0 with the same result as before :(
>
> Now I am taking a deep breath before trying it with QuantLib 0.8.1

Never mind. The only difference between 0.8.0 and 0.8.1 is in better
autodetection of Boost shared libraries when ./configure is run.  If
0.8.0 was already able to find them on your machine, you don't need to
upgrade.

Later,
        Luigi


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building QuantLib under MinGW

Cyril Schmidt-2
Luigi,

I finally succeeded in compiling QuantLib under MinGW. I do not know
what exactly was wrong with my previous attempt; most likely, MinGW
misconfiguration.

Below I outline the procedure that worked for me. I am using QuantLib 0.8.1 and
Boost 1.34.0.

1. Install MinGW using MinGW installer version 5.1.3
(available from http://sourceforge.net/project/showfiles.php?group_id=2435)
Select "Candidate" release and install to c:\mingw

2. Install MSYS using MSYS installer version 1.0.10.
Install to c:\msys\1.0

3. Unpack Boost to c:\boost_1_34_0

4. Unpack QuantLib to c:\quantlib-0.8.1

5. Add c:\mingw and c:\msys\1.0 to the path.

6. Open command prompt in c:\quantlib-0.8.1 and type:
sh
./configure --with-boost-include=/c/boost_1_34_0 --with-gnu-ld
make
make install

The latter gives an error message at make  install-exec-hook,
ignore it.

The libs libQuantLib.a and libQuantLib.la are in /usr/local/lib.

Regards,

Cyril



2007/6/6, Luigi Ballabio <[hidden email]>:

>
> On Jun 6, 2007, at 10:10 PM, Cyril Schmidt wrote:
> > I have tried QuantLib 0.8.0 with the same result as before :(
> >
> > Now I am taking a deep breath before trying it with QuantLib 0.8.1
>
> Never mind. The only difference between 0.8.0 and 0.8.1 is in better
> autodetection of Boost shared libraries when ./configure is run.  If
> 0.8.0 was already able to find them on your machine, you don't need to
> upgrade.
>
> Later,
>        Luigi
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building QuantLib under MinGW

Luigi Ballabio
On Wed, 2007-06-20 at 11:40 +0200, Cyril Schmidt wrote:
> I finally succeeded in compiling QuantLib under MinGW. I do not know
> what exactly was wrong with my previous attempt; most likely, MinGW
> misconfiguration.
>
> Below I outline the procedure that worked for me.

Thanks---I'll try and make it available from the site.

Later,
        Luigi


----------------------------------------

The rule on staying alive as a forecaster is to give 'em a number or
give 'em a date, but never give 'em both at once.
-- Jane Bryant Quinn



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building QuantLib under MinGW

Ferdinando M. Ametrano-3
In reply to this post by Cyril Schmidt-2
Hi Cyril

On 6/20/07, Cyril Schmidt <[hidden email]> wrote:
> The libs libQuantLib.a and libQuantLib.la are in /usr/local/lib.

where is /usr/local/lib supposed to be in my Windows system?

have you tried to build the test-suite too? (you willl need to build
boost before)

thank you

ciao -- Nando

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building QuantLib under MinGW

Cyril Schmidt-2
Hi Nando,

On my PC, where MSYS is installed to c:\msys\1.0,
/usr/local/lib is mapped to c:\msys\1.0\local\lib

You can get there by opening command prompt (cmd)
and typing

sh
cd /usr/local/lib

I did not try to build the test suite (I had not built Boost,
so I could not build test suite anyway)..

Cheers,

Cyril


2007/6/20, Ferdinando Ametrano <[hidden email]>:

> Hi Cyril
>
> On 6/20/07, Cyril Schmidt <[hidden email]> wrote:
> > The libs libQuantLib.a and libQuantLib.la are in /usr/local/lib.
>
> where is /usr/local/lib supposed to be in my Windows system?
>
> have you tried to build the test-suite too? (you willl need to build
> boost before)
>
> thank you
>
> ciao -- Nando
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users