<?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[QMake -v pointing to the wrong directory]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I am following the tutorial of how to build qt creator from git on my linux vmware machine.<br />
<a href="http://wiki.qt.io/Building-Qt-Creator-from-Git" target="_blank" rel="noopener noreferrer nofollow ugc">http://wiki.qt.io/Building-Qt-Creator-from-Git</a><br />
I come to the first step: qmake -v<br />
My output of qmake -v is different..</p>
<ul>
<li>root@ubuntu:/home/jorricks/qt5/qtbase/bin# qmake -v<br />
QMake version 3.0<br />
Using Qt version 5.3.0 in /usr/lib/i386-linux-gnu<br />
root@ubuntu:/home/jorricks/qt5/qtbase/bin# ./qmake -v<br />
QMake version 3.0<br />
Using Qt version 5.4.2 in /home/jorricks/qt5/qtbase/lib</li>
</ul>
<p dir="auto">Of course I want to use the 5.4.2...<br />
My $PATH</p>
<ul>
<li>root@ubuntu:/home/jorricks/qt5/qtbase/bin# echo $PATH<br />
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/jorricks/qt5/qtbase/bin</li>
</ul>
<p dir="auto">Does anyone have any suggestions for me?</p>
<p dir="auto">Kind regards,</p>
]]></description><link>https://forum.qt.io/topic/52229/qmake-v-pointing-to-the-wrong-directory</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 06:35:45 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/52229.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 14 Mar 2015 10:49:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QMake -v pointing to the wrong directory on Mon, 16 Mar 2015 23:36:01 GMT]]></title><description><![CDATA[<p dir="auto">Is it an error from a self built Qt ?</p>
]]></description><link>https://forum.qt.io/post/265672</link><guid isPermaLink="true">https://forum.qt.io/post/265672</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 16 Mar 2015 23:36:01 GMT</pubDate></item><item><title><![CDATA[Reply to QMake -v pointing to the wrong directory on Mon, 16 Mar 2015 15:57:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Okay.. So I found out I installed QT5 with apt-get as well..<br />
Now I started it from the installed folder and it works.<br />
I was indeed building qt creator yes and I was doing everything as root..<br />
Everything works now except one thing..<br />
The examples in qt creator don't show up and the same for the help..<br />
I get this error:</p>
<ul>
<li>The page could not be found<br />
Error loading: qthelp://org.qt-project.qtcreator.3481/doc/index.html<br />
Check that you have the corresponding documentation set installed.</li>
</ul>
<p dir="auto">Kind regards,</p>
]]></description><link>https://forum.qt.io/post/265603</link><guid isPermaLink="true">https://forum.qt.io/post/265603</guid><dc:creator><![CDATA[AQTStudent]]></dc:creator><pubDate>Mon, 16 Mar 2015 15:57:21 GMT</pubDate></item><item><title><![CDATA[Reply to QMake -v pointing to the wrong directory on Mon, 16 Mar 2015 15:47:44 GMT]]></title><description><![CDATA[<p dir="auto">The Qt version used to build Qt Creator and the one you are using are two completely different things and don't need to match.</p>
<p dir="auto">So are you building Qt Creator ?</p>
<p dir="auto">Also, are you doing it as root or as your normal user ? It's not really clear.</p>
]]></description><link>https://forum.qt.io/post/265602</link><guid isPermaLink="true">https://forum.qt.io/post/265602</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 16 Mar 2015 15:47:44 GMT</pubDate></item><item><title><![CDATA[Reply to QMake -v pointing to the wrong directory on Mon, 16 Mar 2015 15:38:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Okay.. so It didn't really work out after all..<br />
I was trying to install qt-creator for 5.4.2.<br />
I edited the path and everywhere qmake -v now points to the right directory..<br />
However, after installing I looked at help and still qt creator was using qt 5.3...<br />
How do I make sure my installation is done for 5.4.2??</p>
<ul>
<li>root@ubuntu:/home/jorricks/qt-creator-build# /home/jorricks/qt5/qtbase/lib/qmake -r /home/jorricks/qt-creator/qtcreator.pro<br />
bash: /home/jorricks/qt5/qtbase/lib/qmake: No such file or directory</li>
</ul>
<p dir="auto">That was the outcome of the full path as suggested..</p>
<p dir="auto">Kind regards,</p>
]]></description><link>https://forum.qt.io/post/265600</link><guid isPermaLink="true">https://forum.qt.io/post/265600</guid><dc:creator><![CDATA[AQTStudent]]></dc:creator><pubDate>Mon, 16 Mar 2015 15:38:48 GMT</pubDate></item><item><title><![CDATA[Reply to QMake -v pointing to the wrong directory on Mon, 16 Mar 2015 14:36:44 GMT]]></title><description><![CDATA[<p dir="auto">@jorricks You are welcome.</p>
]]></description><link>https://forum.qt.io/post/265595</link><guid isPermaLink="true">https://forum.qt.io/post/265595</guid><dc:creator><![CDATA[simow]]></dc:creator><pubDate>Mon, 16 Mar 2015 14:36:44 GMT</pubDate></item><item><title><![CDATA[Reply to QMake -v pointing to the wrong directory on Mon, 16 Mar 2015 13:48:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/simow">@<bdi>simow</bdi></a><br />
This worked perfectly! Thanks!</p>
]]></description><link>https://forum.qt.io/post/265591</link><guid isPermaLink="true">https://forum.qt.io/post/265591</guid><dc:creator><![CDATA[AQTStudent]]></dc:creator><pubDate>Mon, 16 Mar 2015 13:48:18 GMT</pubDate></item><item><title><![CDATA[Reply to QMake -v pointing to the wrong directory on Sat, 14 Mar 2015 23:54:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<blockquote>
<p dir="auto">I'd avoid modifying PATH since you could end up having more version of Qt on your system. You should rather use the full path to qmake, so you know you are using the one you want to currently use.</p>
</blockquote>
<p dir="auto">Admittedly one should know what she/he is doing. But that said <code>qtchooser</code> comes to my mind (<a href="http://code.qt.io/cgit/qt/qtchooser.git/" target="_blank" rel="noopener noreferrer nofollow ugc">http://code.qt.io/cgit/qt/qtchooser.git/</a>). It uses the version one can set via the <code>QT_SELECT</code> environment variable.<br />
Should be a standard package that comes with the distro.</p>
]]></description><link>https://forum.qt.io/post/265413</link><guid isPermaLink="true">https://forum.qt.io/post/265413</guid><dc:creator><![CDATA[simow]]></dc:creator><pubDate>Sat, 14 Mar 2015 23:54:22 GMT</pubDate></item><item><title><![CDATA[Reply to QMake -v pointing to the wrong directory on Sat, 14 Mar 2015 21:42:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">If you want to call the qmake from your current path (/home/jorricks/qt5/qtbase/bin) you need to add ./ before so:</p>
<p dir="auto"><code>root@ubuntu:/home/jorricks/qt5/qtbase/bin# ./qmake -v</code><br />
will show you the correct version.</p>
<p dir="auto">I'd avoid modifying PATH since you could end up having more version of Qt on your system. You should rather use the full path to qmake, so you know you are using the one you want to currently use.</p>
<p dir="auto">On a side note, developing as root is pretty dangerous, you can annihilate your system without knowing and you won't get any warning.</p>
]]></description><link>https://forum.qt.io/post/265402</link><guid isPermaLink="true">https://forum.qt.io/post/265402</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 14 Mar 2015 21:42:15 GMT</pubDate></item><item><title><![CDATA[Reply to QMake -v pointing to the wrong directory on Sat, 14 Mar 2015 11:37:57 GMT]]></title><description><![CDATA[<p dir="auto">@jorricks Hi, I think you are running Qt 5.3.0 as your system Qt and as it seems you built 5.4.2 and installed it in your home directory. But your PATH references your system Qt first. Try putting <code>/home/jorricks/qt5/qtbase/bin</code> first in your PATH:</p>
<pre><code>export PATH=$HOME/qt5/qtbase/bin:$PATH
</code></pre>
]]></description><link>https://forum.qt.io/post/265325</link><guid isPermaLink="true">https://forum.qt.io/post/265325</guid><dc:creator><![CDATA[simow]]></dc:creator><pubDate>Sat, 14 Mar 2015 11:37:57 GMT</pubDate></item></channel></rss>