installation is failing on cygwin

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

installation is failing on cygwin

adamquestio
I am trying to install quantlib on cygwin. Install fails on term structure directory. Here is the last couple of lines of install

 /bin/install -c -m 644 'eurodollarfuturesquote.hpp' '/usr/local/include/ql/quotes/eurodollarfuturesquote.hpp'
 /bin/install -c -m 644 'forwardvaluequote.hpp' '/usr/local/include/ql/quotes/forwardvaluequote.hpp'
 /bin/install -c -m 644 'futuresconvadjustmentquote.hpp' '/usr/local/include/ql/quotes/futuresconvadjustmentquote.hpp'
 /bin/install -c -m 644 'impliedstddevquote.hpp' '/usr/local/include/ql/quotes/impliedstddevquote.hpp'
 /bin/install -c -m 644 'simplequote.hpp' '/usr/local/include/ql/quotes/simplequote.hpp'
make[3]: Leaving directory `/dev/QuantLib-0.8.1/ql/quotes'
make[2]: Leaving directory `/dev/QuantLib-0.8.1/ql/quotes'
Making install in termstructures
make[2]: Entering directory `/dev/QuantLib-0.8.1/ql/termstructures'
Making install in volatilities
make[3]: Entering directory `/dev/QuantLib-0.8.1/ql/termstructures/volatilities'
/bin/sh ../../../libtool --tag=CXX --mode=link g++  -g -O2 -Wall  -L/usr/lib -o libVolatilities.la   abcd.lo blackvariancecurve.lo blackvariancesurface.lo capletvolatilitiesstructures.lo capstripper.lo cmsmarket.lo localvolsurface.lo sabr.lo sabrinterpolatedsmilesection.lo smilesection.lo swaptionconstantvol.lo swaptionvolcube.lo swaptionvolcube1.lo swaptionvolcube2.lo swaptionvoldiscrete.lo swaptionvolmatrix.lo  
ar cru .libs/libVolatilities.a .libs/abcd.o .libs/blackvariancecurve.o .libs/blackvariancesurface.o .libs/capletvolatilitiesstructures.o .libs/capstripper.o .libs/cmsmarket.o .libs/localvolsurface.o .libs/sabr.o .libs/sabrinterpolatedsmilesection.o .libs/smilesection.o .libs/swaptionconstantvol.o .libs/swaptionvolcube.o .libs/swaptionvolcube1.o .libs/swaptionvolcube2.o .libs/swaptionvoldiscrete.o .libs/swaptionvolmatrix.o
ar: .libs/abcd.o: No such file or directory
make[3]: *** [libVolatilities.la] Error 1
make[3]: Leaving directory `/dev/QuantLib-0.8.1/ql/termstructures/volatilities'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/dev/QuantLib-0.8.1/ql/termstructures'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/dev/QuantLib-0.8.1/ql'
make: *** [install-recursive] Error 1


Before calling install I run
bash configure --with-boost-include=/usr/include/boost-1_33_1/ --with-boost-lib=/usr/lib
then called make


Config.log also shows
configure:19714: checking for Boost unit-test framework
configure:19746: g++ -o conftest.exe -g -O2 -Wall  -I/usr/include/boost-1_33_1  -L/usr/lib conf
test.cpp  -lboost_unit_test_framework-gcc34 >&5
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lboost_unit_t
est_framework-gcc34
collect2: ld returned 1 exit status
configure:19752: $? = 1
configure: failed program was:
| #include <boost/test/unit_test.hpp>
|           using namespace boost::unit_test_framework;
|           test_suite*
|           init_unit_test_suite(int argc, char** argv)
|           {
|               return (test_suite*) 0;
|           }
|
configure:19789: g++ -o conftest.exe -g -O2 -Wall -DBOOST_TEST_MAIN -DBOOST_TEST_DYN_LINK  -I/u
sr/include/boost-1_33_1  -L/usr/lib conftest.cpp  -lboost_unit_test_framework-gcc34 >&5
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lboost_unit_t
est_framework-gcc34
collect2: ld returned 1 exit status
configure:19795: $? = 1
configure: failed program was:
| #include <boost/test/unit_test.hpp>
...
and several lines later

configure: failed program was:
| #include <boost/test/unit_test.hpp>
|           using namespace boost::unit_test_framework;
|           test_suite*
|           init_unit_test_suite(int argc, char** argv)
|           {
|               return (test_suite*) 0;
|           }
|
configure:19817: result: no
configure:19823: WARNING: Boost unit-test framework not found
configure:19825: WARNING: The test suite will be disabled
configure:19836: checking whether Boost unit-test streams work
configure:19861: g++ -c -g -O2 -Wall  -I/usr/include/boost-1_33_1 conftest.cpp >&5
configure:19867: $? = 0
configure:19872: result: yes
configure:19906: checking long long support
configure:19931: g++ -c -g -O2 -Wall  -I/usr/include/boost-1_33_1 conftest.cpp >&5
conftest.cpp: In function `int main()':
conftest.cpp:27: warning: unused variable 'i'
conftest.cpp:28: warning: unused variable 'j'
configure:19937: $? = 0
configure:19942: result: yes
configure:19970: checking for emacs
configure:19986: found /bin/emacs
configure:19997: result: emacs
configure:20021: checking where .elc files should go
configure:20034: $EMACS -batch -q -eval '(while load-path (princ (concat (car load-path
) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out
configure:20037: $? = 0
configure:20050: result: ${datadir}/emacs/site-lisp
configure:20072: checking for doxygen
configure:20105: result: no
configure:20112: checking for sed
configure:20142: result: /bin/sed
configure:20152: checking for latex
configure:20185: result: no


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..)

