Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Questions about building Qt 6 from source, problems retrieving the source code
Forum Updated to NodeBB v4.3 + New Features

Questions about building Qt 6 from source, problems retrieving the source code

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 3 Posters 329 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • rubisetcieR Offline
    rubisetcieR Offline
    rubisetcie
    wrote last edited by
    #1

    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 qt6 then ./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

    1 Reply Last reply
    0
    • rubisetcieR rubisetcie

      @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 configure script, or do you call CMake directly?

      joborJ Offline
      joborJ Offline
      jobor
      wrote last edited by
      #8

      The following works fine here:

      git clone git://code.qt.io/qt/qt5.git qt6 
      cd qt6
      git checkout v6.9.2
      ./init-repository
      

      What are you doing differently? Which platform are you on?
      Neither init-repository, nor configure are deprecated.

      rubisetcieR 1 Reply Last reply
      1
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote last edited by
        #2

        Did you check out the dev branch as written in the mentioned link?

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        rubisetcieR 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          Did you check out the dev branch as written in the mentioned link?

          rubisetcieR Offline
          rubisetcieR Offline
          rubisetcie
          wrote last edited by
          #3

          @Christian-Ehrlicher No, I switched a specific release tag as specified, because I wish to build from a stable version (v6.9.2) instead.

          1 Reply Last reply
          0
          • Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote last edited by
            #4

            You can skip Qt3d - it's deprecated and maybe the link was not updated correctly due to this.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            1 Reply Last reply
            1
            • rubisetcieR Offline
              rubisetcieR Offline
              rubisetcie
              wrote last edited by
              #5

              Thanks. I just tried that, subsequently disabling qt3d, qt5compat, qtactiveqt (because they all failed) but then I get the same error for qtbase...

              Maybe instead, it's the whole init-repository script that is deprecated? How do you usually initialize the submodules?

              Christian EhrlicherC 1 Reply Last reply
              0
              • rubisetcieR rubisetcie

                Thanks. I just tried that, subsequently disabling qt3d, qt5compat, qtactiveqt (because they all failed) but then I get the same error for qtbase...

                Maybe instead, it's the whole init-repository script that is deprecated? How do you usually initialize the submodules?

                Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote last edited by
                #6

                @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

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                rubisetcieR 1 Reply Last reply
                0
                • Christian EhrlicherC Christian Ehrlicher

                  @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

                  rubisetcieR Offline
                  rubisetcieR Offline
                  rubisetcie
                  wrote last edited by
                  #7

                  @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 configure script, or do you call CMake directly?

                  joborJ 1 Reply Last reply
                  0
                  • rubisetcieR rubisetcie

                    @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 configure script, or do you call CMake directly?

                    joborJ Offline
                    joborJ Offline
                    jobor
                    wrote last edited by
                    #8

                    The following works fine here:

                    git clone git://code.qt.io/qt/qt5.git qt6 
                    cd qt6
                    git checkout v6.9.2
                    ./init-repository
                    

                    What are you doing differently? Which platform are you on?
                    Neither init-repository, nor configure are deprecated.

                    rubisetcieR 1 Reply Last reply
                    1
                    • joborJ jobor

                      The following works fine here:

                      git clone git://code.qt.io/qt/qt5.git qt6 
                      cd qt6
                      git checkout v6.9.2
                      ./init-repository
                      

                      What are you doing differently? Which platform are you on?
                      Neither init-repository, nor configure are deprecated.

                      rubisetcieR Offline
                      rubisetcieR Offline
                      rubisetcie
                      wrote last edited by
                      #9

                      @jobor I see, this is really weird then... :|

                      I'm on Debian 13, but I'm kinda relieved that neither init-repository and configure are 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?

                      1 Reply Last reply
                      0
                      • rubisetcieR rubisetcie has marked this topic as solved

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved