a problem on building quantlibXL

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

a problem on building quantlibXL

Rui Yang
Dear all,

I'm new to quantlib. I tried to build quantlibXLAllDynamic_vc9.sln. I got the results:
"========== Rebuild All: 10 succeeded, 0 failed, 0 skipped =========="
But when I try to include "QuantLibXLDynamic-vc90-mt-gd-0_9_7.xll" into the my excel add-ins, I got a msg "QuantLibXLDynamic-vc90-mt-gd-0_9_7.xll is not a valid add-in". Can anybody help me with this? Really appreciate your help!

I attach parts of the building output here for your reference (mainly the results of building all the projects). I only see some warning msg. No errors, no fatal errors.

1>------ Rebuild All started: Project: aprutil, Configuration: Debug Win32 ------
2>------ Rebuild All started: Project: apr, Configuration: Debug Win32 ------
2>Deleting intermediate and output files for project 'apr', configuration 'Debug|Win32'
1>Deleting intermediate and output files for project 'aprutil', configuration 'Debug|Win32'
1>Compiling...
2>Compiling...
2>access.c
1>apr_brigade.c
2>waitio.c
1>apr_buckets.c
1>apr_buckets_alloc.c
2>version.c
1>apr_buckets_eos.c
2>utf8.c
1>apr_buckets_file.c

....

1>Build log was saved at "file://c:\build_ql_0_9_7\log4cxx\msvc\build\vc90\Debug\aprutil\aprutil_obj\BuildLog.htm"
1>aprutil - 0 error(s), 0 warning(s)
2>filestat.c
3>------ Rebuild All started: Project: qlgensrc, Configuration: All Win32 ------
3>Performing Makefile project actions
2>filepath_util.c
3>Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
3>Copyright (C) Microsoft Corporation.  All rights reserved.
3> if not exist build\vc mkdir build\vc
2>filepath.c
3> ..\..\gensrc\gensrc.py -a --oh_dir=..\..\ObjectHandler
2>filedup.c
2>fileacc.c
2>errorcodes.c
2>env.c
2>dso.c
2>dir.c
2>copy.c
2>common.c
2>charset.c
2>apr_tables.c
2>apr_strtok.c
2>apr_strnatcmp.c
2>apr_strings.c
2>apr_snprintf.c
2>apr_random.c
2>apr_pools.c
2>Generating Code...
2>Compiling...
2>apr_hash.c
2>apr_fnmatch.c

...

2>Creating library...
2>Build log was saved at "file://c:\build_ql_0_9_7\log4cxx\msvc\build\vc90\Debug\apr\apr_obj\BuildLog.htm"
2>apr - 0 error(s), 0 warning(s)
4>------ Rebuild All started: Project: log4cxx, Configuration: Debug Win32 ------
4>Deleting intermediate and output files for project 'log4cxx', configuration 'Debug|Win32'
3>begin ...
3> begin generating Excel...
3>c:\build_ql_0_9_7\QuantLibXL\qlxl/register/register_abcd.cpp:                                         unchanged
3>c:\build_ql_0_9_7\QuantLibXL\qlxl/register/register_accountingengines.cpp:                            unchanged
3>c:\build_ql_0_9_7\QuantLibXL\qlxl/register/register_alphaform.cpp:                                    unchanged
3>c:\build_ql_0_9_7\QuantLibXL\qlxl/register/register_assetswap.cpp:                                    unchanged
3>c:\build_ql_0_9_7\QuantLibXL\qlxl/register/register_bonds.cpp:                                        unchanged
3>c:\build_ql_0_9_7\QuantLibXL\qlxl/register/register_browniangenerators.cpp:                           unchanged
3>c:\build_ql_0_9_7\QuantLibXL\qlxl/register/register_calendar.cpp:                                     unchanged
3>c:\build_ql_0_9_7\QuantLibXL\qlxl/register/register_capfloor.cpp:                                     unchanged
3>c:\build_ql_0_9_7\QuantLibXL\qlxl/register/register_capletvolstructure.cpp:                           unchanged
3>c:\build_ql_0_9_7\QuantLibXL\qlxl/register/register_cmsmarket.cpp:                                    unchanged
3>c:\build_ql_0_9_7\QuantLibXL\qlxl/register/register_cmsmarketcalibration.cpp:                         unchanged
3>c:\build_ql_0_9_7\QuantLibXL\qlxl/register/register_correlation.cpp:                                  unchanged
3>c:\build_ql_0_9_7\QuantLibXL\qlxl/register/register_couponvectors.cpp:                                unchanged

