Posted by
Joe Byers-2 on
URL: http://quantlib.414.s1.nabble.com/ObjectHandler-1-5-and-Quantlib-Addin-3-14-tp604p607.html
Eric,
Please see inline comments below
Joe
eric ehlers wrote:
> Hello
>
> On 2/14/07, Joe Byers <
[hidden email]> wrote:
>> All,
>>
>> I am trying to build the latest versions of Quantlib and Quantlib etc. I am having trouble with ObjectHandler and QuantlibAddin.
>> I have two problems. My system is Linux RHEL4. All src files are in /usr/local/src/QuantLib/.
>>
>> 1.
>> When I run make clean and try to rebuild either application, I get the following error.
>>
>> [root@financialseal QuantLibAddin-0.3.14]# make
>> Making all in gensrc
>> make[1]: Entering directory `/usr/local/src/QuantLib/QuantLibAddin-0.3.14/gensrc'
>> python scripts/gensrc.py -dqvl
>> Traceback (most recent call last):
>> File "scripts/gensrc.py", line 22, in ?
>> import addinqla
>> ImportError: No module named addinqla
>> make[1]: *** [.time-stamp] Error 1
>> make[1]: Leaving directory `/usr/local/src/QuantLib/QuantLibAddin-0.3.14/gensrc'
>> make: *** [all-recursive] Error 1
>>
>> I have to delete the src files and re-extract the tar.gz file to get rid of this error.
>>
>> Any thoughts?
>
> You need to set environment variables for gensrc as explained in the
> gensrc installation doc
>
http://www.gensrc.org/installation.htmlI set the GENSRC_DIR env variable, but I do not have a pythonpath variable on my Redhat linux system. Can I create one that does not effect other programs that use python?
Also, I created a .sh and .csh script that I placed in /etc/profile.d to set the GENSRC_DIR automatically for everyone. I hope this might be useful for someone.
**************
#SET UP OpenOffice script script (sh)
if [ -z "$GENSRC_DIR" ] ; then
GENSRC_DIR=/usr/local/src/QuantLib/gensrc
#PATH=$PATH:$OFFICE_PROGRAM_PATH:
fi
export GENSRC_DIR
********
SET UP GENSRC_DIR (csh)
if ( $?GENSRC_DIR ) then
exit
endif
setenv GENSRC_DIR=/usr/local/src/QuantLib/gensrc
#setenv PATH=$PATH:$OFFICE_PROGRAM_PATH:
**************
>
>> 2.
>> When compiling QuantlibAddin I also get the following error
>> couponvectors.cpp: In function `std::vector<std::vector<boost::any, std::allocator<boost::any> >, std::allocator<std::vector<boost::any, std::allocator<boost::any> > > > QuantLibAddin::flowAnalysis(QuantLibAddin::Leg)':
>> couponvectors.cpp:76: error: `SimpleCashFlow' is not a member of `QuantLib'
>> couponvectors.cpp:76: error: `SimpleCashFlow' is not a member of `QuantLib'
>> couponvectors.cpp:76: error: template argument 1 is invalid
>> couponvectors.cpp:76: error: invalid type in declaration before '=' token
>> couponvectors.cpp:77: error: `SimpleCashFlow' is not a member of `QuantLib'
>> couponvectors.cpp:77: error: `SimpleCashFlow' is not a member of `QuantLib'
>> couponvectors.cpp:77: error: template argument 1 is invalid
>> couponvectors.cpp:77: error: no matching function for call to `dynamic_pointer_cast(boost::shared_ptr<QuantLib::CashFlow>&)'
>> make[2]: *** [couponvectors.lo] Error 1
>> make[2]: Leaving directory `/usr/local/src/QuantLib/QuantLibAddin-0.3.14/qlo'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory `/usr/local/src/QuantLib/QuantLibAddin-0.3.14/qlo'
>> make: *** [all-recursive] Error 1
>>
>> Addin finds the simplecashflows.hpp file but the Class does not seem to be compiled in the Quantlib 3.14 library. I have recomplied Quantlib several time and do not know what to do. This is similar to another post but it was for a Windows system. I am working on a Linux system.
>
> There was a problem with the use of Quantlib::SimpleCashFlow within
> QuantLibAddin 0.3.13 on Windows but that's not the issue here.
>
> Not sure, this problem didn't come up in the testing and packaging.
> Are you sure you're picking up the QuantLib 0.3.14 header files? Does
> the declaration of Quantlib::SimpleCashFlow appear either indirectly
> or directly among the #defines of couponvectors.cpp?
>
Still working on this one.
> Regards,
> Eric
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
____________________________________________________________________________________
Don't get soaked. Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather-------------- next part --------------
An HTML attachment was scrubbed...
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users