QtPositioning with KStars?

valentin at boettcher.cf valentin at boettcher.cf
Wed Aug 9 09:03:35 UTC 2017


I've seen that. That's a good idea.

On 9 August 2017 10:59:58 CEST, Jasem Mutlaq <mutlaqja at ikarustech.com> wrote:
>I found a relevant Qt bug: https://bugreports.qt.io/browse/QTBUG-43435
>
>Maybe we should voice our concern there to help it move forward?
>
>On Wed, Aug 9, 2017 at 11:36 AM, <valentin at boettcher.cf> wrote:
>
>> Yes QT uses the old API.
>>
>>
>> On 9 August 2017 10:32:35 CEST, Jasem Mutlaq
><mutlaqja at ikarustech.com>
>> wrote:
>>>
>>> where-am-i worked for me, it was in the geoclue-2.0 package here. It
>>> appears that geoclue-test-gui is for the older package.
>QtPositioning uses
>>> DBus to communicate, but I wonder if there was a change in DBus
>calls from
>>> v0.1.2 to 2.0+? At any rate, since we support multiple Operating
>Systems,
>>> we can't rely on geoclue directly we have to use QtPositioning, but
>if it's
>>> broken in 5.9 still then we have to delay until it is fixed.
>>>
>>> On Wed, Aug 9, 2017 at 10:46 AM, Valentin Boettcher <
>>> valentin at boettcher.cf> wrote:
>>>
>>>> Hi.
>>>>
>>>> It may be, that my system differs from yours, bit I geoclue
>working.
>>>>
>>>> I would suggest, that you take the same steps as I did and try to
>build
>>>> it from source. They also have a demo `where-am-i` in the demo
>folders
>>>> which produced the following output for me:
>>>>
>>>> Client object: /org/freedesktop/GeoClue2/Client/1
>>>>
>>>> New location:
>>>> Latitude:    51.034122°
>>>> Longitude:   13.739034°
>>>> Accuracy:    142.931009 meters
>>>> Timestamp:   Wed 09 Aug 2017 09:41:21 AM CEST (1502264481 seconds
>since
>>>> the Epoch)
>>>>
>>>> New location:
>>>> Latitude:    51.034137°
>>>> Longitude:   13.739026°
>>>> Accuracy:    141.526416 meters
>>>> Speed:       0.197150 meters/second
>>>> Heading:     116.865814°
>>>> Timestamp:   Wed 09 Aug 2017 09:41:30 AM CEST (1502264490 seconds
>since
>>>> the Epoch)
>>>>
>>>>
>>>> It seems that QT uses an older version of the library, but it is
>really
>>>> quite simple to use it directly, though annoying for portability
>>>> reasons.
>>>>
>>>> Well, however:
>>>> https://www.freedesktop.org/wiki/Software/GeoClue/#index4h1 is the
>key.
>>>>
>>>> I'll have to test QT Location services.
>>>>
>>>> Cheers.
>>>>
>>>> Jasem Mutlaq <mutlaqja at ikarustech.com> writes:
>>>>
>>>> > Hello all,
>>>> >
>>>> > So I tried recently to introduce QtPositioning into KStars
>location
>>>> dialog
>>>> > so that it can fetch geo-location from Qt from whatever backend
>system
>>>> > supported on the operating system.
>>>> >
>>>> > It's already used in KStars Lite to fetch location info from
>Android.
>>>> > However, on desktop Linux, Qt Positioning relies on geoclue. I
>have it
>>>> > installed right here, but I can't seem to get any position info
>on it.
>>>> I
>>>> > used geoclue-test-gui but that just threw errors even though I
>>>> installed
>>>> > several position providers.
>>>> >
>>>> > Anybody has any clue how to diagnose the issue here? I really
>would
>>>> like to
>>>> > make location-fetching part of the upcoming KStars release!
>>>>
>>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Jasem Mutlaq
>>>
>>>
>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>
>
>
>
>-- 
>Best Regards,
>Jasem Mutlaq

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kstars-devel/attachments/20170809/802db690/attachment.html>


More information about the Kstars-devel mailing list