build from source: contradictory instructions
-
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?
-
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.
-
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.
-
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
-
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.
-
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 ?
-
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 ?" ?
-
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.
"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.
-
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.
-
yeah, kay. thanks for bearing with me, i've never done this before!
:D