Thanks
Adam
Reply | Threaded
Open this post in threaded view
|

Re: installation is failing on cygwin

Luigi Ballabio
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: installation is failing on cygwin

adamquestio
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
Reply | Threaded
Open this post in threaded view
|

Re: installation is failing on cygwin

adamquestio
I am finally able to compile it, but without the makefile. I use the command

g++ -g -O2 -Wall -I/usr/include/boost-1_33_1 -L/lib BermudanSwaption.cpp -o BermudanSwaption -lQuantlib

I dont know what the problem with the makefile is.



I dont know what the problem

adam99 wrote
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
Reply | Threaded
Open this post in threaded view
|

Re: installation is failing on cygwin

Luigi Ballabio
On Sat, 2008-01-12 at 08:52 -0800, adam99 wrote:
> I am finally able to compile it, but without the makefile. I use the command
>
> g++ -g -O2 -Wall -I/usr/include/boost-1_33_1 -L/lib BermudanSwaption.cpp -o
> BermudanSwaption -lQuantlib
>
> I dont know what the problem with the makefile is.

Puzzling. Maybe it's picking up another libQuantLib.so?

Luigi


--

The purpose of abstraction is not to be vague, but to create a new
semantic level in which one can be absolutely precise.
-- W.E. Dijkstra



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: installation is failing on cygwin

Max-118
Hi Luigi,

It seems that this problem can be fixed by inserting "LDLIBS = -lQuantLib" in the Makefile (maybe need to alter the "configure" script).
Alternatively, do "export LDLIBS=-lQuantLib" at shell before "make examples".

BTW, I spot another error: "swapvaluation.cpp" should be renamed to "SwapValuation.cpp". Otherwise, "make examples" will fail on unix platform (e.g. cygwin).

Max

On Jan 24, 2008 12:42 AM, Luigi Ballabio <[hidden email]> wrote:
On Sat, 2008-01-12 at 08:52 -0800, adam99 wrote:
> I am finally able to compile it, but without the makefile. I use the command
>
> g++ -g -O2 -Wall -I/usr/include/boost-1_33_1 -L/lib BermudanSwaption.cpp -o
> BermudanSwaption -lQuantlib
>
> I dont know what the problem with the makefile is.

Puzzling. Maybe it's picking up another libQuantLib.so?

Luigi


--

The purpose of abstraction is not to be vague, but to create a new
semantic level in which one can be absolutely precise.
-- W.E. Dijkstra



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: installation is failing on cygwin

Luigi Ballabio
On Thu, 2008-01-24 at 17:30 +0800, Max wrote:
> It seems that this problem can be fixed by inserting "LDLIBS =
> -lQuantLib" in the Makefile (maybe need to alter the "configure"
> script).

Strange. Makefile.am in the Examples directories already specifies

BermudanSwaption_LDADD = ../../ql/libQuantLib.la

which should have the same effect.

> BTW, I spot another error: "swapvaluation.cpp" should be renamed to
> "SwapValuation.cpp". Otherwise, "make examples" will fail on unix
> platform (e.g. cygwin).

No, it works fine on unix (I'm writing this from a Linux machine
myself.) Makefile.am includes the correct dependency, namely,

SwapValuation_SOURCES = swapvaluation.cpp

and the make rules are (well, should be) generated accordingly. Can you
send me a copy of your generated Makefile for the swap example?

Later,
        Luigi

--

Present to inform, not to impress; if you inform, you will impress.
-- Fred Brooks



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: installation is failing on cygwin

Max-118
Hi Luigi,

On Jan 25, 2008 12:13 AM, Luigi Ballabio <[hidden email]> wrote:
On Thu, 2008-01-24 at 17:30 +0800, Max wrote:
> It seems that this problem can be fixed by inserting "LDLIBS =
> -lQuantLib" in the Makefile (maybe need to alter the "configure"
> script).

