Can't init-repository Qt 5.5 on Windows



  • 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?


  • Lifetime Qt Champion

    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



  • 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.


  • Lifetime Qt Champion

    You're welcome !

    The page has been updated

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.