Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building PBRT v2 error - Error 1 error U1077: 'if' : return code '0x1'

I have visual studio 2013 community edition and I got the pbrt-v2 code base and have been trying to build the solution but this is one of the errors I have been getting (it is related to nmake it seems like):

 NMAKE - Error  1 error U1077: 'if' : return code '0x1'

I am not sure what to do as other instructions does not seem to be very clear. Any help would be greatly appreciated! Thank you and have a great day!

-------------- UPDATE --------------------

I got it to compile and build on visual studio 2013. The problem was that I think I had outdated files for PBRT. Basically what I did was I checked out the project via github, which I believe should work but then I noticed you can download the latest pbrt-v2 files on the website. In fact the authors has a solution file for VS studio 2015, which I deleted and reinstalled 2013 since I thought that was the problem. Regardless, using the 2012 from the file I downloaded straight from the website I was able to build the solution. I'll keep the question up just in case anyone has a similar issue.

like image 530
InsigMath Avatar asked Dec 10 '15 02:12

InsigMath


1 Answers

This error code relates to NMAKE getting an error from a command. However this question previous suggests that it may also happen if your Visual Studio installation is incomplete or has become corrupt or that NMAKE was not run in a VS command shell. Suggest you look at that question and consider some it's possibilities.

Have you tried the MSDN forum ?

like image 72
StephenG - Help Ukraine Avatar answered Nov 07 '22 10:11

StephenG - Help Ukraine