Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt Contribution
  4. build from source: contradictory instructions
QtWS25 Last Chance

build from source: contradictory instructions

Scheduled Pinned Locked Moved Solved Qt Contribution
9 Posts 2 Posters 1.4k 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.
  • D Offline
    D Offline
    davecotter
    wrote on 28 Jun 2021, 21:03 last edited by
    #1

    the first time through building Qt libraries from source there are some contradictory instructions...

    according to this doc, you just do this:

    > make
    > make install
    

    but according to the Qt source itself, when i run configure, at the end of the output it says to do this:

    > cmake --build . --parallel
    > cmake --install
    

    so which is it? and why the contradictory documentation?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 28 Jun 2021, 21:42 last edited by
      #8

      Then follow the instructions to build Qt 5 from git.

      In any case, if you want to be on the safe side, nuke your current local copy.

      Clone the super module again, "git checkout 5.15.2" and then do the unit-repository stuff.

      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
      1
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 28 Jun 2021, 21:07 last edited by
        #2

        Hi,

        You are comparing Qt 5.9 build instructions with Qt 6 build instructions.

        Both are correct since they apply to different build systems.

        There's no contradiction.

        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
        1
        • D Offline
          D Offline
          davecotter
          wrote on 28 Jun 2021, 21:18 last edited by
          #3

          the link is definitely from qt5, yes, you can see it in the URL.

          but the output from build ALSO came after cloning, initting, configuring, and making qt5. These are the commands that lead me to see that message:

          cd /Volumes/Developer/depot/Qt5_Source
          git clone git://code.qt.io/qt/qt5.git
          cd qt5
          perl init-repository --module-subset=default,-qtwebengine
          cd ..
          mkdir build
          cd build
          ../qt5/configure -prefix ./obj/debug -developer-build -opensource -nomake examples -nomake tests -confirm-license -no-feature-translation
          

          so, from what i can tell, they both come from qt5

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 28 Jun 2021, 21:20 last edited by
            #4

            The default branch you clone from the qt5 super module is dev which is for Qt 6.

            There's going to be some changes in that regard in the near future to make things simpler.

            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
            1
            • D Offline
              D Offline
              davecotter
              wrote on 28 Jun 2021, 21:21 last edited by davecotter
              #5

              okay sure would be nice if the doc indicated that. how do i branch from qt5/dev ? the open source one not the LTS one. do i just branch from 5.15.2, and ... make PRs against that?

              not quite sure how that works. can i even contribute to that? or if i want to contribute do i have to pay for access to LTS ?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 28 Jun 2021, 21:27 last edited by
                #6

                The wiki page for building Qt 6 from git explains it.

                You don't branch in the super module.

                You create new branches in the module you want to contribute to.

                Is your question "how do I create a branch with git ?" ?

                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
                1
                • D Offline
                  D Offline
                  davecotter
                  wrote on 28 Jun 2021, 21:34 last edited by davecotter
                  #7

                  you indicate a page about building Qt6 from git. but i'm not doing that, i'm building Qt5.

                  you say "you create new branches in the module you want to contribute to". okay, well, i'm also new to git, been using p4 for 20+ years... not sure what you mean by "module". i need to build ALL of Qt, not just one thing.

                  so i run the "Fork" gui app, and i see a list of remote branches that i would branch FROM in order to build the entirety of the Qt Frameworks.

                  Screen Shot 2021-06-28 at 2.30.36 PM.png

                  "dev" is branched from origin/dev which, as you say, is not what i want since it is qt6.

                  what i imagine i do now is right click on origin/5.15.2 and pick "checkout", right?

                  my goal here is to get all the correct source code, so i can build. not even thinking about linking to it, editing it, or submitting fixes to some part of it.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 28 Jun 2021, 21:42 last edited by
                    #8

                    Then follow the instructions to build Qt 5 from git.

                    In any case, if you want to be on the safe side, nuke your current local copy.

                    Clone the super module again, "git checkout 5.15.2" and then do the unit-repository stuff.

                    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
                    1
                    • D Offline
                      D Offline
                      davecotter
                      wrote on 28 Jun 2021, 22:02 last edited by
                      #9

                      yeah, kay. thanks for bearing with me, i've never done this before!

                      :D

                      1 Reply Last reply
                      0

                      9/9

                      28 Jun 2021, 22:02

                      • Login

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