Questions about building Qt 6 from source, problems retrieving the source code
-
Hello everyone, I hope you're doing good. :)
I've never had any particular trouble (and gotten used) to build Qt 5 for desktop from it's source code.
However, I find some inconsistencies in the documentation on how to build Qt 6 (community edition, for GNU/Linux)...I'm following mainly the instructions from this article:
git clone git://code.qt.io/qt/qt5.git qt6then./init-repository.But, the cloning of the submodules always fails with this error:
From git://code.qt.io/qt/qt5compat a284da2..184ab31 dev -> 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'Next, I tried using
./configure --init-submodules, and it still failed, although sooner and with a different error...Am I doing something wrong here? What is the accurate workflow to build the full Qt 6 framework from sources? Maybe the documentation is not up-to-date?
And while we're at it, what is the preferred method for the configuration, CMake directly, or via the configure script?
Thank you very much in advance. :p
-
@Christian-Ehrlicher Well I'll maybe do that then, thanks. Sad that there's no other way around.
And about the configuration? Do you use the
configurescript, or do you call CMake directly? -
Did you check out the dev branch as written in the mentioned link?
-
Did you check out the dev branch as written in the mentioned link?
@Christian-Ehrlicher No, I switched a specific release tag as specified, because I wish to build from a stable version (
v6.9.2) instead. -
You can skip Qt3d - it's deprecated and maybe the link was not updated correctly due to this.
-
Thanks. I just tried that, subsequently disabling
qt3d,qt5compat,qtactiveqt(because they all failed) but then I get the same error forqtbase...Maybe instead, it's the whole
init-repositoryscript that is deprecated? How do you usually initialize the submodules? -
Thanks. I just tried that, subsequently disabling
qt3d,qt5compat,qtactiveqt(because they all failed) but then I get the same error forqtbase...Maybe instead, it's the whole
init-repositoryscript that is deprecated? How do you usually initialize the submodules?@rubisetcie said in Questions about building Qt 6 from source, problems retrieving the source code:
How do you usually initialize the submodules?
Manually with
git submodule init -
@rubisetcie said in Questions about building Qt 6 from source, problems retrieving the source code:
How do you usually initialize the submodules?
Manually with
git submodule init@Christian-Ehrlicher Well I'll maybe do that then, thanks. Sad that there's no other way around.
And about the configuration? Do you use the
configurescript, or do you call CMake directly? -
@Christian-Ehrlicher Well I'll maybe do that then, thanks. Sad that there's no other way around.
And about the configuration? Do you use the
configurescript, or do you call CMake directly? -
The following works fine here:
git clone git://code.qt.io/qt/qt5.git qt6 cd qt6 git checkout v6.9.2 ./init-repositoryWhat are you doing differently? Which platform are you on?
Neitherinit-repository, norconfigureare deprecated.@jobor I see, this is really weird then... :|
I'm on Debian 13, but I'm kinda relieved that neither
init-repositoryandconfigureare deprecated. :)Actually I'm doing a shallow Git clone (
git clone --depth 1 --branch v6.9.2 git://code.qt.io/qt/qt5.git qt6)... do you think it could be related to my problem? -
R rubisetcie has marked this topic as solved on