<?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[[Withdrawn] Subdirs build: lib could not be found]]></title><description><![CDATA[<p dir="auto">I have a subdirs project consisting of multiple libs and a single application that links them together.</p>
<p dir="auto">Since migrating my source tree to a different location (but with sources, pro and pri files being identical), I get a strange error when trying to build:</p>
<p dir="auto">During the first step, when qmake is "reading" the .pro files I get:<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/error">@<bdi>error</bdi></a>: Project: 'tmain_tp.pro', lib 'libtfrt.a' could not be found@</p>
<p dir="auto">"tmain_tp.pro" is the single application, while "tfrt" happens to be the first library in the LIBS variable of my application's pro file.</p>
<p dir="auto">The project "tfrt" is part of the subdirs. When I right-click and manually build "trft", the library is created and the application project no longer complains about it. It then complains about the next library in the list.</p>
<p dir="auto">So far, when I built a subdirs project, it automatically built all the libraries first, before trying to find them in the application project. Now it seems it doesn't even try to build them.</p>
<p dir="auto">Snip of the subdirs project file:<br />
@CONFIG += ordered<br />
CONFIG += debug_and_release_target<br />
TEMPLATE = subdirs</p>
<p dir="auto">SUBDIRS = <br />
mls_tool <br />
tasn <br />
tdd <br />
<br />
tfrt <br />
tfr_tp <br />
tfrf_tp <br />
tfrw_widgetdatagui <br />
tfrc <br />
tim <br />
tada <br />
<br />
tmain_tp</p>
<h1>SUBDIRS contains many more lib projects in reality, but they are just the same as those shown</h1>
<p dir="auto">mls_tool.file = sourcen/mls/code/mls_tool.pro<br />
tasn.file = sourcen/tasn/code/tasn.pro<br />
tdd.file = sourcen/tdd/code/tdd.pro</p>
<p dir="auto">tfrt.file = sourcen/tfrt/code/tfrt.pro<br />
tfr_tp.file = sourcen/tfr/code/tfr_tp.pro<br />
tfrf_tp.file = sourcen/tfrf/code/tfrf_tp.pro<br />
tfrw_widgetdatagui.file = sourcen/tfrw/code/tfrw_widgetdatagui.pro<br />
tfrc.file = sourcen/tfrc/code/tfrc.pro<br />
tim.file = sourcen/tim/code/tim.pro<br />
tada.file = sourcen/tada/code/tada.pro</p>
<p dir="auto">tmain_tp.file = sourcen/tmain/code/tmain_tp.pro<br />
@</p>
<p dir="auto">I have already tried:</p>
<ul>
<li>Manually deleting all makefiles</li>
<li>Deleting Creator's .user file, and regenerating it from the original .pro file</li>
<li>Clean and rebuild</li>
<li>As I said, I can manually build the single libraries, but it's no fun</li>
</ul>
<p dir="auto">EDIT:<br />
Turned out to be a self-generated error message...</p>
]]></description><link>https://forum.qt.io/topic/31015/withdrawn-subdirs-build-lib-could-not-be-found</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 13:34:45 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/31015.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Aug 2013 05:32:25 GMT</pubDate><ttl>60</ttl></channel></rss>