QtPositioning with KStars?

Jasem Mutlaq mutlaqja at ikarustech.com
Wed Aug 9 08:32:35 UTC 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kstars-devel/attachments/20170809/f21b7d99/attachment.html>


More information about the Kstars-devel mailing list