Error building objecthandler & gensrc

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

Error building objecthandler & gensrc

jsamler
This post was updated on .
I am having problems building gensrc. It seems related to python but I can't figure out how 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\python.exe and C:\ProgramData\Anaconda2\ respectively
- 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 objecthandler in VS 2013 I get the following error:

6>   ..\..\ObjectHandler\Docs\preprocess_doxyfile.py objecthandler.doxy .objecthandler.doxy
6>  
6>  Usage: C:\Users\JohnS\QuantLib\ObjectHandler\Docs\preprocess_doxyfile.py [-o] infile outfile
6>      Where
6>          -o is for online html
6>          infile = doxygen config file to be preprocessed
6>          outfile = modified file
6>NMAKE : fatal error U1077: '..\..\ObjectHandler\Docs\preprocess_doxyfile.py' : return code '0x1'
6>  Stop.
6>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.
5>  serializationfactory.cpp

Similar issue building gensrc

1>------ Build started: Project: docs, Configuration: All Win32 ------
1>  
1>  Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1>  
1>   ..\..\ObjectHandler\Docs\preprocess_doxyfile.py 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?
Reply | Threaded
Open this post in threaded view
|

Re: Error building gensrc

Eric Ehlers-3
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
Reply | Threaded
Open this post in threaded view
|

Re: Error building gensrc

jsamler
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

Reply | Threaded
Open this post in threaded view
|

Re: Error building gensrc

John O'Sullivan
In reply to this post by jsamler
You could fix the build rule to explicitly invoke Python rather than relying on the association with the .py suffix. So this line...

 ..\..\ObjectHandler\Docs\preprocess_doxyfile.py gensrc.doxy

...becomes...

 C:\ProgramData\Anaconda2\python.exe ..\..\ObjectHandler\Docs\preprocess_doxyfile.py gensrc.doxy

Alternately, have you started and stopped Visual Studio since making the .py association? 

Cheers
John

On 4 April 2017 at 10:52, 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>  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 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
Reply | Threaded
Open this post in threaded view
|

Re: Error building gensrc

Eric Ehlers-3
In reply to this post by jsamler
Hi John,

On 2017-04-17 14:44, jsamler wrote:
> 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.

I am glad you got it working.

> 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.

You don't need to compile QuantLibAddin.  The parts of QuantLibAddin
that you need are included in the QuantLibXL build.  And the error that
you are getting is from compiling the QuantLibAddin documentation, which
you definitely don't need.

Here is the documentation for compiling QuantLibXL from source:

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

Regards,
Eric

------------------------------------------------------------------------------
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