VS11.0 question about building QuantLibXL

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

VS11.0 question about building QuantLibXL

Nicholas Manganaro-2

I was able to build the QLXL1.4.0 xll file before, but I had to rebuild my Win 7 SP1 machine and am now receiving the following error that starts a cascade of problems:

 

NMAKE  : fatal error U1077: ‘..\..\gensrc\gensrc.py’ : return code ‘0x1’

 

It occurs in building gensrc and ohgensrc, each time followed by:

 

C:\Program Files (x86)\MSBuild\Microsoft.cpp\v4.0\Microsoft.MakeFile.Targets(43,5): error MSB3073: The command “NMAKE /f Makefile.vc /a” exited with code 2.

 

The user list questions regarding this seem to be solved by using a version of Python in the 2.x series. I am using 2.7.6, from Anaconda, however, so I do not think that is the problem.

Microsoft says there is a problem with Visual Studio 2010 and NMake, so I am wondering if you recommend using Visual Studio 2012 to see if that solves the problem.

 

I do not know if the exe installers files registered or just unpacked the  QL-1.2.0 files, so I do not know if I can uninstall all the folders from  the process of compiling QuantLibXL 1.2.0 that I built using msvc-10.0, create folders into which to copy the most recent versions of the following from GIT hub:

·         gensrc

·         log4cxx

·         ObjectHandler

·         QuantLib

·         QuantLibAddin

·         QuantLibXL

 

and use msvc-11.1 to build the newest version referring to those folders.

Please advise.

 

Nicholas

 


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: VS11.0 question about building QuantLibXL

Piter Dias-4
Perhaps python wasn't found by visual studio.
Have you tried adding the python.exe folder path to visual studio exe paths?

--- Mensagem Original ---

De: "Nicholas Manganaro" <[hidden email]>
Enviado: 13 de junho de 2014 20:11
Para: "'QuantLib users'" <[hidden email]>
Assunto: [Quantlib-users] VS11.0 question about building QuantLibXL

I was able to build the QLXL1.4.0 xll file before, but I had to rebuild my Win 7 SP1 machine and am now receiving the following error that starts a cascade of problems:

 

NMAKE  : fatal error U1077: ‘..\..\gensrc\gensrc.py’ : return code ‘0x1’

 

It occurs in building gensrc and ohgensrc, each time followed by:

 

C:\Program Files (x86)\MSBuild\Microsoft.cpp\v4.0\Microsoft.MakeFile.Targets(43,5): error MSB3073: The command “NMAKE /f Makefile.vc /a” exited with code 2.

 

The user list questions regarding this seem to be solved by using a version of Python in the 2.x series. I am using 2.7.6, from Anaconda, however, so I do not think that is the problem.

Microsoft says there is a problem with Visual Studio 2010 and NMake, so I am wondering if you recommend using Visual Studio 2012 to see if that solves the problem.

 

I do not know if the exe installers files registered or just unpacked the  QL-1.2.0 files, so I do not know if I can uninstall all the folders from  the process of compiling QuantLibXL 1.2.0 that I built using msvc-10.0, create folders into which to copy the most recent versions of the following from GIT hub:

·         gensrc

·         log4cxx

·         ObjectHandler

·         QuantLib

·         QuantLibAddin

·         QuantLibXL

 

and use msvc-11.1 to build the newest version referring to those folders.

Please advise.

 

Nicholas

 


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: VS11.0 question about building QuantLibXL

igitur
In reply to this post by Nicholas Manganaro-2

Try editing the Makefile.vc files (2 of them) and putting your full path to python.exe before the gensrc.py.

The current Makefile.vc tries to execute the python files by executing them directly instead of passing them as a parameter to python.exe . Apparently that is supposed to work if .PY is in your PATHEXT environment variable, but it fails on my Windows 7 machine too.

The workaround solved my problem.

On 14 Jun 2014 1:09 AM, "Nicholas Manganaro" <[hidden email]> wrote:

I was able to build the QLXL1.4.0 xll file before, but I had to rebuild my Win 7 SP1 machine and am now receiving the following error that starts a cascade of problems:

 

NMAKE  : fatal error U1077: ‘..\..\gensrc\gensrc.py’ : return code ‘0x1’

 

It occurs in building gensrc and ohgensrc, each time followed by:

 

