<?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[INSTALLS Paths&#x2F;Files Cannot Be Empty ?]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">Trying to define some installation (make install) steps for my project but got stuck in one point. There is a .pro file which gathers all the sub-projects together by using SUBDIRS. Here is the main idea,</p>
<ul>
<li>All sub-projects will put their builds under $main_project_path/sub_project_path/output/binary/</li>
<li>After a successful build, all outputs will be copied under $main_project_path/output/ folder.</li>
</ul>
<p dir="auto">So I wrote following lines in the SUBDIR template .pro file.</p>
<pre><code>public_builds.path = $$PWD/output/
public_builds.files += "$$PWD/projects/sub-project-1/output/binary/*"
public_builds.files += "$$PWD/projects/sub-project-2/output/binary/*"
INSTALLS += public_builds
</code></pre>
<p dir="auto">Then I ran qmake, make and make install commands but the make install was failed. I ran qmake again without calling make clean, then ran the make install and it started working.</p>
<p dir="auto">I saw that, if the public_builds.files  are not existing, qmake does not populate corresponding install lines in Makefile. The output files are being created after building the project, this is why it was worked on the 2. time when I run qmake after building.</p>
<p dir="auto">Is there any way to force the qmake to add install paths into the Makefile even the directories are empty?</p>
]]></description><link>https://forum.qt.io/topic/92929/installs-paths-files-cannot-be-empty</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 01:34:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/92929.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 22 Jul 2018 20:53:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to INSTALLS Paths&#x2F;Files Cannot Be Empty ? on Fri, 03 Aug 2018 09:50:48 GMT]]></title><description><![CDATA[<p dir="auto">@canavaroski said in <a href="/post/473732">INSTALLS Paths/Files Cannot Be Empty ?</a>:</p>
<blockquote>
<p dir="auto">So how "INSTALLS" works when I put it into the .pro file of the subproject instead of the template .pro file?  Isn't qmake work in the same way? There will be no binary file at the time qmake works and they will be created after the compilation finishes and <strong>make install</strong> should fail.</p>
</blockquote>
<p dir="auto">Indeed. I suppose the subdirs template handling in qmake just does not take it into account. You may suggest a change on Qt bugtracker, but it almost certainly won't be fixed (qmake is not actively developed anymore, only kept alive).</p>
]]></description><link>https://forum.qt.io/post/473735</link><guid isPermaLink="true">https://forum.qt.io/post/473735</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Fri, 03 Aug 2018 09:50:48 GMT</pubDate></item><item><title><![CDATA[Reply to INSTALLS Paths&#x2F;Files Cannot Be Empty ? on Fri, 03 Aug 2018 09:46:27 GMT]]></title><description><![CDATA[<p dir="auto">So how "INSTALLS" works when I put it into the .pro file of the subproject instead of the template .pro file?  Isn't qmake work in the same way? There will be no binary file at the time qmake works and they will be created after the compilation finishes and <strong>make install</strong> should fail.</p>
]]></description><link>https://forum.qt.io/post/473732</link><guid isPermaLink="true">https://forum.qt.io/post/473732</guid><dc:creator><![CDATA[deleted605]]></dc:creator><pubDate>Fri, 03 Aug 2018 09:46:27 GMT</pubDate></item><item><title><![CDATA[Reply to INSTALLS Paths&#x2F;Files Cannot Be Empty ? on Wed, 01 Aug 2018 15:55:31 GMT]]></title><description><![CDATA[<p dir="auto">@canavaroski said in <a href="/post/471521">INSTALLS Paths/Files Cannot Be Empty ?</a>:</p>
<blockquote>
<p dir="auto">Can you explain why this is happening? Or at least can you refer any technical document?</p>
</blockquote>
<p dir="auto">Why what is happening? Why you need to build your project twice?</p>
<p dir="auto">The installation target is run when you compile (<code>make</code>) your project. But the Makefile is generated <strong>before</strong> that - when you run <code>qmake</code>. So at the time <code>qmake</code> is run, the files don't exist (the '*' wildcard does not match anything) and qmake skips it.</p>
<p dir="auto"><code>INSTALLS</code> command docs are here <a href="https://doc.qt.io/qt-5/qmake-advanced-usage.html#installing-files" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qmake-advanced-usage.html#installing-files</a> not sure if they will help with anything here, though.</p>
]]></description><link>https://forum.qt.io/post/473275</link><guid isPermaLink="true">https://forum.qt.io/post/473275</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Wed, 01 Aug 2018 15:55:31 GMT</pubDate></item><item><title><![CDATA[Reply to INSTALLS Paths&#x2F;Files Cannot Be Empty ? on Mon, 23 Jul 2018 14:23:27 GMT]]></title><description><![CDATA[<p dir="auto">Can you explain why this is happening? Or at least can you refer any technical document?</p>
]]></description><link>https://forum.qt.io/post/471521</link><guid isPermaLink="true">https://forum.qt.io/post/471521</guid><dc:creator><![CDATA[deleted605]]></dc:creator><pubDate>Mon, 23 Jul 2018 14:23:27 GMT</pubDate></item><item><title><![CDATA[Reply to INSTALLS Paths&#x2F;Files Cannot Be Empty ? on Mon, 23 Jul 2018 12:54:49 GMT]]></title><description><![CDATA[<p dir="auto">@canavaroski said in <a href="/post/471487">INSTALLS Paths/Files Cannot Be Empty ?</a>:</p>
<blockquote>
<p dir="auto">Yep, it is working, I tested it. Isn't it possible to make it in the template pro file?</p>
</blockquote>
<p dir="auto">I don't see such option at the moment, but maybe I'm missing something.</p>
]]></description><link>https://forum.qt.io/post/471490</link><guid isPermaLink="true">https://forum.qt.io/post/471490</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Mon, 23 Jul 2018 12:54:49 GMT</pubDate></item><item><title><![CDATA[Reply to INSTALLS Paths&#x2F;Files Cannot Be Empty ? on Mon, 23 Jul 2018 12:49:48 GMT]]></title><description><![CDATA[<p dir="auto">Yep, it is working, I tested it. Isn't it possible to make it in the template pro file?</p>
]]></description><link>https://forum.qt.io/post/471487</link><guid isPermaLink="true">https://forum.qt.io/post/471487</guid><dc:creator><![CDATA[deleted605]]></dc:creator><pubDate>Mon, 23 Jul 2018 12:49:48 GMT</pubDate></item><item><title><![CDATA[Reply to INSTALLS Paths&#x2F;Files Cannot Be Empty ? on Mon, 23 Jul 2018 09:33:42 GMT]]></title><description><![CDATA[<p dir="auto">I think you should rather put the binary copying code in your subprojects. You can write it once, put into some .pri file and then <code>include()</code> in each subproject - should work.</p>
]]></description><link>https://forum.qt.io/post/471458</link><guid isPermaLink="true">https://forum.qt.io/post/471458</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Mon, 23 Jul 2018 09:33:42 GMT</pubDate></item></channel></rss>