Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Can't init-repository Qt 5.5 on Windows

Can't init-repository Qt 5.5 on Windows

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 1.7k 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.
  • C Offline
    C Offline
    cbranch
    wrote on last edited by
    #1

    Following instructions from https://wiki.qt.io/Building_Qt_5_from_Git

    git clone git://code.qt.io/qt/qt5.git
    cd qt5
    git checkout 5.5.0
    perl init-repository

    init-repository fails due to git failing checkout submodules on non-existent branch 5.5.0 based on the contents of the .gitmodules file.

    The reason is that branch doesn't exist as the policy is to delete them after tagging.
    See: http://code.qt.io/cgit/qt/qt3d.git

    Unfortunately checking out the tag v5.5.0 has the same problem.

    Does anyone know what the correct steps for building the released 5.5 version?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Do as recommended: checkout 5.5 and init the repositories. Then you'll be able to checkout v5.5.0

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cbranch
        wrote on last edited by
        #3

        Thank you, that does appear to work. It would be helpful if the documentation was updated to include specific instructions on how to build a release rather than the development branch. The doc seems a little dangerous to not explicitly indicate that 5.5 is not actually the release version but the active development branch. They are in fact required to read the branching documentation page to understand that.

        Additional setps to build a release via a tag:
        git checkout v5.5.0
        git submodule update

        It's a shame that the init-repository script doesn't detect that the repo is detached due to a tag being used and act appropriately or give some more meaningful output. It seems that it's only valid to run the script while on a branch and not a detached head.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome !

          The page has been updated

          If you know how to improve init-repository, I encourage you to contribute :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

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