Results 1 to 4 of 4

Thread: QtLocation error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default QtLOcation in QT 5.2

    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:
    Qt Code:
    1. QML debugging is enabled. Only use this in a safe environment.
    2. qrc:///mapviewer.qml:42:1: module "QtLocation" is not installed
    To copy to clipboard, switch view to plain text mode 

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


    Best regard.

  2. #2

    Default QtLocation error

    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:
    Qt Code:
    1. QML debugging is enabled. Only use this in a safe environment.
    2. qrc:///mapviewer.qml:42:1: module "QtLocation" is not installed
    To copy to clipboard, switch view to plain text mode 

    I also install the qtdeclarative5-qtlocation-plugin with this command:
    Qt Code:
    1. sudo apt-get install qtdeclarative5-qtlocation-plugin
    To copy to clipboard, switch view to plain text mode 

    But I still have the same error.

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


    Best regard.

  3. #3

    Default Re: QtLocation error

    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?

  4. #4

    Default Re: QtLocation error

    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?

Similar Threads

  1. Qt 5 build : qtlocation linking failure
    By faizol in forum Installation and Deployment
    Replies: 1
    Last Post: 11th October 2012, 04:22
  2. creating custom mapping plugin for QtLocation
    By mateuszzz88 in forum Qt Programming
    Replies: 8
    Last Post: 8th September 2011, 23:38
  3. Segmentation fault whilst running QtLocation app
    By Ereb in forum Qt Programming
    Replies: 7
    Last Post: 9th December 2010, 10:32
  4. QtLocation and QtEmbedded
    By kaikai24 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 29th September 2009, 11:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.