Login  Register

Fwd: Installation issues on Mac OS X 10.11.2

Posted by stephan buschmann on Jan 04, 2016; 10:09pm
URL: http://quantlib.414.s1.nabble.com/Installation-issues-on-Mac-OS-X-10-11-2-tp17214p17219.html

Hi,
looping the group.

Regards
Stephan
---------- Forwarded message ----------
From: stephan buschmann <[hidden email]>
Date: Mon, Jan 4, 2016 at 11:53 PM
Subject: Re: [Quantlib-users] Installation issues on Mac OS X 10.11.2
To: xvallee <[hidden email]>


Hi, 
once I had similar issues. Unfortunately I used different versions of boost in linking and including. Can this happen on your machine?
Now, QL1.7 runs smoothly on my mac (10.11.2).

If I run make in the BermudanSwaption directory I get the following commands for compiling and linking:

stephans-iMac:BermudanSwaption stephan$ make

clang++-mp-3.7 -DHAVE_CONFIG_H -I. -I../../ql  -I../.. -I../.. -I/Users/stephan/prog/boost_1_59_0  -w -m64 -O3 -g -Wall -std=c++11 -MT BermudanSwaption.o -MD -MP -MF .deps/BermudanSwaption.Tpo -c -o BermudanSwaption.o BermudanSwaption.cpp

mv -f .deps/BermudanSwaption.Tpo .deps/BermudanSwaption.Po

/bin/sh ../../libtool  --tag=CXX   --mode=link clang++-mp-3.7  -w -m64 -O3 -g -Wall -std=c++11  -L/usr/local/lib -o BermudanSwaption BermudanSwaption.o ../../ql/libQuantLib.la  

libtool: link: clang++-mp-3.7 -w -m64 -O3 -g -Wall -std=c++11 -o .libs/BermudanSwaption BermudanSwaption.o -Wl,-bind_at_load  -L/usr/local/lib ../../ql/.libs/libQuantLib.dylib


Does this help?


Regards

Stephan



On Sun, Jan 3, 2016 at 4:17 PM, xvallee <[hidden email]> wrote:
Hi,

I did as Luigi recommended and managed to "make && sudo make install"
quantlib.

I then ran the following command /g++ -I/opt/local/include/
-I/opt/local/include/boost BermudanSwaption.cpp     -o bermudanswaption
-L/opt/local/lib/ -lQuantLib/ in Examples/BermudanSwaption

and got a new error message (apologies for the length of it):
/Undefined symbols for architecture x86_64:
  "QuantLib::MultiStepSwap::nextTimeStep(QuantLib::CurveState const&,
std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::MultiStepSwap in BermudanSwaption-8ea63d.o
  "QuantLib::ExerciseAdapter::nextTimeStep(QuantLib::CurveState const&,
std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::ExerciseAdapter in BermudanSwaption-8ea63d.o
  "QuantLib::OneStepForwards::nextTimeStep(QuantLib::CurveState const&,
std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::OneStepForwards in BermudanSwaption-8ea63d.o

"QuantLib::BermudanExercise::BermudanExercise(std::__1::vector<QuantLib::Date,
std::__1::allocator&lt;QuantLib::Date> > const&, bool)", referenced from:
      _main in BermudanSwaption-8ea63d.o
  "QuantLib::MultiStepNothing::nextTimeStep(QuantLib::CurveState const&,
std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::MultiStepNothing in BermudanSwaption-8ea63d.o
  "QuantLib::MultiStepRatchet::nextTimeStep(QuantLib::CurveState const&,
std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::MultiStepRatchet in BermudanSwaption-8ea63d.o
  "QuantLib::MultiStepForwards::nextTimeStep(QuantLib::CurveState const&,
std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::MultiStepForwards in BermudanSwaption-8ea63d.o
  "QuantLib::MultiStepSwaption::nextTimeStep(QuantLib::CurveState const&,
std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::MultiStepSwaption in BermudanSwaption-8ea63d.o
  "QuantLib::OneStepOptionlets::nextTimeStep(QuantLib::CurveState const&,
std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::OneStepOptionlets in BermudanSwaption-8ea63d.o
  "QuantLib::MultiStepOptionlets::nextTimeStep(QuantLib::CurveState const&,
