Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtPositioning with geoclue backend does not work on Linux
QtWS25 Last Chance

QtPositioning with geoclue backend does not work on Linux

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 784 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    neXus_rk
    wrote on 29 Sept 2015, 20:20 last edited by
    #1

    If I try to get a QGeoPositionInfo from the QGeoPositionInfoSource instance returned by QGeoPositionInfoSource::createDefaultSource then I get only an updateTimeout signal. I set the update interval to 5000ms and listen to the signals positionUpdated, error and updateTimeout, additionally I check the supported positioning methods and the available sources before calling startUpdates and writing the values to console. Everything looks fine, except that the signal positionUpdated is never triggered. Here is my console output:

    2015-09-29T22:02:29 - GeoPosition methods GPS/GLONASS and 3GPP/WiFi supported
    2015-09-29T22:02:29 - GeoPosition source 'geoclue' available
    2015-09-29T22:02:29 - Update interval is 5000ms
    2015-09-29T22:02:29 - GeoPosition service started
    2015-09-29T22:02:31 - GeoPosition update timeout

    I've tested it on ARCH Linux ARM on a raspberry and on Manjaro Linux 15.09 x86_64 (Qt5.5.0, geoclue 0.12.99) with LAN (eth0) and an UMTS surfstick (ppp0) connection, internet access works fine with both connections. The positioning plugins are available here:

    $ ls -l /usr/lib/qt/plugins/position/
    insgesamt 88
    -rwxr-xr-x 1 root root 35752 18. Aug 09:24 libqtposition_geoclue.so
    -rwxr-xr-x 1 root root 51904 18. Aug 09:24 libqtposition_positionpoll.so
    

    Does anyone know what I'm doing wrong? The Qt documentation says that it should work that way. I've a small console project for testing that I can upload, if required.

    1 Reply Last reply
    0

    1/1

    29 Sept 2015, 20:20

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved