PDA

View Full Version : QtLocation error



bird12358
31st January 2014, 21:50
Hello,

I just finish my installation of Qt5.2. I have installed all the module present during the installation.
The QtLocation.so file is on my computer. So I try to run a supply example mapviewer, the compilation works properly.
But when I want to launch the file I get that:

QML debugging is enabled. Only use this in a safe environment.
qrc:///mapviewer.qml:42:1: module "QtLocation" is not installed


Whereas the module is well setup.
Should I do an other think after the installation in order to use the modules?


Best regard.

bird12358
1st February 2014, 12:15
Hello,

I had Qt 4.8.4 and I would like to get the last version.
I just install the Qt 5.2 and all its modules. I would like to use the QtLocation module, so I try a supply example mapviewer.
The compilation works fine but when I execute the file I get that:

QML debugging is enabled. Only use this in a safe environment.
qrc:///mapviewer.qml:42:1: module "QtLocation" is not installed


I also install the qtdeclarative5-qtlocation-plugin with this command:


sudo apt-get install qtdeclarative5-qtlocation-plugin


But I still have the same error.

What should I do to make the qtlocation and its examples work properly?


Best regard.

bird12358
1st February 2014, 22:07
I am searching on google for few days to found other people with the same problem...

Am I the only one who have try to use QT5.2 with qtlocation module?
I am really desparate :( ... Should I get back to the previous version of Qt?

bird12358
2nd February 2014, 22:59
I found out on internet that the qtlocation module supply with qt 5.2 is not reliable. So I download the qt module from internet and I compile it.

I try with the mapdemo example with the module and now I works.

But I try to deploy it on my other computer, so I take all the .so needed on the first computer and I put it on my second computer. I run the executable on the second computer and I get this message “No service providers are available”.
It seems that the QGeoServiceProvider don’t work well on the second computer.

In fact the command QGeoServiceProvider::availableServiceProviders() return no service, why this append?