Hi Eric,
sorry that I could not respong to you earlier. Before I get come to your response to my initial email I'd like to address that I have problems getting QuantLibAddIn compiled from the actual development backup tar-ball. With QL and ObjectHandler everything went fine. Here is what I did (Linux as OS): - Downloaded the development tar ball and extracted it locally. - Set CVSROOT to the just extracted local CVS repository and checked out the modules QuantLib, ObjectHandler and QuantLibAddin. - Compiled QuantLib and ObjectHandler successfully like that: $ ./autogen.sh $ ./configure --prefix=`pwd` $ make $ make install - Tried to compile QuantLibAddin like that: $ ./autogen.sh $ ./configure --prefix=`pwd` CPPFLAGS="-I<PATH_TO_OBJECTHANDLER> -I<PATH_TO_QUANTLIB>/include" LDFLAGS="-L<PATH_TO_OBJECTHANDLER>/lib -L<PATH_TO_QUANTLIB>/lib" $ make This make command seems to compile and link the directory QuantLibAddin/qla/objects successfully but runs into problems with the directory QuantLibAddin/qla/functions. Here is the end of the generated output: --- SCHNIPP --- g++ -DHAVE_CONFIG_H -I. -I. -I../../qla -I../.. -I/home/wpe/projects/quantlib_cvs_devel/ObjectHandler/ -I/home/wpe/projects/quantlib_cvs_devel/QuantLib/include -g -O2 -Wall -MT vanillaoption.lo -MD -MP -MF .deps/vanillaoption.Tpo -c vanillaoption.cpp -o vanillaoption.o >/dev/null 2>&1 /bin/sh ../../libtool --mode=link g++ -g -O2 -Wall -L/home/wpe/projects/quantlib_cvs_devel/ObjectHandler/lib -L/home/wpe/projects/quantlib_cvs_devel/QuantLib/lib -o libObjects.la asianoption.lo barrieroption.lo basketoption.lo cliquetoption.lo dividendvanillaoption.lo forwardvanillaoption.lo optionutils.lo stochasticprocess.lo vanillaoption.lo ar cru .libs/libObjects.a .libs/asianoption.o .libs/barrieroption.o .libs/basketoption.o .libs/cliquetoption.o .libs/dividendvanillaoption.o .libs/forwardvanillaoption.o .libs/optionutils.o .libs/stochasticprocess.o .libs/vanillaoption.o ranlib .libs/libObjects.a creating libObjects.la (cd .libs && rm -f libObjects.la && ln -s ../libObjects.la libObjects.la) make[3]: Leaving directory `/opt/projects/quantlib_cvs_devel/QuantLibAddin/qla/objects' Making all in functions make[3]: Entering directory `/opt/projects/quantlib_cvs_devel/QuantLibAddin/qla/functions' make[3]: *** No rule to make target `options.cpp', needed by `options.lo'. Stop. make[3]: Leaving directory `/opt/projects/quantlib_cvs_devel/QuantLibAddin/qla/functions' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/projects/quantlib_cvs_devel/QuantLibAddin/qla' make[1]: *** [all] Error 2 make[1]: Leaving directory `/opt/projects/quantlib_cvs_devel/QuantLibAddin/qla' make: *** [all-recursive] Error 1 [wpe@metallica QuantLibAddin]$ --- SCHNAPP --- Having a look in the corresponding QuantLibAddin/qla/functions/Makefile it seems that it expects a source file options.cpp. However in the corresponding directory there is no such file. Any help would be highly appreciated. Thanks in advance. wpe |
Hi Walter
> Having a look in the corresponding QuantLibAddin/qla/functions/Makefile it > seems that it expects a source file options.cpp. However in the > corresponding directory there is no such file. Much of the QuantLibAddin source code is autogenerated, you need to cd to the Autogen directory and run autogen.py. Sorry for not mentioning that anywhere!, I'll add it to the readme file. Some other notes on recompiling ... - compiling the Calc Linux addin requires some extra steps which I haven't gotten around to documenting. If you need that please let me know. The Calc addin on Windows should compile as documented. - On Windows I use MSDEV6 and those project workspace files are always up to date. I try to propogate changes to the other IDEs with grep/sed but they may be broken. Very much looking forward to your feedback. Regards Eric |
On 02/18/05 15:32:25, eric ehlers wrote:
> Much of the QuantLibAddin source code is autogenerated, you need to cd > to the Autogen directory and run autogen.py. Sorry for not mentioning > that anywhere!, I'll add it to the readme file. I just committed a couple of small patches---under Linux, 'make' will now invoke autogen.py before building the addins. > Some other notes on recompiling ... > - compiling the Calc Linux addin requires some extra steps which I > haven't gotten around to documenting. If you need that please let me > know. Or if you don't have Calc installed, use ./configure --disable-calc to inhibit Calc-specific compilations. Later, Luigi ---------------------------------------- Every solution breeds new problems. -- unknown |
Free forum by Nabble | Edit this page |