C:\Program Files (x86)\MSBuild\Microsoft.cpp\v4.0\Microsoft.MakeFile.Targets(43,5): error MSB3073: The command “NMAKE /f Makefile.vc /a” exited with code 2.

 

The user list questions regarding this seem to be solved by using a version of Python in the 2.x series. I am using 2.7.6, from Anaconda, however, so I do not think that is the problem.

Microsoft says there is a problem with Visual Studio 2010 and NMake, so I am wondering if you recommend using Visual Studio 2012 to see if that solves the problem.

 

I do not know if the exe installers files registered or just unpacked the  QL-1.2.0 files, so I do not know if I can uninstall all the folders from  the process of compiling QuantLibXL 1.2.0 that I built using msvc-10.0, create folders into which to copy the most recent versions of the following from GIT hub:

·         gensrc

·         log4cxx

·         ObjectHandler

·         QuantLib

·         QuantLibAddin

·         QuantLibXL

 

and use msvc-11.1 to build the newest version referring to those folders.

Please advise.

 

Nicholas

 


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: VS11.0 question about building QuantLibXL

Eric Ehlers-2
I have VS11 on Windows 7, I don't get this problem.  I don't see the  
path to python.exe in my PATH.  I think when I installed python it  
associated files of type *.py to python.exe.

It would be better for the makefiles to say "python.exe scriptname.py"  
rather than just "scriptname.py".  As an alternative to adding the  
full path to python in the makefile, you could list it under the  
binary paths in the VS project properties.

Kind Regards,
Eric

Quoting Francois Botha <[hidden email]>:

> Try editing the Makefile.vc files (2 of them) and putting your full path to
> python.exe before the gensrc.py.
>
> The current Makefile.vc tries to execute the python files by executing them
> directly instead of passing them as a parameter to python.exe . Apparently
> that is supposed to work if .PY is in your PATHEXT environment variable,
> but it fails on my Windows 7 machine too.
>
> The workaround solved my problem.
> On 14 Jun 2014 1:09 AM, "Nicholas Manganaro" <[hidden email]>
> wrote:
>
>> I was able to build the QLXL1.4.0 xll file before, but I had to rebuild my
>> Win 7 SP1 machine and am now receiving the following error that starts a
>> cascade of problems:
>>
>>
>>
>> NMAKE  : fatal error U1077: ‘..\..\gensrc\gensrc.py’ : return code ‘0x1’
>>
>>
>>
>> It occurs in building gensrc and ohgensrc, each time followed by:
>>
>>
>>
>> C:\Program Files
>> (x86)\MSBuild\Microsoft.cpp\v4.0\Microsoft.MakeFile.Targets(43,5): error
>> MSB3073: The command “NMAKE /f Makefile.vc /a” exited with code 2.
>>
>>
>>
>> The user list questions regarding this seem to be solved by using a
>> version of Python in the 2.x series. I am using 2.7.6, from Anaconda,
>> however, so I do not think that is the problem.
>>
>> Microsoft says there is a problem with Visual Studio 2010 and NMake, so I
>> am wondering if you recommend using Visual Studio 2012 to see if that
>> solves the problem.
>>
>>
>>
>> I do not know if the exe installers files registered or just unpacked the
>>  QL-1.2.0 files, so I do not know if I can uninstall all the folders from
>>  the process of compiling QuantLibXL 1.2.0 that I built using msvc-10.0,
>> create folders into which to copy the most recent versions of the following
>> from GIT hub:
>>
>> ·         gensrc
>>
>> ·         log4cxx
>>
>> ·         ObjectHandler
>>
>> ·         QuantLib
>>
>> ·         QuantLibAddin
>>
>> ·         QuantLibXL
>>
>>
>>
>> and use msvc-11.1 to build the newest version referring to those folders.
>>
>> Please advise.
>>
>>
>>
>> Nicholas
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
>> Find What Matters Most in Your Big Data with HPCC Systems
>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
>> http://p.sf.net/sfu/hpccsystems
>> _______________________________________________
>> QuantLib-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>>
>>


===================================================
Eric Ehlers
nazcatech sprl | Brussels | http://www.nazcatech.be
* Distributed computing for pricing analytics
* Use Microsoft Excel as a client to the Grid


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users