...

3>c:\build_ql_0_9_7\QuantLibAddin\Docs\auto.pages/categories.docs:                                      unchanged
3> done generating Doxygen.
3>end
3>addin           unchanged   updated     created     total
3>=============== =========== =========== =========== ===========
3>Excel                   116           0           0         116
3>Cpp                     111           0           0         111
3>ValueObjects             99           0           0          99
3>Enumerations              3           0           0           3
3>Loop                     11           0           0          11
3>Serialization           200           0           0         200
3>Doxygen                  69           0           0          69
3>=============== =========== =========== =========== ===========
3>total                   609           0           0         609
3> echo flagged > build\vc\buildflag
3>Build log was saved at "file://c:\build_ql_0_9_7\QuantLibAddin\gensrc\build\vc\BuildLog.htm"
3>qlgensrc - 0 error(s), 0 warning(s)
4>transcoder.cpp
5>------ Rebuild All started: Project: xlsdk, Configuration: Debug Win32 ------
5>Deleting intermediate and output files for project 'xlsdk', configuration 'Debug|Win32'
5>Compiling...
5>framewrk.cpp
4>..\src\main\cpp\transcoder.cpp(295) : warning C4244: 'argument' : conversion from 'const wchar_t' to 'char', possible loss of data
4>timezone.cpp
4>timebasedrollingpolicy.cpp
5>Creating library...
5>Build log was saved at "file://c:\build_ql_0_9_7\ObjectHandler\build\vc90\xlsdk\Debug\BuildLog.htm"
5>xlsdk - 0 error(s), 0 warning(s)
6>------ Rebuild All started: Project: ohgensrc, Configuration: All Win32 ------
6>Performing Makefile project actions
6>Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
6>Copyright (C) Microsoft Corporation.  All rights reserved.
6> if not exist build\vc mkdir build\vc
6> ..\..\gensrc\gensrc.py -xdlv --oh_dir=..
4>c:\build_ql_0_9_7\log4cxx\src\main\include\log4cxx/rolling/timebasedrollingpolicy.h(219) : warning C4250: 'log4cxx::rolling::TimeBasedRollingPolicy' : inherits 'log4cxx::rolling::RollingPolicyBase::log4cxx::rolling::RollingPolicyBase::setOption' via dominance
4>        c:\build_ql_0_9_7\log4cxx\src\main\include\log4cxx/rolling/rollingpolicybase.h(83) : see declaration of 'log4cxx::rolling::RollingPolicyBase::setOption'
4>throwableinformationpatternconverter.cpp
6>begin ...
6> begin generating Excel...
6>c:\build_ql_0_9_7\ObjectHandler\ohxl/register/register_enumerations.cpp:                              unchanged
6>c:\build_ql_0_9_7\ObjectHandler\ohxl/register/register_garbagecollection.cpp:                         unchanged
6>c:\build_ql_0_9_7\ObjectHandler\ohxl/register/register_group.cpp:                                     unchanged
6>c:\build_ql_0_9_7\ObjectHandler\ohxl/register/register_logging.cpp:                                   unchanged

...

6> done generating ValueObjects.
6>end
6>addin           unchanged   updated     created     total
6>=============== =========== =========== =========== ===========
6>Excel                    21           0           0          21
6>Doxygen                  11           0           0          11
6>Loop                      1           0           0           1
6>ValueObjects              3           0           0           3
6>=============== =========== =========== =========== ===========
6>total                    36           0           0          36
6> echo flagged > build\vc\buildflag
6>Build log was saved at "file://c:\build_ql_0_9_7\ObjectHandler\gensrc\build\vc\BuildLog.htm"
6>ohgensrc - 0 error(s), 0 warning(s)
7>------ Rebuild All started: Project: QuantLibObjects, Configuration: Debug Win32 ------
7>Deleting intermediate and output files for project 'QuantLibObjects', configuration 'Debug|Win32'
4>threadspecificdata.cpp
4>threadpatternconverter.cpp
4>threadlocal.cpp

