Cygwin installation problem

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

Cygwin installation problem

Igor Gierymski
I apologize if this issue has already been addressed in a prior position.
I am able to make QuantLib 0.3.7 but it fails when linking test-suite:

make[1]: Entering directory `/home/coconut/QuantLib-0.3.7/test-suite'
/bin/bash ../libtool --mode=link g++  -g -O2  -L /usr/local/lib -o quantlib-test-suite.exe -lboost_unit_test_framework-gcc quantlibtestsuite.o americanoption.o
asianoptions.o barrieroption.o basketoption.o calendars.o capfloor.o cliquetoption.o compoundforward.o covariance.o dates.o daycounters.o digitaloption.o
distributions.o dividendeuropeanoption.o europeanoption.o factorial.o forwardoption.o instruments.o integrals.o interpolations.o jumpdiffusion.o  lowdiscrepancysequences.o matrices.o mersennetwister.o operators.o piecewiseflatforward.o quantooption.o quotes.o riskstats.o rounding.o solvers.o stats.o swap.o swaption.o termstructures.o old_pricers.o utilities.o ../ql/libQuantLib.la ../functions/ql/Functions/libQuantLibFunctions.la
g++ -g -O2 /usr/local/lib -o quantlib-test-suite.exe quantlibtestsuite.o americanoption.o asianoptions.o barrieroption.o basketoption.o calendars.o capfloor.o
cliquetoption.o compoundforward.o covariance.o dates.o daycounters.o digitaloption.o distributions.o dividendeuropeanoption.o europeanoption.o factorial.o
forwardoption.o instruments.o integrals.o interpolations.o jumpdiffusion.o lowdiscrepancysequences.o matrices.o mersennetwister.o operators.o piecewiseflatforward.o quantooption.o quotes.o riskstats.o rounding.o solvers.o stats.o swap.o swaption.o termstructures.o old_pricers.o utilities.o  -L/home/coconut/QuantLib-0.3.7/test-suite -lboost_unit_test_framework-gcc ../ql/.libs/libQuantLib.a -L/home/coconut/QuantLib-0.3.7/ql -L/home/coconut/QuantLib-0.3.7/ql/Calendars -L/home/coconut/QuantLib-0.3.7/ql/CashFlows -L/home/coconut/QuantLib-0.3.7/ql/DayCounters
-L/home/coconut/QuantLib-0.3.7/ql/FiniteDifferences -L/home/coconut/QuantLib-0.3.7/ql/Indexes -L/home/coconut/QuantLib-0.3.7/ql/Instruments -L/home/coconut/QuantLib-0.3.7/ql/Lattices -L/home/coconut/QuantLib-0.3.7/ql/Math -L/home/coconut/QuantLib-0.3.7/ql/Optimization -L/home/coconut/QuantLib-0.3.7/ql/Pricers -L/home/coconut/QuantLib-0.3.7/ql/PricingEngines
-L/home/coconut/QuantLib-0.3.7/ql/PricingEngines/Asian -L/home/coconut/QuantLib-0.3.7/ql/PricingEngines/Barrier
-L/home/coconut/QuantLib-0.3.7/ql/PricingEngines/Basket -L/home/coconut/QuantLib-0.3.7/ql/PricingEngines/CapFloor -L/home/coconut/QuantLib-0.3.7/ql/PricingEngines/Cliquet -L/home/coconut/QuantLib-0.3.7/ql/PricingEngines/Swaption
-L/home/coconut/QuantLib-0.3.7/ql/PricingEngines/Vanilla -L/home/coconut/QuantLib-0.3.7/ql/RandomNumbers
-L/home/coconut/QuantLib-0.3.7/ql/ShortRateModels -L/home/coconut/QuantLib-0.3.7/ql/ShortRateModels/CalibrationHelpers -L/home/coconut/QuantLib-0.3.7/ql/ShortRateModels/OneFactorModels -L/home/coconut/QuantLib-0.3.7/ql/ShortRateModels/TwoFactorModels -L/home/coconut/QuantLib-0.3.7/ql/TermStructures -L/home/coconut/QuantLib-0.3.7/ql/Volatilities ../functions/ql/Functions/.libs/libQuantLibFunctions.a -L/home/coconut/QuantLib-0.3.7/functions/ql/Functions
/usr/local/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status

make[1]: *** [quantlib-test-suite.exe] Error 1
make[1]: Leaving directory `/home/coconut/QuantLib-0.3.7/test-suite'
make: *** [all-recursive] Error 1

