[Interest] Compiling the latest Qt versions post-5.10

Sze Howe Koh szehowe.koh at gmail.com
Sun Oct 22 15:42:25 CEST 2017


On 22 October 2017 at 20:21, Jeffrey Brendecke
<jeffrey.brendecke at gmail.com> wrote:
>
> On 21. Oct 2017, at 15:56, Jeffrey Brendecke <jeffrey.brendecke at gmail.com>
> wrote:
>
> Is it possible to access the latest development branches for Qt versions
> after 5.10?
>
> If so, where do I get the source and are there compilation/installation
> instructions beyond what is found here:
>
> https://wiki.qt.io/Building_Qt_5_from_Git
>
>
> The process for cloning and checking out the dev branch goes fine until
> qtnetworkauth. At that point I am consistently prompted to authenticate,
> which does not succeed with my GitHub account.
>
> Do I need to be registered anywhere as a user in order to get access? I just
> want read-only access at this time.
>
> $ git clone https://github.com/qtproject/qt5.git --branch dev

No registration is required.


=== EXPLANATION ===
Some time ago, the libraries moved from https://github.com/qtproject/
to https://github.com/qt/.

So, https://github.com/qtproject/qt5.git now redirects to
https://github.com/qt/qt5.git (try it in your web browser). GitHub
takes care of the redirection when you clone.

However, Qt Network Authorization is a much newer module. It never
existed under the old qtproject account, so a redirection doesn't
exist. You can go to https://github.com/qt/qtnetworkauth.git, but
https://github.com/qtproject/qtnetworkauth.git gives error 404.


=== SOLUTION ===
If you edit your the qt5/.git/config file and set remote "origin" to
https://github.com/qt/qt5.git, you should be able to run the
init-repository script again. (You might need to use the --force
option)

If all that is too hard, you can also delete everything, clone
https://code.qt.io/qt/qt5.git (as recommended by the wiki), and run
init-repository from scratch.


> $ cd qt5
> $ git checkout dev
> $ perl init-repository
> --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine
>
> Error message:
> + git clone --no-checkout https://github.com/qtproject/qtnetworkauth.git
> qtnetworkauth
> Cloning into 'qtnetworkauth'...
> Username for 'https://github.com': XXXX
> Password for 'https://XXXX@github.com':
> remote: Invalid username or password.
> fatal: Authentication failed for
> 'https://github.com/qtproject/qtnetworkauth.git/'
> git clone --no-checkout https://github.com/qtproject/qtnetworkauth.git
> qtnetworkauth exited with status 32768 at init-repository line 198.
> Qt::InitRepository::exe('Qt::InitRepository=HASH(0x7f89f2803ff0)', 'git',
> 'clone', '--no-checkout', 'https://github.com/qtproject/qtnetworkauth.git',
> 'qtnetworkauth') called at init-repository line 534
> Qt::InitRepository::git_clone_one_submodule('Qt::InitRepository=HASH(0x7f89f2803ff0)',
> 'qtnetworkauth', 'qtnetworkauth.git', 0) called at init-repository line 407
> Qt::InitRepository::git_clone_all_submodules('Qt::InitRepository=HASH(0x7f89f2803ff0)',
> 'qt5', 0, 'preview', 'essential', 'addon', 'deprecated', '-qtwebkit',
> '-qtwebkit-examples', ...) called at init-repository line 644
> Qt::InitRepository::run('Qt::InitRepository=HASH(0x7f89f2803ff0)') called at
> init-repository line 655


Regards,
Sze-Howe



More information about the Interest mailing list