<?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[[Solved] Custom Build Process]]></title><description><![CDATA[<p dir="auto">I am new to Qt and evaluating it to possibly switch over from VS.  However, I am having trouble setting up my project and could use some help.</p>
<p dir="auto">I have a chain of static libraries that depend on one another.  At some point in the chain it branches into two parallel sets of libraries (client/server).  Here is a simplified overview of my setup:</p>
<p dir="auto">Utilities --&gt; MetaData --&gt; Networking --&gt; Common --&gt; Client<br />
Utilities --&gt; MetaData --&gt; Networking --&gt; Common --&gt; Server</p>
<p dir="auto">So I have two issues:</p>
<ol>
<li>When building the subdirs project, I need the Common subproject to be built twice, each time with a different preprocessor define, a different build directory, and a different output file.  Maintaining two projects that are otherwise identical has historically been way too much of a pain.</li>
<li>Since all of these subprojects depend on one another I need to make sure the build order is as listed above.</li>
</ol>
<p dir="auto">This project is being worked on by a small team, so I would like a minimal amount of custom setup/configuration needed per machine.  I would also like to keep both Client and Server subprojects under the same subdirs project if possible, as it makes it much easier to work on both in parallel.</p>
<p dir="auto">I accomplished the first task above in VS by creating custom build configurations and it works flawlessly for what I need.  My limited knowledge of makefiles and Qt Creator suggests this would not be the best approach here.</p>
<p dir="auto">Any help would be greatly appreciated!  Apologies if this is already covered elsewhere.  I assume it probably is but for the life of me I could not find anything after a few days of searching and experimenting.</p>
]]></description><link>https://forum.qt.io/topic/42121/solved-custom-build-process</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 18:01:54 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/42121.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Jun 2014 21:47:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved] Custom Build Process on Wed, 04 Jun 2014 20:52:38 GMT]]></title><description><![CDATA[<p dir="auto">You're welcome !</p>
<p dir="auto">Since your project is building now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)</p>
]]></description><link>https://forum.qt.io/post/230988</link><guid isPermaLink="true">https://forum.qt.io/post/230988</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 04 Jun 2014 20:52:38 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Custom Build Process on Wed, 04 Jun 2014 20:24:12 GMT]]></title><description><![CDATA[<p dir="auto">Thank you much.</p>
<p dir="auto">As you suggested, the use of .pri files did indeed resolve my issues.  I just removed the Common.lib entirely and built the entire set of files directly into both Client and Server projects, while still keeping it separate from both.</p>
<p dir="auto">Sorry for the delayed response, the past few days have been something of a crash course for me.  A decade of using MSVC/XCode exclusively has not left me with the need to mess with makefiles and whatnot.  The number of things I had to learn coupled with fixing code that was not GCC compliant kept me pretty busy.  The need to link libraries in reverse dependency order was particularly frustrating.</p>
<p dir="auto">Thanks again!</p>
]]></description><link>https://forum.qt.io/post/230985</link><guid isPermaLink="true">https://forum.qt.io/post/230985</guid><dc:creator><![CDATA[Luthais]]></dc:creator><pubDate>Wed, 04 Jun 2014 20:24:12 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Custom Build Process on Tue, 03 Jun 2014 08:22:44 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">If you are using qmake you should have a look at the subdir template which does what are looking after. You can even tell it the order of compilation of the sub-project.</p>
<p dir="auto">If Common must be build twice then it should rather use a pri file included by <a href="http://Client.pro" target="_blank" rel="noopener noreferrer nofollow ugc">Client.pro</a> and <a href="http://Server.pro" target="_blank" rel="noopener noreferrer nofollow ugc">Server.pro</a> with the specific options set there.</p>
<p dir="auto">Hope it helps</p>
]]></description><link>https://forum.qt.io/post/230814</link><guid isPermaLink="true">https://forum.qt.io/post/230814</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 03 Jun 2014 08:22:44 GMT</pubDate></item></channel></rss>