std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::MultiStepOptionlets in BermudanSwaption-8ea63d.o
  "QuantLib::OneStepCoinitialSwaps::nextTimeStep(QuantLib::CurveState
const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>
>&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::OneStepCoinitialSwaps in
BermudanSwaption-8ea63d.o
  "QuantLib::OneStepCoterminalSwaps::nextTimeStep(QuantLib::CurveState
const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>
>&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::OneStepCoterminalSwaps in
BermudanSwaption-8ea63d.o
  "QuantLib::MultiStepCoinitialSwaps::nextTimeStep(QuantLib::CurveState
const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>
>&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::MultiStepCoinitialSwaps in
BermudanSwaption-8ea63d.o
  "QuantLib::MultiStepInverseFloater::nextTimeStep(QuantLib::CurveState
const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>
>&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::MultiStepInverseFloater in
BermudanSwaption-8ea63d.o
  "QuantLib::MultiStepCoterminalSwaps::nextTimeStep(QuantLib::CurveState
const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>
>&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::MultiStepCoterminalSwaps in
BermudanSwaption-8ea63d.o
  "QuantLib::MultiStepCoterminalSwaptions::nextTimeStep(QuantLib::CurveState
const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>
>&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::MultiStepCoterminalSwaptions in
BermudanSwaption-8ea63d.o

"QuantLib::MultiStepPeriodCapletSwaptions::nextTimeStep(QuantLib::CurveState
const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long>
>&,
std::__1::vector<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> >,
std::__1::allocator<std::__1::vector&lt;QuantLib::MarketModelMultiProduct::CashFlow,
std::__1::allocator&lt;QuantLib::MarketModelMultiProduct::CashFlow> > >
>&)", referenced from:
      vtable for QuantLib::MultiStepPeriodCapletSwaptions in
BermudanSwaption-8ea63d.o
  "QuantLib::Error::Error(std::__1::basic_string<char,
std::__1::char_traits&lt;char>, std::__1::allocator<char> > const&, long,
std::__1::basic_string<char, std::__1::char_traits&lt;char>,
std::__1::allocator<char> > const&, std::__1::basic_string<char,
std::__1::char_traits&lt;char>, std::__1::allocator<char> > const&)",
referenced from:
      QuantLib::DiscretizedOption::reset(unsigned long) in
BermudanSwaption-8ea63d.o

QuantLib::Instrument::setupArguments(QuantLib::PricingEngine::arguments*)
const in BermudanSwaption-8ea63d.o
      QuantLib::Option::setupArguments(QuantLib::PricingEngine::arguments*)
const in BermudanSwaption-8ea63d.o
      QuantLib::Payoff::accept(QuantLib::AcyclicVisitor&) in
BermudanSwaption-8ea63d.o
      QuantLib::BlackVolTermStructure::accept(QuantLib::AcyclicVisitor&) in
BermudanSwaption-8ea63d.o
      QuantLib::SimpleQuote::value() const in BermudanSwaption-8ea63d.o
      QuantLib::Handle<QuantLib::Quote>::operator->() const in
BermudanSwaption-8ea63d.o
      ...
  "QuantLib::detail::operator<<(std::__1::basic_ostream<char,
std::__1::char_traits&lt;char> >&, QuantLib::detail::percent_holder
const&)", referenced from:
      calibrateModel(boost::shared_ptr<QuantLib::ShortRateModel> const&,
std::__1::vector<boost::shared_ptr&lt;QuantLib::CalibrationHelper>,
std::__1::allocator<boost::shared_ptr&lt;QuantLib::CalibrationHelper> > >
const&) in BermudanSwaption-8ea63d.o
      _main in BermudanSwaption-8ea63d.o
  "QuantLib::operator<<(std::__1::basic_ostream<char,
std::__1::char_traits&lt;char> >&, QuantLib::Date const&)", referenced from:
      QuantLib::InterestRateIndex::valueDate(QuantLib::Date const&) const in
BermudanSwaption-8ea63d.o
ld: symbol(s) not found for architecture x86_64
/

Any idea of what's wrong? Your help is greatly appreciated!



--
View this message in context: http://quantlib.10058.n7.nabble.com/Installation-issues-on-Mac-OS-X-10-11-2-tp17214p17218.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users



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

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users