[Interest] Compiling the latest Qt versions post-5.10

Jeffrey Brendecke jeffrey.brendecke at gmail.com
Thu Oct 26 15:09:03 CEST 2017


> On 22. Oct 2017, at 21:23, Jeffrey Brendecke <jeffrey.brendecke at gmail.com> wrote:
> 
> 
>> On 22. Oct 2017, at 15:42, Sze Howe Koh <szehowe.koh at gmail.com <mailto:szehowe.koh at gmail.com>> wrote:
>> 
>> On 22 October 2017 at 20:21, Jeffrey Brendecke
>> <jeffrey.brendecke at gmail.com <mailto:jeffrey.brendecke at gmail.com>> wrote:
>>> 
>>> On 21. Oct 2017, at 15:56, Jeffrey Brendecke <jeffrey.brendecke at gmail.com <mailto: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 <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/ <https://github.com/qtproject/>
>> to https://github.com/qt/ <https://github.com/qt/>.
>> 
>> So, https://github.com/qtproject/qt5.git <https://github.com/qtproject/qt5.git> now redirects to
>> https://github.com/qt/qt5.git <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 <https://github.com/qt/qtnetworkauth.git>, but
>> https://github.com/qtproject/qtnetworkauth.git <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 <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 <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 <https://github.com/qtproject/qtnetworkauth.git>
>>> qtnetworkauth
>>> Cloning into 'qtnetworkauth'...
>>> Username for 'https://github.com': <https://github.com'/> XXXX
>>> Password for 'https://XXXX@github.com': <https://XXXX@github.com'/>
>>> remote: Invalid username or password.
>>> fatal: Authentication failed for
>>> 'https://github.com/qtproject/qtnetworkauth.git/ <https://github.com/qtproject/qtnetworkauth.git/>'
>>> git clone --no-checkout https://github.com/qtproject/qtnetworkauth.git <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 <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
> 
> 
> Thanks, that fixed that problem:
> 
>> If you edit your the qt5/.git/config file and set remote "origin" to
>> https://github.com/qt/qt5.git <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)
> 
> 
> Now, another issue has appeared with qtlocation-mapboxgl.git:
> 
> + git config remote.gerrit.url ssh://codereview.qt-project.org/qt/qtlocation-mapboxgl.git <ssh://codereview.qt-project.org/qt/qtlocation-mapboxgl.git>
> + git config remote.gerrit.fetch +refs/heads/*:refs/remotes/gerrit/* /heads/
> + git submodule update --force --no-fetch
> fatal: Needed a single revision
> Unable to find current revision in submodule path 'src/3rdparty/mapbox-gl-native'
> git submodule update --force --no-fetch exited with status 256 at init-repository line 198.
> 	Qt::InitRepository::exe('Qt::InitRepository=HASH(0x7ffd58802ff0)', 'git', 'submodule', 'update', '--force', '--no-fetch') called at init-repository line 429
> 	Qt::InitRepository::git_clone_all_submodules('Qt::InitRepository=HASH(0x7ffd58802ff0)', 'qtlocation.git', 0, 'all') called at init-repository line 435
> 	Qt::InitRepository::git_clone_all_submodules('Qt::InitRepository=HASH(0x7ffd58802ff0)', 'qt5', 0, 'preview', 'essential', 'addon', 'deprecated', '-qtwebkit', '-qtwebkit-examples', ...) called at init-repository line 644
> 	Qt::InitRepository::run('Qt::InitRepository=HASH(0x7ffd58802ff0)') called at init-repository line 655
> 
> Is there a fix for this? Is this documented anywhere?
> 
> Thanks very much for your assistance.

--
For some reason it appears my last post was not received at interest at qt-project.org <mailto:interest at qt-project.org>, so I am resending.

Thank you in advance for any assistance,

Jeffrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20171026/eded9727/attachment.html>


More information about the Interest mailing list