We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-04-20 19:01:34 +0200

SDK: cannot use QtPositioning and QtLocation

Hi, I don't have much QML experience. I tried to play around with QtPositioning and QtLocation, and as a start I created a new project and pasted some lines from the Qt examples. But my main problem is that the program won't start:

[W] unknown:4 - file:///opt/sdk/map/usr/share/map/qml/pages/FirstPage.qml:4:1: module "QtLocation" is not installed 
      import QtLocation 5.2 

My code starts like this:

import QtQuick 2.0
import Sailfish.Silica 1.0

import QtLocation 5.2
import QtPositioning 5.2

...

I tried different version numbers instead 5.2, but always the same error. The libraries are available on my Jolla Phone, but they are version 5.2, while most other Qt5 libs are 5.6.

How can I get QtLocation and QtPositioning to work with my app?

Thanks,

WurzelDerMacht

SDK: cannot use QtPositioning and QtLocation

Hi, I don't have much QML experience. I tried to play around with QtPositioning and QtLocation, and as a start I created a new project and pasted some lines from the Qt examples. But my main problem is that the program won't start:

[W] unknown:4 - file:///opt/sdk/map/usr/share/map/qml/pages/FirstPage.qml:4:1: module "QtLocation" is not installed 
      import QtLocation 5.2 

My code starts like this:

import QtQuick 2.0
import Sailfish.Silica 1.0

import QtLocation 5.2
import QtPositioning 5.2

...

I tried different version numbers instead 5.2, but always the same error. The QtPositioning and QtLocation libraries are available on my Jolla Phone, but they are version 5.2, while most other Qt5 libs are 5.6.5.6. I'm running Sailfish 3.0.2.8

How can I get QtLocation and QtPositioning to work with my app?

Thanks,

WurzelDerMacht

SDK: cannot use QtPositioning and QtLocation

Hi, I don't have much QML experience. I tried to play around with QtPositioning and QtLocation, and as a start I created a new project and pasted some lines from the Qt examples. But my main problem is that the program won't start:

[W] unknown:4 - file:///opt/sdk/map/usr/share/map/qml/pages/FirstPage.qml:4:1: module "QtLocation" is not installed 
      import QtLocation 5.2 

My code starts like this:

import QtQuick 2.0
import Sailfish.Silica 1.0

import QtLocation 5.2
import QtPositioning 5.2

...

I tried different version numbers instead 5.2, but always the same error. The QtPositioning and QtLocation libraries are available on my Jolla Phone, but they are version 5.2, while most other Qt5 libs are 5.6. I'm running Sailfish 3.0.2.8

How can I get QtLocation and QtPositioning to work with my app?

Thanks,

WurzelDerMacht

SDK: cannot use QtPositioning and QtLocation

Hi, I don't have much QML experience. I tried to play around with QtPositioning and QtLocation, and as a start I created a new project and pasted some lines from the Qt examples. But my main problem is that the program won't start:

[W] unknown:4 - file:///opt/sdk/map/usr/share/map/qml/pages/FirstPage.qml:4:1: module "QtLocation" is not installed 
      import QtLocation 5.2 

My code starts like this:

import QtQuick 2.0
import Sailfish.Silica 1.0

import QtLocation 5.2
import QtPositioning 5.2

...

I tried different version numbers instead 5.2, but always the same error. The QtPositioning and QtLocation libraries are available on my Jolla Phone, but they are version 5.2, while most other Qt5 libs are 5.6. I'm running Sailfish 3.0.2.8

How can I get QtLocation and QtPositioning to work with my app?

Thanks,

WurzelDerMacht

SDK: cannot use QtPositioning and QtLocation

Hi, I don't have much QML experience. I tried to play around with QtPositioning and QtLocation, and as a start I created a new project and pasted some lines from the Qt examples. But my main problem is that the program won't start:

[W] unknown:4 - file:///opt/sdk/map/usr/share/map/qml/pages/FirstPage.qml:4:1: module "QtLocation" is not installed 
      import QtLocation 5.2 

My code starts like this:

import QtQuick 2.0
import Sailfish.Silica 1.0

import QtLocation 5.2
import QtPositioning 5.2

...

I tried different version numbers instead 5.2, but always the same error. The QtPositioning and QtLocation libraries are available on my Jolla Phone, but they are version 5.2, while most other Qt5 libs are 5.6. I'm running Sailfish 3.0.2.8

How can I get QtLocation and QtPositioning to work with my app?

Thanks,

WurzelDerMacht

edit: after coderus' suggestion I added qt5-qtdeclarative-import-positioning and also qt5-qtdeclarative-import-location, but I still get the same error.