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. [solved] How to build older version from source (5.1.1)
Forum Updated to NodeBB v4.3 + New Features

[solved] How to build older version from source (5.1.1)

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.8k Views 1 Watching
  • 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.
  • Q Offline
    Q Offline
    qtJoe
    wrote on last edited by
    #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.

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

      Hi and welcome to devnet,

      let init-repository download and setup everything. Once it's done just do a @git checkout v5.1.1@

      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
      • Q Offline
        Q Offline
        qtJoe
        wrote on last edited by
        #3

        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!

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

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

          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
          • N Offline
            N Offline
            nikkej
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            1

            • Login

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