Login  Register

Re: Error building gensrc

Posted by John O'Sullivan on Apr 18, 2017; 10:15am
URL: http://quantlib.414.s1.nabble.com/Error-building-objecthandler-gensrc-tp18169p18197.html

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