gitqtqt5.5qt5.6

How clone qt source from git


I need qt5.5 source code and I have seen this command:

git clone git://code.qt.io/qt/qt5.git

Does this gives qt 5.5 version or qt 5.6 alpha version?

Is there a way to specify the version?

I saw a command:

git clone https://github.com/qtproject/qt5.git --branch v5.3.1**

Can I use a similar command to get qt 5.5 version?


Solution

  • Of course you can: just take a look at https://github.com/qtproject/qt5/branches and see the available branches. As you notice, your desired branch is called 5.5 - so use this in the git clone command. :)

    git clone https://github.com/qtproject/qt5.git --branch 5.5

    Edit: I just noticed, that the qt5 repository uses submodules to organize everything. In order to check them out as well (and not just having empty folders), please see this SO answer on how to checkout git submodules as well. :)