<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Inconsistent builds with Subdirs Project and switching devices]]></title><description><![CDATA[<p dir="auto">I have a project that is to be compiled as a Desktop or a Ios application. My subdirs project contains this:</p>
<p dir="auto">@cache()</p>
<p dir="auto">TEMPLATE = subdirs</p>
<p dir="auto">CONFIG += ordered</p>
<p dir="auto">SUBDIRS = ../Underworld ../EngineOGL ../Ankh@</p>
<p dir="auto">When I switch between devices and hit "rebuild", I am seeing the build files "get stuck" on the previous device. For example, if I compile as Ios for a while, everything seems to be fine. But when I switch to Desktop, I sometimes catch the compiler not building the desktop libraries, but continuing to build the Ios version. After several rebuilds, cleans and waving a dead chicken over my computer, my application will eventually build the right version.</p>
<p dir="auto">Does anyone have any idea why simply rebuilding isn't working consistently?</p>
]]></description><link>https://forum.qt.io/topic/47447/inconsistent-builds-with-subdirs-project-and-switching-devices</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 00:37:48 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/47447.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Oct 2014 14:46:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Inconsistent builds with Subdirs Project and switching devices on Mon, 27 Oct 2014 22:38:40 GMT]]></title><description><![CDATA[<p dir="auto"><em>sierdzio</em> has a good point about shadow building, especially when you're cross-compiling (or using several different versions of Qt)</p>
]]></description><link>https://forum.qt.io/post/249193</link><guid isPermaLink="true">https://forum.qt.io/post/249193</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 27 Oct 2014 22:38:40 GMT</pubDate></item><item><title><![CDATA[Reply to Inconsistent builds with Subdirs Project and switching devices on Mon, 27 Oct 2014 15:18:28 GMT]]></title><description><![CDATA[<p dir="auto">Another way might be to use shadow building option from Qt Creator (that may save a lot of time during project building), but I'm not sure as I don't use it.</p>
<p dir="auto">The general idea behind shadow builds is that all Kit setups get a separate build directory, and so when switching between Kits you do not need to recompile everything.</p>
]]></description><link>https://forum.qt.io/post/249150</link><guid isPermaLink="true">https://forum.qt.io/post/249150</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Mon, 27 Oct 2014 15:18:28 GMT</pubDate></item><item><title><![CDATA[Reply to Inconsistent builds with Subdirs Project and switching devices on Mon, 27 Oct 2014 14:27:45 GMT]]></title><description><![CDATA[<p dir="auto">Sierdzio,<br />
It appears your solution works so far. Makes sense what was going on now.<br />
Thanks for your help!</p>
]]></description><link>https://forum.qt.io/post/249143</link><guid isPermaLink="true">https://forum.qt.io/post/249143</guid><dc:creator><![CDATA[kloveridge]]></dc:creator><pubDate>Mon, 27 Oct 2014 14:27:45 GMT</pubDate></item><item><title><![CDATA[Reply to Inconsistent builds with Subdirs Project and switching devices on Sun, 26 Oct 2014 18:36:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Just a wild guess, does it also happen if you remove the cache() line ?</p>
<p dir="auto">There's also something a bit surprising in your setup, subdirs project generally have their subdirs in the same folder as the pro file which defines the subdirs template.</p>
]]></description><link>https://forum.qt.io/post/249034</link><guid isPermaLink="true">https://forum.qt.io/post/249034</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 26 Oct 2014 18:36:04 GMT</pubDate></item><item><title><![CDATA[Reply to Inconsistent builds with Subdirs Project and switching devices on Sun, 26 Oct 2014 18:14:51 GMT]]></title><description><![CDATA[<h1>Clean project</h1>
<h1>Run qmake</h1>
<h1>Rebuild</h1>
<p dir="auto">That should work reliably. The problem (most probably) is in outdated Makefiles, and to update them you need to run qmake.</p>
]]></description><link>https://forum.qt.io/post/249028</link><guid isPermaLink="true">https://forum.qt.io/post/249028</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Sun, 26 Oct 2014 18:14:51 GMT</pubDate></item></channel></rss>