4>Generating Code...
4>Compiling resources...
4>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
4>Copyright (C) Microsoft Corporation.  All rights reserved.
4>Creating library...
7>vo_correlation.cpp
4>Build log was saved at "file://c:\build_ql_0_9_7\log4cxx\msvc\build\vc90\Debug\log4cxx\log4cxx_obj\BuildLog.htm"
4>log4cxx - 0 error(s), 27 warning(s)
8>------ Rebuild All started: Project: ohxll, Configuration: Debug Win32 ------
8>Deleting intermediate and output files for project 'ohxll', configuration 'Debug|Win32'
8>Compiling...
8>processor.cpp
7>vo_couponvectors.cpp
7>vo_ctsmmcapletcalibration.cpp

...

8>Linking...
7>vo_simplecashflow.cpp
7>vo_smilesection.cpp
7>vo_statistics.cpp
7>vo_swap.cpp
8>   Creating library ..\..\lib\ObjectHandler-xll-vc90-mt-gd-0_9_7.lib and object ..\..\lib\ObjectHandler-xll-vc90-mt-gd-0_9_7.exp
7>vo_swaption.cpp
7>vo_swaptionvolstructure.cpp
7>vo_termstructures.cpp
7>vo_timeseries.cpp
8>Embedding manifest...
7>vo_vanillaswap.cpp
8>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
8>Copyright (C) Microsoft Corporation.  All rights reserved.
8>Build log was saved at "file://c:\build_ql_0_9_7\ObjectHandler\build\vc90\ohxll\Debug\BuildLog.htm"
8>ohxll - 0 error(s), 0 warning(s)
9>------ Rebuild All started: Project: QuantLib, Configuration: Debug Win32 ------
9>Deleting intermediate and output files for project 'QuantLib', configuration 'Debug|Win32'
7>vo_volatilities.cpp
7>vo_volatility.cpp
9>Compiling...
9>brownianbridge.cpp

...

7>serialization_browniangenerators.cpp
7>serialization_capfloor.cpp
9>Creating browse information file...
7>serialization_capletvolstructure.cpp
9>Microsoft Browse Information Maintenance Utility Version 9.00.21022
9>Copyright (C) Microsoft Corporation. All rights reserved.
7>serialization_cmsmarket.cpp
7>serialization_cmsmarketcalibration.cpp
7>serialization_correlation.cpp
7>serialization_couponvectors.cpp
7>serialization_ctsmmcapletcalibration.cpp
7>serialization_curvestate.cpp
7>serialization_driftcalculators.cpp
7>Generating Code...
9>Build log was saved at "file://c:\build_ql_0_9_7\QuantLib\build\vc90\Debug\BuildLog.htm"
9>QuantLib - 0 error(s), 0 warning(s)
7>Compiling...
7>serialization_evolutiondescription.cpp
7>serialization_exercise.cpp

...

7>Will (need to) link to lib file: QuantLib-vc90-mt-gd-0_9_7.lib
7>register_all.cpp
7>Generating Code...
7>Creating library...
7>Build log was saved at "file://c:\build_ql_0_9_7\QuantLibAddin\build\vc90\Debug\BuildLog.htm"
7>QuantLibObjects - 0 error(s), 0 warning(s)
10>------ Rebuild All started: Project: QuantLibXLDynamic, Configuration: Debug Win32 ------
10>Deleting intermediate and output files for project 'QuantLibXLDynamic', configuration 'Debug|Win32'
10>Compiling...
10>abcd.cpp
10>accountingengines.cpp
10>alphaform.cpp
10>assetswap.cpp

...

10>addin.cpp
10>Will (need to) link to lib file: QuantLibObjects-vc90-mt-gd-0_9_7.lib
10>Will (need to) link to lib file: ObjectHandler-xll-vc90-mt-gd-0_9_7.lib
10>Linking to lib file: xlsdk-vc90-mt-gd.lib
10>XLL_IMPORTS is defined
10>COMPILING_XLL_DYNAMIC is defined
10>register_abcd.cpp
10>Generating Code...
10>Compiling...
10>register_accountingengines.cpp
10>register_all.cpp
10>register_alphaform.cpp
10>register_assetswap.cpp
10>register_bonds.cpp
10>register_browniangenerators.cpp

...

