Login  Register

Re: installation is failing on cygwin

Posted by adamquestio on Jan 12, 2008; 7:47am
URL: http://quantlib.414.s1.nabble.com/installation-is-failing-on-cygwin-tp11632p11634.html

I got QuantLib 0.9.0. I figured out the problem with boost was not having the correct library names
I copied all libboostXXX-gcc-mt.a to libboostXXX-mt.a, since configuration file was not able to find it. Then it configure run ok...

.QuantLib-0.9.0/Examples]$ ls -l /lib/libboost*
-r-xr-x---+ 1    Users   88556 Dec 21 06:17 /lib/libboost_date_time-gcc-mt-1_33_1.a
-r-xr-x---+ 1    Users   71364 Jan  5 14:31 /lib/libboost_date_time-gcc-mt-s-1_33_1.a
-r-xr-x---+ 1    Users   71364 Jan  3  2007 /lib/libboost_date_time-gcc-mt-s.a
-r-xr-x---+ 1    Users   88556 Jan  3  2007 /lib/libboost_date_time-gcc-mt.a
-r-xr-x---  1    None    88556 Jan 10 19:55 /lib/libboost_date_time-mt.a
-r-xr-x---+ 1    Users  110036 Dec 21 06:17 /lib/libboost_filesystem-gcc-mt-1_33_1.a
-r-xr-x---+ 1    Users  118426 Jan  5 14:31 /lib/libboost_filesystem-gcc-mt-s-1_33_1.a
-r-xr-x---+ 1    Users  118426 Jan  3  2007 /lib/libboost_filesystem-gcc-mt-s.a
-r-xr-x---+ 1    Users  110036 Jan  3  2007 /lib/libboost_filesystem-gcc-mt.a
-r-xr-x---  1    None   110036 Jan 10 19:55 /lib/libboost_filesystem-mt.a
-r-xr-x---+ 1    Users  101896 Dec 21 06:17 /lib/libboost_iostreams-gcc-mt-1_33_1.a
-r-xr-x---+ 1    Users   56026 Jan  5 14:31 /lib/libboost_iostreams-gcc-mt-s-1_33_1.a
-r-xr-x---+ 1    Users   56026 Jan  3  2007 /lib/libboost_iostreams-gcc-mt-s.a
-r-xr-x---+ 1    Users  101896 Jan  3  2007 /lib/libboost_iostreams-gcc-mt.a
-r-xr-x---  1    None   101896 Jan 10 20:48 /lib/libboost_iostreams-mt.a
-r-xr-x---+ 1    Users  366432 Dec 21 06:17 /lib/libboost_program_options-gcc-mt-1_33_1.a
-r-xr-x---+ 1    Users  443418 Jan  5 14:31 /lib/libboost_program_options-gcc-mt-s-1_33_1.a
-r-xr-x---+ 1    Users  443418 Jan  3  2007 /lib/libboost_program_options-gcc-mt-s.a
-r-xr-x---+ 1    Users  366432 Jan  3  2007 /lib/libboost_program_options-gcc-mt.a
-r-xr-x---  1    None   366432 Jan 10 20:48 /lib/libboost_program_options-mt.a
-r-xr-x---+ 1    Users  769502 Dec 21 06:17 /lib/libboost_python-gcc-mt-1_33_1.a
-r-xr-x---+ 1    Users  769502 Jan  3  2007 /lib/libboost_python-gcc-mt.a
-r-xr-x---  1    None   769502 Jan 10 20:48 /lib/libboost_python-mt.a
-r-xr-x---+ 1    Users  649470 Dec 21 06:17 /lib/libboost_regex-gcc-mt-1_33_1.a
-r-xr-x---+ 1    Users 1150996 Jan  5 14:31 /lib/libboost_regex-gcc-mt-s-1_33_1.a
-r-xr-x---+ 1    Users 1150996 Jan  3  2007 /lib/libboost_regex-gcc-mt-s.a
-r-xr-x---+ 1    Users  649470 Jan  3  2007 /lib/libboost_regex-gcc-mt.a
-r-xr-x---  1    None   649470 Jan 10 20:48 /lib/libboost_regex-mt.a
-r-xr-x---+ 1    Users 1262664 Dec 21 06:17 /lib/libboost_serialization-gcc-mt-1_33_1.a
-r-xr-x---+ 1    Users 1072488 Jan  5 14:31 /lib/libboost_serialization-gcc-mt-s-1_33_1.a
-r-xr-x---+ 1    Users 1072488 Jan  3  2007 /lib/libboost_serialization-gcc-mt-s.a
-r-xr-x---+ 1    Users 1262664 Jan  3  2007 /lib/libboost_serialization-gcc-mt.a
-r-xr-x---  1    None  1262664 Jan 10 20:48 /lib/libboost_serialization-mt.a
-r-xr-x---+ 1    Users  193206 Dec 21 06:17 /lib/libboost_signals-gcc-mt-1_33_1.a
-r-xr-x---+ 1    Users  138568 Jan  5 14:31 /lib/libboost_signals-gcc-mt-s-1_33_1.a
-r-xr-x---+ 1    Users  138568 Jan  3  2007 /lib/libboost_signals-gcc-mt-s.a
-r-xr-x---+ 1    Users  193206 Jan  3  2007 /lib/libboost_signals-gcc-mt.a
-r-xr-x---  1    None   193206 Jan 10 20:48 /lib/libboost_signals-mt.a
-r-xr-x---+ 1    Users  147776 Dec 21 06:17 /lib/libboost_thread-gcc-mt-1_33_1.a
-r-xr-x---+ 1    Users   92772 Jan  5 14:31 /lib/libboost_thread-gcc-mt-s-1_33_1.a
-r-xr-x---+ 1    Users   92772 Jan  3  2007 /lib/libboost_thread-gcc-mt-s.a
-r-xr-x---+ 1    Users  147776 Jan  3  2007 /lib/libboost_thread-gcc-mt.a
-r-xr-x---  1    None   147776 Jan 10 20:49 /lib/libboost_thread-mt.a
----------+ 1    None  6771282 Jan  6 10:58 /lib/libboost_unit_test_framework-gcc-1_33_1.a
-rwxrwxrwx  1    None  6771282 Jan  6 11:04 /lib/libboost_unit_test_framework-gcc-mt.a
-rwxr-xr-x  1    None  6771282 Jan 10 19:56 /lib/libboost_unit_test_framework-mt.a
-r-xr-x---+ 1    Users 2915630 Dec 21 06:17 /lib/libboost_wave-gcc-mt-1_33_1.a
-r-xr-x---+ 1    Users 2915630 Jan  5 14:31 /lib/libboost_wave-gcc-mt-s-1_33_1.a
-r-xr-x---+ 1    Users 2915630 Jan  3  2007 /lib/libboost_wave-gcc-mt-s.a
-r-xr-x---+ 1    Users 2915630 Jan  3  2007 /lib/libboost_wave-gcc-mt.a
-r-xr-x---  1    None  2915630 Jan 10 20:49 /lib/libboost_wave-mt.a

