Login  Register

Re: Error building gensrc

Posted by jsamler on Apr 17, 2017; 12:42pm
URL: http://quantlib.414.s1.nabble.com/Error-building-objecthandler-gensrc-tp18169p18195.html

Hi Eric - thanks for your reply and for all your work on Quantlib.

I had issues compiling QuantlibAddin, QuantlibXL, ObjectHandler and gensrc. The error was on gensrc, so i was trying to compile that by itself.

I downloaded the latest pre-release versions of everything (I was using the latest release versions of object handler, quantlibxl, etc.) and reinstalled my Anaconda2 (had 64, now 32). Not sure what made it work, but QuantlibXL compiles now.

QuantlibAddin doesn't compile fully, I get an error on preprocess_doxyfile.py... Makefile.vc exitied with code 2. But what I need is QuantlibXL so much better now.

The reason I'm not using the QuantlibXL already compiled is that i need to make more functions available through excel addin. Particularly more functions related to equity derivatives.

Regards,

John


On Thu, Apr 6, 2017 at 9:45 AM, Eric Ehlers-3 [via QuantLib] <[hidden email]> wrote:
Hi John,

You don't need to build gensrc.  The scripts just sit there, and are
invoked by the builds of other projects, e.g. ObjectHandler and
QuantLibAddin.

It looks like you attempted to run the build for the documentation.
This is something that I do for each release in order to generate the
pages at http://quantlib.org/gensrc/.

What is your end goal?  If you want to use QuantLibXL on
Windows, you can download the binary release.  The prerelease files for
QuantLibXL version 1.9 are here:

    https://sourceforge.net/projects/quantlib/files/QuantLibXL/prerelease/

If you want to recompile QuantLibXL from source code, the commands
for invoking gensrc are integrated into the QuantLibXL build, which
is documented here:

    http://quantlib.org/quantlibaddin/build_qlxl.html

If you want to use gensrc for some other purpose, the best place to
start would be the docs for the ObjectHandler build, which also
integrates the calls to gensrc, and is documented here:

    http://quantlib.org/objecthandler/installation.html

Kind Regards,
Eric

On Tue, 4 Apr 2017 02:52:07 -0700 (MST)
jsamler <[hidden email]> wrote:

> I am having problems building gensrc. It seems related to python but
> I can't seem to fix it.
>
> - I have Anaconda2 installed
> - I associated .py files to C:\ProgramData\Anaconda2\python.exe
> - I created the PYTHON and PYTHONPATH paths to
> C:\ProgramData\Anaconda2\
> - My Python version is Python 2.7.13 |Anaconda 4.3.1 (64-bit)|
> (default, Dec 19 2016, 13:29:36) [MSC v. 1500 64 bit (AMD64)] on
> win32
>
> When I build gensrc in VS 2013 I get the following error:
>
> 1>------ Build started: Project: docs, Configuration: All Win32
> 1>------
> 1>  
> 1>  Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
> 1>  Copyright (C) Microsoft Corporation.  All rights reserved.
> 1>  
> 1>   copy /Y tabs.css html
> 1>          1 file(s) copied.
> 1>   copy /Y ql.css html
> 1>          1 file(s) copied.
> 1>   copy /Y images\* html\images
> 1>  images\background.jpg
> 1>  images\favicon.ico
> 1>  images\footer.jpg
> 1>  images\gs_16x16.ico
> 1>  images\gs_32x32.ico
> 1>  images\header.jpg
> 1>  images\logo_gs.jpg
> 1>  images\logo_ql.jpg
> 1>  images\logo_reposit.png
> 1>  images\logo_reposit2.png
> 1>  images\menu_header.jpg
> 1>  images\sflogo.png
> 1>         12 file(s) copied.
> 1>   ..\..\ObjectHandler\Docs\preprocess_doxyfile.py
> 1> gensrc.doxy
> .gensrc.doxy
> 1>  
> 1>  Usage:
> C:\Users\JohnS\QuantLib\QuantLib-1.9.2\ObjectHandler\Docs\preprocess_doxyfile.py
> [-o] infile outfile
> 1>      Where
> 1>          -o is for online html
> 1>          infile = doxygen config file to be preprocessed
> 1>          outfile = modified file
> 1>NMAKE : fatal error U1077:
> '..\..\ObjectHandler\Docs\preprocess_doxyfile.py' : return code '0x1'
> 1>  Stop.
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5):
> error MSB3073: The command "NMAKE /f "Makefile.vc"" exited with code
> 2. ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped
> ==========
>
>
> Any idea how to fix this please?
>
>
>
>
> --
> View this message in context:
> http://quantlib.10058.n7.nabble.com/Error-building-gensrc-tp18169.html
> Sent from the quantlib-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users



If you reply to this email, your message will be added to the discussion below:
http://quantlib.10058.n7.nabble.com/Error-building-objecthandler-gensrc-tp18169p18177.html
To unsubscribe from Error building objecthandler & gensrc, click here.
NAML