Re: Failure to build quantlib-python on Mandrake 9.1

Posted by "Thomas Plümpe" on
URL: http://quantlib.414.s1.nabble.com/Failure-to-build-quantlib-python-on-Mandrake-9-1-tp2670p2672.html

Thanks Luigi, danke Dirk,

> > I have installed QuantLib-0.3.3 and swig-1.3.11
The README indeed says 1.3.18 at least, I wonder why I didn't see this
yesterday when I read and reread (and reread...) it. The newest version
packaged for Mandrake apparently is 1.3.11. But if I understand you
correctly I won't need it anyway.

> > g++ -DNDEBUG -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -fPIC -I/usr/local/include -I/usr/local/include -I/usr/include/python2.2 -c QuantLib/quantlib_wrap.cpp -o build/temp.linux-i686-2.2/quantlib_wrap.o
> > QuantLib/quantlib_wrap.cpp:945:6: #error using an old version of QuantLib, please update
>
> Do you have an older version installed?
$ rpm -qa | grep -i quantlib
QuantLib-0.3.3-1

I have compiled 0.3.1 quite some time ago and just found several
libQuantLib.* files in /usr/local/lib. I removed them and tried the
build again, but I am still getting the same output warning of an old
version and then after a huge number of parse errors:
> > error: command 'g++' failed with exit status 1

> Works rather flawlessly for me with the Debian builds.
>
> I just do
>
>   CC="$(cxxcompiler)" \
>   CXX="$(cxxcompiler)" \
>   CFLAGS="$(compilerflags)" \
>   CXXFLAGS="$(compilerflags)" \
>   $(PYTHON) setup.py build
>
> and
>
>   $(PYTHON) setup.py install --prefix=$(debtmp)/usr
>  
> I used to use 2.2, and have now switched to 2.3.
I'm using 2.2.1, not setting the CC, CXX, etc. variables (I wouldn't
know what values to set them to). Do you suspect that to cause the
error?

Thanks again,
Thomas