Login  Register

Error building objecthandler & gensrc

Posted by jsamler on Apr 04, 2017; 9:52am
URL: http://quantlib.414.s1.nabble.com/Error-building-objecthandler-gensrc-tp18169.html

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?