[solved] How to build older version from source (5.1.1)
-
Hello, I have successfully built and run qt5.2, but how can I can I build and run 5.1.1?
When I tried I think the big problem was that "perl init-repository" would get 5.2 source even if I moved the git branch to 5.1.1.
Thank you.
-
Hi and welcome to devnet,
let init-repository download and setup everything. Once it's done just do a @git checkout v5.1.1@
-
tl;dr: thanks! that was a big help!
For other people who might read this I ran:
@$ git clone git://gitorious.org/qt/qt5.git qt5
$ cd qt5/
$ git checkout v5.1.1 #note 1
$ git branch
$ perl init-repository
$ git checkout v5.1.1
$ git branch # note 1
$ ./configure -developer-build -opensource -nomake examples -nomake tests
$ make module-qtbase -j 8 # note 2
$ qtbase/bin/qmake -v@note #1: just checking to see what branch I'm on
note #2: partial build for now, I will remove "module-qtbase" and re run later. The -j 8 is because I have 8 'cores'and received
@QMake version 3.0
Using Qt version 5.1.1 in /home/qtjoe/testing/qt5/qtbase/lib@that's pretty awesome, it appears to have worked, I will finish compiling the rest of the modules now.
Of course I had to install the "dependencies":http://qt-project.org/wiki/Building_Qt_5_from_Git first
Thank you!
-
You're welcome !
If I may add, you'd better do an out of source build so you don't "pollute" it with your build files. It also allows you to use the same sources for different build e.g. 32/64bit, linux/android etc...
-
Sorry for being a bit late for this thread but for sake of completeness and good information, I would rather expand than create a new thread. To my understanding, one should ensure proper "alignment" of submodules with superproject, by doing @git submodule update --checkout --recursive@ after issuing command to check out specific tag.
This shall check out submodule HEADs to what they were in respect to superproject's commit at the moment of creation a specific tag, in this case v5.1.1