title: Running QWT example program(.pro) with Visual Studio 2010 error
body: <p>I face the following error when trying to run a qwt example, the oscilloscope example to be exact in Visual Studio QT add in. There will be build errors, and the following lines will be shown:</p>
  
  <pre><code>1&gt;------ Build started: Project: oscilloscope, Configuration: Debug Win32 ------
  1&gt;Build started 3/1/2014 4:57:18 PM.
  1&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(298,5): warning MSB8004: Intermediate Directory does not end with a trailing slash.  This build instance will add the slash as it is required to allow proper evaluation of the Intermediate Directory.
  1&gt;InitializeBuildStatus:
  1&gt;  Touching "Win32\Debug\oscilloscope.unsuccessfulbuild".
  1&gt;CustomBuild:
  1&gt;  Moc'ing knob.h...
  1&gt;  The syntax of the command is incorrect.
  1&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 255.
  1&gt;
  1&gt;Build FAILED.
  1&gt;
  1&gt;Time Elapsed 00:00:00.05
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>Do anybody have any idea why? Not sure if this problem is related, but when I open qt project from Visual Studio, the output from the "Qt Visual Studio Add in" shows:</p>
  
  <pre><code>--- (Import): Generating new project of oscilloscope.pro file
  --- (qmake) : Using: c:\qt\qt5.1.1\5.1.1\msvc2010\bin\qmake
  --- (qmake) : Working Directory: C:\qwt-6.1.0\examples\oscilloscope
  --- (qmake) : Arguments: -tp vc "oscilloscope.pro" -o "oscilloscope.vcxproj" QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_MOC=$(QTDIR)\bin\moc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe
  
  --- (qmake) : Exit Code: 0
  
  Could not parse QTDIR from project file oscilloscope.vcxproj.
  --- (Import): Added oscilloscope.vcxproj to Solution
  
  === Update uic steps ===
  
  === 0 uic steps updated. ===
  
  
  === Update rcc steps ===
  
  === 0 rcc steps updated. ===
  </code></pre>
  
  <p>Could the "could not parse QTDIR from project file oscilloscope.vcxproj" be the cause of this problem?</p>
  
  <p>All the examples are able to run in qt creator itself. This problem only occurs when I try to run in from Visual Studio. </p>
  
  <p>I have already ran through the proper installation guide found on the qwt website for both qt creator and MSVC. Any idea why this problem occurs? Please help. Any advice or suggestion will be greatly appreciated.</p>