title: NMAKE : fatal error U1077: 'cd' :return code '0x2' cl.exe
body: <p>I'm trying to compile QCAD (an open source CAD application which relies on Qt) from the source so I can build it for msvs2008. I've been following the instructions given here: <a href="http://www.qcad.org/en/component/content/article/78-qcad/111-qcad-compilation-from-sources" rel="noreferrer">http://www.qcad.org/en/component/content/article/78-qcad/111-qcad-compilation-from-sources</a>.</p>
  
  <p>I've managed to successfully configure and compile Qt 4.8.5 and I set my environment variable PATH. I created a new environment variable QMAKESPEC and set the value to win-32-msvc2008. I completed the configuration of QCAD without any problems. However, about 30 min into the compilation I've run into the following error: NMAKE : fatal error U1077: 'cd' :return code '0x2'. I've seen similar errors reported for the compilation of Qt, however, I had no problem there. Is there anyone who has any idea what may be wrong? Thanks in advance.</p>
  
  <pre><code>Generating Code...
  c:\qcad\src\3rdparty\qt-labs-qtscriptgenerator-4.8.5\generated_cpp\com_trolltech_qt_webkit\qtscriptshell_qwebpluginfactory.cpp(58) 
  : warning C4715: 'QtScriptShell_QWebPluginFactory::create' : not all control paths return a value
  c:\qcad\src\3rdparty\qt-labs-qtscriptgenerator-4.8.5\generated_cpp\com_trolltech_qt_webkit\qtscriptshell_qwebpluginfactory.cpp(128)
  : warning C4715: 'QtScriptShell_QWebPluginFactory::plugins' : not all control paths return a value
  c:\qcad\src\3rdparty\qt-labs-qtscriptgenerator-4.8.5\generated_cpp\com_trolltech_qt_webkit\qtscriptshell_qwebhistoryinterface.cpp(105) 
  : warning C4715: 'QtScriptShell_QWebHistoryInterface::historyContains' : not all control paths return a value
  NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
  Stop.
  NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
  Stop.
  NMAKE : fatal error U1077: 'cd' : return code '0x2'
  Stop.
  NMAKE : fatal error U1077: 'cd' : return code '0x2'
  Stop.
  NMAKE : fatal error U1077: 'cd' : return code '0x2'
  Stop.
  NMAKE : fatal error U1077: 'cd' : return code '0x2'
  Stop.
  NMAKE : fatal error U1077: 'cd' : return code '0x2'
  Stop.
  
  C:\qcad&gt;
  </code></pre>