Hi all

I have added a QML PositionSource element to the FirstPage of the default HelloSailors new project, and call the start() method from Component.onCompleted (see code snippet below mail).

When running on the Emulator I get no error:

When running on a real Jolla I get the following error:

QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'

I have the GPS enabled, I have used the maps app and agreed to the licence there.

On the device I have the following positioning packages installed:

[nemo@localhost ~]$ pkcon search name positioning
Searching by name             [=========================]
Waiting in queue              [=========================]
Starting                      [=========================]
Refreshing software list      [=========================]
Querying                      [=========================]
Installed libherepositioning-1.1.2-10.5.1.jolla.armv7hl Here Positioning library Installed qt5-qtdeclarative-import-positioning-5.1.0+git21-1.12.1.armv7hl QtDeclarative positioning import Available qt5-qtdeclarative-import-positioning-debuginfo-5.1.0+git21-1.12.1.armv7hl Debug information for package qt5-qtdeclarative-import-positioning Installed qt5-qtpositioning-5.1.0+git21-1.12.1.armv7hl The QtPositioning library Available qt5-qtpositioning-debuginfo-5.1.0+git21-1.12.1.armv7hl Debug information for package qt5-qtpositioning Available qt5-qtpositioning-devel-5.1.0+git21-1.12.1.armv7hl Development files for QtPositioning


So far googling has brought no hints.

Any ideas?

GrĂ¼sse

Chris


import QtPositioning 5.2
....

    Component.onCompleted: {
        console.log("turning GPS on")
        positionSource.start();
    }

    PositionSource {
        id: positionSource
        updateInterval: 1000
        active: false
    }

_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to