<?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[Questions about building Qt 6 from source, problems retrieving the source code]]></title><description><![CDATA[<p dir="auto">Hello everyone, I hope you're doing good. :)</p>
<p dir="auto">I've never had any particular trouble (and gotten used) to build Qt 5 for desktop from it's source code.<br />
However, I find some inconsistencies in the documentation on how to build Qt 6 (community edition, for GNU/Linux)...</p>
<p dir="auto">I'm following mainly the instructions from <a href="https://wiki.qt.io/Building_Qt_6_from_Git" target="_blank" rel="noopener noreferrer nofollow ugc">this article</a>:</p>
<p dir="auto"><code>git clone git://code.qt.io/qt/qt5.git qt6</code> then <code>./init-repository</code>.</p>
<p dir="auto">But, the <strong>cloning of the submodules always fails</strong> with this error:</p>
<pre><code>From git://code.qt.io/qt/qt5compat
   a284da2..184ab31  dev        -&gt; origin/dev
+ git config commit.template /home/rubisetcie/apps/qt6/.commit-template
+ git config remote.gerrit.url ssh://codereview.qt-project.org/qt/qt5compat.git
+ git config remote.gerrit.fetch +refs/heads/*:refs/remotes/gerrit/* /heads/
+ git submodule update --force --no-fetch
fatal: reference is not a tree: 440bf7fc60b7176b5a8d1de0a3a0ea7c1ae9bf87
fatal: Unable to checkout '440bf7fc60b7176b5a8d1de0a3a0ea7c1ae9bf87' in submodule path 'qt3d'
</code></pre>
<p dir="auto">Next, I tried using <code>./configure  --init-submodules</code>, and it still failed, although sooner and with a different error...</p>
<p dir="auto">Am I doing something wrong here? <strong>What is the accurate workflow to build the full Qt 6 framework from sources?</strong> Maybe the <strong>documentation is not up-to-date</strong>?</p>
<p dir="auto">And while we're at it, what is the preferred method for the configuration, <strong>CMake</strong> directly, or via the <strong>configure script</strong>?</p>
<p dir="auto">Thank you very much in advance. :p</p>
]]></description><link>https://forum.qt.io/topic/163325/questions-about-building-qt-6-from-source-problems-retrieving-the-source-code</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 10:47:20 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/163325.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Sep 2025 17:01:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Questions about building Qt 6 from source, problems retrieving the source code on Wed, 24 Sep 2025 17:04:18 GMT]]></title><description><![CDATA[<p dir="auto">The following works fine here:</p>
<pre><code>git clone git://code.qt.io/qt/qt5.git qt6 
cd qt6
git checkout v6.9.2
./init-repository
</code></pre>
<p dir="auto">What are you doing differently? Which platform are you on?<br />
Neither <code>init-repository</code>, nor <code>configure</code> are deprecated.</p>
]]></description><link>https://forum.qt.io/post/831968</link><guid isPermaLink="true">https://forum.qt.io/post/831968</guid><dc:creator><![CDATA[jobor]]></dc:creator><pubDate>Wed, 24 Sep 2025 17:04:18 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about building Qt 6 from source, problems retrieving the source code on Wed, 24 Sep 2025 20:40:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jobor">@<bdi>jobor</bdi></a> I see, this is really weird then... :|</p>
<p dir="auto">I'm on Debian 13, but I'm kinda relieved that neither <code>init-repository</code> and <code>configure</code> are deprecated. :)</p>
<p dir="auto">Actually I'm doing a <strong>shallow Git clone</strong> (<code>git clone --depth 1 --branch v6.9.2 git://code.qt.io/qt/qt5.git qt6</code>)... do you think it could be related to my problem?</p>
]]></description><link>https://forum.qt.io/post/831986</link><guid isPermaLink="true">https://forum.qt.io/post/831986</guid><dc:creator><![CDATA[rubisetcie]]></dc:creator><pubDate>Wed, 24 Sep 2025 20:40:38 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about building Qt 6 from source, problems retrieving the source code on Wed, 24 Sep 2025 17:04:18 GMT]]></title><description><![CDATA[<p dir="auto">The following works fine here:</p>
<pre><code>git clone git://code.qt.io/qt/qt5.git qt6 
cd qt6
git checkout v6.9.2
./init-repository
</code></pre>
<p dir="auto">What are you doing differently? Which platform are you on?<br />
Neither <code>init-repository</code>, nor <code>configure</code> are deprecated.</p>
]]></description><link>https://forum.qt.io/post/831968</link><guid isPermaLink="true">https://forum.qt.io/post/831968</guid><dc:creator><![CDATA[jobor]]></dc:creator><pubDate>Wed, 24 Sep 2025 17:04:18 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about building Qt 6 from source, problems retrieving the source code on Wed, 24 Sep 2025 07:07:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> Well I'll maybe do that then, thanks. Sad that there's no other way around.</p>
<p dir="auto">And about the configuration? Do you use the <code>configure</code> script, or do you call CMake directly?</p>
]]></description><link>https://forum.qt.io/post/831951</link><guid isPermaLink="true">https://forum.qt.io/post/831951</guid><dc:creator><![CDATA[rubisetcie]]></dc:creator><pubDate>Wed, 24 Sep 2025 07:07:09 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about building Qt 6 from source, problems retrieving the source code on Wed, 24 Sep 2025 04:15:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rubisetcie">@<bdi>rubisetcie</bdi></a> said in <a href="/post/831931">Questions about building Qt 6 from source, problems retrieving the source code</a>:</p>
<blockquote>
<p dir="auto">How do you usually initialize the submodules?</p>
</blockquote>
<p dir="auto">Manually with <code>git submodule init</code></p>
]]></description><link>https://forum.qt.io/post/831946</link><guid isPermaLink="true">https://forum.qt.io/post/831946</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Wed, 24 Sep 2025 04:15:04 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about building Qt 6 from source, problems retrieving the source code on Tue, 23 Sep 2025 19:04:10 GMT]]></title><description><![CDATA[<p dir="auto">Thanks. I just tried that, subsequently disabling <code>qt3d</code>, <code>qt5compat</code>, <code>qtactiveqt</code> (because they all failed) but then <strong>I get the same error for <code>qtbase</code></strong>...</p>
<p dir="auto">Maybe instead, it's the whole <code>init-repository</code> script that is deprecated? How do you usually initialize the submodules?</p>
]]></description><link>https://forum.qt.io/post/831931</link><guid isPermaLink="true">https://forum.qt.io/post/831931</guid><dc:creator><![CDATA[rubisetcie]]></dc:creator><pubDate>Tue, 23 Sep 2025 19:04:10 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about building Qt 6 from source, problems retrieving the source code on Tue, 23 Sep 2025 18:32:08 GMT]]></title><description><![CDATA[<p dir="auto">You can skip Qt3d - it's deprecated and maybe the link was not updated correctly due to this.</p>
]]></description><link>https://forum.qt.io/post/831928</link><guid isPermaLink="true">https://forum.qt.io/post/831928</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Tue, 23 Sep 2025 18:32:08 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about building Qt 6 from source, problems retrieving the source code on Tue, 23 Sep 2025 17:44:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> No, I switched a specific release tag as specified, because I wish to build from a stable version (<code>v6.9.2</code>) instead.</p>
]]></description><link>https://forum.qt.io/post/831927</link><guid isPermaLink="true">https://forum.qt.io/post/831927</guid><dc:creator><![CDATA[rubisetcie]]></dc:creator><pubDate>Tue, 23 Sep 2025 17:44:40 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about building Qt 6 from source, problems retrieving the source code on Tue, 23 Sep 2025 17:08:46 GMT]]></title><description><![CDATA[<p dir="auto">Did you check out the dev branch as written in the mentioned link?</p>
]]></description><link>https://forum.qt.io/post/831926</link><guid isPermaLink="true">https://forum.qt.io/post/831926</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Tue, 23 Sep 2025 17:08:46 GMT</pubDate></item></channel></rss>