10>opertomatrix.cpp
10>opertovector.cpp
10>Generating Code...
10>Compiling...
10>scalartooper.cpp
10>serializationfactory.cpp
10>session.cpp
10>Generating Code...
10>Compiling manifest to resources...
10>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
10>Copyright (C) Microsoft Corporation.  All rights reserved.
10>Linking...
10>   Creating library .\buildDynamic\vc90\Debug/QuantLibAddinDynamic-vc90-mt-gd-0_9_7.lib and object .\buildDynamic\vc90\Debug/QuantLibAddinDynamic-vc90-mt-gd-0_9_7.exp
10>Embedding manifest...
10>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
10>Copyright (C) Microsoft Corporation.  All rights reserved.
10>Build log was saved at "file://c:\build_ql_0_9_7\QuantLibXL\qlxl\buildDynamic\vc90\Debug\BuildLog.htm"
10>QuantLibXLDynamic - 0 error(s), 0 warning(s)
========== Rebuild All: 10 succeeded, 0 failed, 0 skipped ==========






------------------------------------------------------------------------------

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: a problem on building quantlibXL

Ferdinando Ametrano-4
On Fri, Mar 27, 2009 at 3:06 AM, Rui Yang <[hidden email]> wrote:
> I tried to build quantlibXLAllDynamic_vc9.sln. I got
> the results:
> "========== Rebuild All: 10 succeeded, 0 failed, 0 skipped =========="
> But when I try to include "QuantLibXLDynamic-vc90-mt-gd-0_9_7.xll" into the
> my excel add-ins, I got a msg "QuantLibXLDynamic-vc90-mt-gd-0_9_7.xll is not
> a valid add-in".

QuantLibXLDynamic-vc90-mt-gd-0_9_7.xll does depend on
ObjectHandler-xll-vc90-mt-gd-0_9_7.xll which must be loaded before.
Beside please note that the -gd- versions are debug versions. You
might be better off using the release ones:
QuantLibXLDynamic-vc90-mt-0_9_7.xll and
ObjectHandler-xll-vc90-mt-0_9_7.xll

Unless you plan to share the ObjectHandler in-memory repository
between QuantLibXL and other xlls you might prefer to compile and use
QuantLibXL-vc90-mt-s-0_9_7.xll which is self-consistent as it includes
(and does not share) its own ObjectHandler repository.

Even better: just download and use precompiled binaries ;-)

ciao -- Nando

------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: a problem on building quantlibXL

Rui Yang
Hihi,

Really appreciate your help.  Let me ask you some other questions to make things clear. When I open file "QuantLibAllDynamic_vc9.sln", I can see these projects:
apr
aprutil
docs-QuantLibAddin
docs-QuantLibXL
log4cxx
ohgensrc
ohxll
qlgensrc
QuantLib
QuantLibObjects
AuantLibXLDynamic
testsuite
xlsdk

All the project dependency and build orders are defined accordingly. But you mentioned "ObjectHandler-xll-vc90-mt-gd-0_9_7.xll". "ObjectHandler-xll-vc90-mt-gd-0_9_7.xll" is already built and I can load it in excel. But after that, when I try to load "QuantLibXLDynamic-vc90-mt-d-0_9_7.xll" in excel, I got the same error msg "invalid addins". So do I need to manually add ObjectHandler project in the solution?

Thanks a lot for mentioning the release version and the compiled binaries to me. Actually, I need to do my work on quantLibXL and write some extensions based on it. So I need to build the debug version : )

--
Best Regards,
Joyce



On Fri, Mar 27, 2009 at 4:51 PM, Ferdinando Ametrano <[hidden email]> wrote:
On Fri, Mar 27, 2009 at 3:06 AM, Rui Yang <[hidden email]> wrote:
> I tried to build quantlibXLAllDynamic_vc9.sln. I got
> the results:
> "========== Rebuild All: 10 succeeded, 0 failed, 0 skipped =========="
> But when I try to include "QuantLibXLDynamic-vc90-mt-gd-0_9_7.xll" into the
> my excel add-ins, I got a msg "QuantLibXLDynamic-vc90-mt-gd-0_9_7.xll is not
> a valid add-in".

QuantLibXLDynamic-vc90-mt-gd-0_9_7.xll does depend on
ObjectHandler-xll-vc90-mt-gd-0_9_7.xll which must be loaded before.
Beside please note that the -gd- versions are debug versions. You
might be better off using the release ones:
QuantLibXLDynamic-vc90-mt-0_9_7.xll and
ObjectHandler-xll-vc90-mt-0_9_7.xll

Unless you plan to share the ObjectHandler in-memory repository
between QuantLibXL and other xlls you might prefer to compile and use
QuantLibXL-vc90-mt-s-0_9_7.xll which is self-consistent as it includes
(and does not share) its own ObjectHandler repository.

Even better: just download and use precompiled binaries ;-)

ciao -- Nando




------------------------------------------------------------------------------

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users