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

时间:2015-12-10 02:06:51

标签: c++ visual-studio-2013 nmake pbrt

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.

1 个答案:

答案 0 :(得分:2)

此错误代码与NMAKE从命令获取错误有关。但是this question之前的建议表明,如果您的Visual Studio安装不完整或已损坏或者NMAKE未在VS命令shell中运行,也可能会发生这种情况。建议你看看这个问题并考虑它的一些可能性。

您是否尝试过MSDN论坛?