Any help would be greatly appreciated!
Reply | Threaded
Open this post in threaded view
|

Re: Cygwin installation problem

Ferdinando M. Ametrano-3
Hi Igor

At 05:18 PM 8/17/2004, you wrote:
>I apologize if this issue has already been addressed in a prior position.
>I am able to make QuantLib 0.3.7 but it fails when linking test-suite:

I'm not using cygwin, but it might be that you haven't compiled Boost unit
test framework.
QuantLib relies on the Boost header files only, while the test suite needs
the Boost unit test libraries to link with.

ciao -- Nando



Reply | Threaded
Open this post in threaded view
|

Re: Cygwin installation problem

Luigi Ballabio-2
On 2004.08.18 18:15, Ferdinando Ametrano wrote:

> Hi Igor
>
> At 05:18 PM 8/17/2004, you wrote:
>> I am able to make QuantLib 0.3.7 but it fails when linking test-
>> suite:
>
> I'm not using cygwin, but it might be that you haven't compiled Boost  
> unit test framework.
> QuantLib relies on the Boost header files only, while the test suite  
> needs the Boost unit test libraries to link with.

No, from the echoed commands it looks like the -L /usr/local/lib in the  
libtool invocation becomes just /usr/local/lib in the g++ invocation.
Igor, how did you pass that option?

Later,
        Luigi


Reply | Threaded
Open this post in threaded view
|

Re: Cygwin installation problem

Michael Oczkowski
Igor,

There is a previous thread related to this issue.  Search for Cygwin on

http://sourceforge.net/mailarchive/forum.php?forum=quantlib-users

It appears as if you cannot put a space in the -L command, i.e.,
-L ${DIR} will fail whereas -L${DIR} will not.

Luigi, is this a known bug with libtool under g++?

Mike


> On 2004.08.18 18:15, Ferdinando Ametrano wrote:
> > Hi Igor
> >
> > At 05:18 PM 8/17/2004, you wrote:
> >> I am able to make QuantLib 0.3.7 but it fails when linking test-
> >> suite:
> >
> > I'm not using cygwin, but it might be that you haven't compiled Boost
> > unit test framework.
> > QuantLib relies on the Boost header files only, while the test suite
> > needs the Boost unit test libraries to link with.
>
> No, from the echoed commands it looks like the -L /usr/local/lib in the
> libtool invocation becomes just /usr/local/lib in the g++ invocation.
> Igor, how did you pass that option?
>
> Later,
> Luigi
>
>



-------------------------------------------
Mike Oczkowski, Ph.D.
Assistant Professor of Computational Physics
Francis Marion University
Dept. of Physics and Astronomy
P.O. Box 100547
Florence, SC 29501
(843) 661-1444
[hidden email]
-------------------------------------------



Reply | Threaded
Open this post in threaded view
|

Re: Cygwin installation problem

Luigi Ballabio-2
On 2004.08.19 15:33, Michael Oczkowski wrote:
> Igor,
>
> It appears as if you cannot put a space in the -L command, i.e.,
> -L ${DIR} will fail whereas -L${DIR} will not.
>
> Luigi, is this a known bug with libtool under g++?

Err, I don't know. My box was configured so that /usr/local/lib is one  
of the default places where to look for libraries...

Later,
        Luigi


Reply | Threaded
Open this post in threaded view
|

Re: Cygwin installation problem

Igor Gierymski
In reply to this post by Michael Oczkowski
You hit the nail the on the head. I had to edit the Makefile in the
test-suite directory. I changed
LDFLAGS = -L /usr/local/lib
to
LDFLAGs = -L/usr/local/lib

And now it builds. Thanks alot!