Developer Blog - Inventic.eu
  • Skipper - The ORM Designer
  • VsBuilds - Parallel building
  • Pulpo - Free Skipper CLI

Tag: #qmake

VS2010 always rebuilding moc files on Qt

My VS2010 on every build always recreate all .moc files and associated .cpp files. Problem was in incredibuild clausule during compilation of my Qt libraries.

 

      &lt;AdditionalInputs Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;Rem;axApplication\axAppException\dialogUnhandledException.ui;%(AdditionalInputs)&lt;/AdditionalInputs&gt;<br />
      &lt;Command Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;Rem IncrediBuild_AllowRemote &amp;#x000D;&amp;#x000A;if errorlevel 1 goto VCEnd&amp;#x000D;&amp;#x000A; Rem IncrediBuild_OutputFile ..\GeneratedFiles\ui_dialogUnhandledException.h &amp;#x000D;&amp;#x000A;if errorlevel 1 goto VCEnd&amp;#x000D;&amp;#x000A; Q:\ExternalLibraries\qt-git-32bit\bin\uic.exe axApplication\axAppException\dialogUnhandledException.ui -o ..\GeneratedFiles\ui_dialogUnhandledException.h&lt;/Command&gt;<br />
      &lt;Message Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;UIC axApplication\axAppException\dialogUnhandledException.ui&lt;/Message&gt;<br />
      &lt;Outputs Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;..\GeneratedFiles\ui_dialogUnhandledException.h;%(Outputs)&lt;/Outputs&gt;<br />

instead of

      &lt;AdditionalInputs Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;Q:\ExternalLibraries\qt-4.8.2-32bit\bin\uic.exe;axApplication\axAppException\dialogUnhandledException.ui;%(AdditionalInputs)&lt;/AdditionalInputs&gt;<br />
      &lt;Command Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;Q:\ExternalLibraries\qt-4.8.2-32bit\bin\uic.exe axApplication\axAppException\dialogUnhandledException.ui -o ..\GeneratedFiles\ui_dialogUnhandledException.h&lt;/Command&gt;<br />
      &lt;Message Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;UIC axApplication\axAppException\dialogUnhandledException.ui&lt;/Message&gt;<br />
      &lt;Outputs Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|Win32'&quot;&gt;..\GeneratedFiles\ui_dialogUnhandledException.h;%(Outputs)&lt;/Outputs&gt;<br />

Although qmake added all these incredibuild defines to my VS project, Incredibuild still doesn't compile it in parallel so it was totally useless. The most simply way is edit incredibuild_xge.prf and turn-off it.

mkspecs\features\incredibuild_xge.prf </p>
<p>contains(TEMPLATE, &quot;XXXvc.*&quot;) {<br />

How to enable VS2010 logging

06 Jan 2014

Posted by: ludek.vodicka

Programming Qt #Qt #incredibuild #qmake #vs2010