However I am still getting lots of error messages, when I am trying to build examples

..QuantLib-0.9.0/Examples]$ make examples
make -C BermudanSwaption examples
make[1]: Entering directory `/dev/QuantLib-0.9.0/Examples/BermudanSwaption'
g++ -g -O2 -Wall -I/usr/include/boost-1_33_1 -L/lib  BermudanSwaption.cpp   -o BermudanSwaption
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h: In member function `typename std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_copy(const std::_Rb_tree_node<_Val>*, std::_Rb_tree_node<_Val>*) [with _Key = std::string, _Val = std::pair<const std::string, boost::any>, _KeyOfValue = std::_Select1st<std::pair<const std::string, boost::any> >, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, boost::any> >]':
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h:1029: warning: '__top' might be used uninitialized in this function
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_tree.h:365: warning: '__tmp' might be used uninitialized in this function
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h: In copy constructor `QuantLib::Swap::Swap(const QuantLib::Swap&)':
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82: warning: '__cur' might be used uninitialized in this function
/tmp/ccBtl7cx.o: In function `_ZN8QuantLib28MultiStepCoterminalSwaptionsD1Ev':
/dev/QuantLib-0.9.0/Examples/BermudanSwaption/BermudanSwaption.cpp:(.text+0xa4): undefined reference to `QuantLib::LevenbergMarquardt::LevenbergMarquardt(double, double, double)'
/dev/QuantLib-0.9.0/Examples/BermudanSwaption/BermudanSwaption.cpp:(.text+0xe9): undefined reference to `QuantLib::Constraint::Constraint(boost::shared_ptr<QuantLib::Constraint::Impl> const&)'
/dev/QuantLib-0.9.0/Examples/BermudanSwaption/BermudanSwaption.cpp:(.text+0x14a): undefined reference to `QuantLib::EndCriteria::EndCriteria(unsigned int, unsigned int, double, double, double)'
/dev/QuantLib-0.9.0/Examples/BermudanSwaption/BermudanSwaption.cpp:(.text+0x19e): undefined reference to `QuantLib::CalibratedModel::calibrate(std::vector<boost::shared_ptr<QuantLib::CalibrationHelper>, std::allocator<boost::shared_ptr<QuantLib::CalibrationHelper> > > const&, QuantLib::OptimizationMethod&, QuantLib::EndCriteria const&, QuantLib::Constraint const&, std::vector<double, std::allocator<double> > const&)'
/dev/QuantLib-0.9.0/Examples/BermudanSwaption/BermudanSwaption.cpp:(.text+0x279): undefined reference to `boost::assertion_failed(char const*, char const*, char const*, long)'
/dev/QuantLib-0.9.0/Examples/BermudanSwaption/BermudanSwaption.cpp:(.text+0x2df): undefined reference to `boost::assertion_failed(char const*, char const*, char const*, long)'
/dev/QuantLib-0.9.0/Examples/BermudanSwaption/BermudanSwaption.cpp:(.text+0x330): undefined reference to `QuantLib::CalibrationHelper::impliedVolatility(double, double, unsigned int, double, double) const'

boost include are here
 ls /usr/include/boost-1_33_1/boost
algorithm                    function.hpp                   noncopyable.hpp            shared_array.hpp
aligned_storage.hpp          function_equal.hpp             nondet_random.hpp          shared_container_iterator.hpp
any.hpp                      function_output_iterator.hpp   none.hpp                   shared_ptr.hpp
archive                      functional                     none_t.hpp                 signal.hpp
array.hpp                    functional.hpp                 numeric     ...      

quantlib and include are under /usr/lib
.QuantLib-0.9.0/Examples]$ ls /usr/local/lib/
libQuantLib-0.9.0.a  libQuantLib.a  libQuantLib.la
...QuantLib-0.9.0/Examples]$ ls /usr/local/include/
ql


Luigi Ballabio wrote
On Sat, 2008-01-05 at 20:01 -0800, adam99 wrote:
> I am trying to install quantlib on cygwin.

Adam,
        may you try building QuantLib 0.9.0?


> I installed all the boost from cygwin, I dont see anywhere
> boost_unit_test_framework library. Does quantlib really need this (I am not
> sure if the problems I am having at make are related to this test warning..)

You'll need it if you want to build and run the test suite.

Luigi


--

These are my principles, and if you don't like them... Well, I have
others.
-- Groucho Marx



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
QuantLib-dev mailing list
QuantLib-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-dev