<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Software is Crap]]></provider_name><provider_url><![CDATA[https://davmac.wordpress.com]]></provider_url><author_name><![CDATA[davmac]]></author_name><author_url><![CDATA[https://davmac.wordpress.com/author/davmac/]]></author_url><title><![CDATA[QT&#8217;s qmake]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>Geeezus. There&#8217;s a lot wrong with &#8220;make&#8221; in general and there&#8217;s been <em>way</em> too many attempts to fix it; no-one, as far as I can see, has got it right yet. <em>qmake</em> is no exception, but it does in fact manage to be particularly bad.</p>
<p>Firstly, the makefiles that qmake generates can&#8217;t do a &#8220;make DESTDIR=&lt;whatever&gt; install&#8221;, no, that&#8217;s too standardised, we couldn&#8217;t have that. You have to do a stupid &#8220;make INSTALL_ROOT=&lt;whatever&gt; install&#8221; instead (DESTDIR has some completely different and somewhat retarded meaning). And that, of course, doesn&#8217;t actually work, because the file paths in the makefile are written in such a way that it just doesn&#8217;t work.  You can fix it by editing the &#8220;qmake.conf&#8221; file in the QT bundle and add &#8220;no_fixpath&#8221; at the end of the options listed for the CONFIG variable, before you run qmake. Why isn&#8217;t that the default? Considering that &#8220;fixing&#8221; the path actually borks it, I&#8217;m not sure what sort of numbnut came up with the term or the code.</p>
<p>It&#8217;s easy to verify this by trying to compile &#8220;qca&#8221; (QT cryptographic architecture) and installing it in some alternate location. If no_fixpath isn&#8217;t set, it doesn&#8217;t work, does it? Hello QT developers?</p>
<p>Oh yeah, and qmake has a very limited concept of quoting, but that&#8217;s certainly a problem not limited to this particular software package.</p>
<p>Sigh.</p>
<p><em>Edit</em>: Apparently &#8220;no_fixpath&#8221; is no longer required in Qt 4.3.1; I&#8217;m not sure when it was fixed (it was a problem in 3.3.7). However INSTALL_ROOT is still used instead of (the <em>de facto</em> standard) DESTDIR.</p>
]]></html></oembed>