Strange. Makefile.am in the Examples directories already specifies

BermudanSwaption_LDADD = ../../ql/libQuantLib.la

which should have the same effect.

It seems the Makefile ignores "BermudanSwaption_LDADD"
 


> BTW, I spot another error: "swapvaluation.cpp" should be renamed to
> "SwapValuation.cpp". Otherwise, "make examples" will fail on unix
> platform ( e.g. cygwin).

No, it works fine on unix (I'm writing this from a Linux machine
myself.) Makefile.am includes the correct dependency, namely,

SwapValuation_SOURCES = swapvaluation.cpp

and the make rules are (well, should be) generated accordingly. Can you
send me a copy of your generated Makefile for the swap example?

Attached is the Makefile under "Examples/Swap". Again, it seems the Makefile ignores "SwapValuation_SOURCES"

See the command-line interaction below:

$ cd QuantLib-0.9.0/Examples/Swap

$ make examples
make: *** No rule to make target `SwapValuation', needed by `examples'.  Stop.

$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-pc-cygwin


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev

Makefile (23K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: installation is failing on cygwin

Luigi Ballabio
On Fri, 2008-01-25 at 09:48 +0800, Max wrote:

> See the command-line interaction below:
>
> $ cd QuantLib-0.9.0/Examples/Swap
>
> $ make examples
> make: *** No rule to make target `SwapValuation', needed by
> `examples'.  Stop.

Ok, I got this one (thanks for the Makefile.) The problem is that the
'examples' rule looks for SwapValuation, but under cygwin the generated
Makefile contains rules for building SwapValuation.exe instead. I'm
fixing it in the repository.

As for the link problem, I don't think adding -lQuantLib would be the
correct fix; adding that might cause the linker to pick up a previously
installed library instead of the one just compiled and not yet
installed. May you send me the Makefile for BermudanSwaption as well?

Thanks,
        Luigi



--

Newton's Law of Gravitation:
What goes up must come down. But don't expect it to come down
where you can find it. Murphy's Law applies to Newton's.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: installation is failing on cygwin

Max-118


On Jan 25, 2008 9:32 PM, Luigi Ballabio <[hidden email]> wrote:

As for the link problem, I don't think adding -lQuantLib would be the
correct fix; adding that might cause the linker to pick up a previously
installed library instead of the one just compiled and not yet
installed. May you send me the Makefile for BermudanSwaption as well?

The Makefile and log file are attached.

Here is the way how the error is produced:
$ cd Examples/BermudanSwaption/
$ make examples 2>&1 |tee make.log

BTW, I think it might be better to describe how to build examples and test-suite in the documentation (for different platforms, e.g. Linux, cygwin, windows etc.)

Thanks and regards,
Max

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev

Makefile (23K) Download Attachment
make.log.gz (19K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: installation is failing on cygwin

Luigi Ballabio
On Mon, 2008-01-28 at 09:51 +0800, Max wrote:

> On Jan 25, 2008 9:32 PM, Luigi Ballabio <[hidden email]>
> wrote:
>        
>         As for the link problem, I don't think adding -lQuantLib would
>         be the
>         correct fix; adding that might cause the linker to pick up a
>         previously
>         installed library instead of the one just compiled and not yet
>         installed. May you send me the Makefile for BermudanSwaption
>         as well?
>
> The Makefile and log file are attached.

Ok, it's the same problem as before---just with different symptoms.
The 'examples' target tries to build BermudanSwaption, but the Makefile
contains rules for BermudanSwaption.exe instead. Seeing that a
BermudanSwaption.cpp file exists, make tries some default rules---but of
course they don't include -lQuantLib.

If you edit the Makefile and replace the line

examples: BermudanSwaption

with:

examples: BermudanSwaption$(EXEEXT)

then 'make examples' should work correctly. (Or you can edit Makefile.in
in the same way and re-run configure.)

Later,
        Luigi


--

Flon's Law:
There is not now, and never will be, a language in
which it is the least bit difficult to write bad programs.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: installation is failing on cygwin

Max-118


On Jan 28, 2008 10:56 PM, Luigi Ballabio <[hidden email]> wrote:
If you edit the Makefile and replace the line

examples: BermudanSwaption

with:

examples: BermudanSwaption$(EXEEXT)

then 'make examples' should work correctly. (Or you can edit Makefile.in
in the same way and re-run configure.)

Yup, it works for "make examples" now. However, "make clean" still does not work.
To complete the fix, we should replace the line

CLEANFILES = SwapValuation

with:

CLEANFILES = SwapValuation$(EXEEXT)

Also, I guess similar fix should be applied to "test-suite/Makefile.am"

Thanks!

Best regards,
Max

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev