Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QGeoPositionInfoSource - No such File or directory (solved)

QGeoPositionInfoSource - No such File or directory (solved)

Scheduled Pinned Locked Moved Mobile and Embedded
11 Posts 4 Posters 6.3k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    ajayzone
    wrote on last edited by
    #1

    Hi,
    I am having a problem with mobility
    when i say #include <QGeoPositionInfoSource> Qt returns a Error saying No Such File or Directory,
    I Checked the APIs in Maintain QT SDK, Mobility is there
    Still I removed and Reinstalled Mobility API hopping it will solve the problem but still the same thing,
    May Be i made a Silly mistake somewhere by not including something that was needed can anyone point it to Me?

    Thanks
    Ajay

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      Be sure you add
      @
      CONFIG += mobility
      MOBILITY += location
      @
      to your .pro file.

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ajayzone
        wrote on last edited by
        #3

        "CONFIG += mobility
        MOBILITY += location"

        Yes have it in my .pro

        But still
        error: QGeoPositionInfo: No such file or directory
        error: QGeoPositionInfoSource: No such file or directory

        1 Reply Last reply
        0
        • A Offline
          A Offline
          ajayzone
          wrote on last edited by
          #4

          Hi again,

          I tired to run the Flicker demo and am getting the same errors in It also.
          What can i install or re-install?

          Thanks

          1 Reply Last reply
          0
          • L Offline
            L Offline
            leon.anavi
            wrote on last edited by
            #5

            Check the "troubleshooting paragraph of the article Retrieve Location Using Qt Mobility at Qt Dev Net Wiki":http://qt-project.org/wiki/Retrieve_Location_Using_Qt_Mobility#231cf4c70d866b616c21baddaeed0696

            You should include header files and specify Qt mobility namespace as well to include MOBILITY to your pro file as explained at earlier posts:
            @QTM_USE_NAMESPACE@

            http://anavi.org/

            1 Reply Last reply
            0
            • A Offline
              A Offline
              ajayzone
              wrote on last edited by
              #6

              "QTM_USE_NAMESPACE"

              Yes it is there

              I am trying to run the "flickrdemo - an example available in QT" without changing a word it still does not run.
              I even removed and re-installed the entire QT SDK.

              Any clue would be help full.
              Thanks.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                ajayzone
                wrote on last edited by
                #7

                Hi,

                Heres My .pro file

                @
                folder_01.source = qml/InsigniaLocator
                folder_01.target = qml
                DEPLOYMENTFOLDERS = folder_01

                QT += network
                CONFIG += mobility
                MOBILITY += location

                QML_IMPORT_PATH =

                symbian:TARGET.UID3 = 0xE770B718

                symbian:TARGET.CAPABILITY += NetworkServices

                symbian: {
                TARGET.CAPABILITY = Location
                }

                CONFIG += qt-components

                SOURCES += main.cpp
                socket.cpp
                itrackerlocation.cpp

                include(qmlapplicationviewer/qmlapplicationviewer.pri)
                qtcAddDeployment()

                HEADERS +=
                socket.h
                itrackerlocation.h
                @

                [Edit: Please wrap code in @ tags -- mlong]

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  ajayzone
                  wrote on last edited by
                  #8

                  The .h file
                  @
                  #ifndef ITRACKERLOCATION_H
                  #define ITRACKERLOCATION_H

                  *#include <QGeoPositionInfo>
                  #include <QGeoPositionInfoSource>
                  *These two files give me the error
                  #include <QDebug>
                  #include <QPointer>
                  #include <QObject>

                  QTM_USE_NAMESPACE
                  @

                  [Edit: Please wrap code in @ tags -- mlong]

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    tomma
                    wrote on last edited by
                    #9

                    If I guess correctly then you are trying to target desktop?
                    SDK doesn't include mobility for desktop so you have to install it manually http://doc.qt.nokia.com/qtmobility/installation.html

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      ajayzone
                      wrote on last edited by
                      #10

                      Thanks,

                      I was making a mistake only people who have not worked In this Environment can do,

                      In project properties my focus was on desktop instead it should have been on simulator the files do not load for desktop but for simulator it works fine.

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mlong
                        wrote on last edited by
                        #11

                        It's an easy mistake to make. Glad you got it solved! Please be sure and edit your original post and add [Solved] to the thread title. Thanks!

                        Software Engineer
                        My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                        1 Reply Last reply
                        0

                        • Login

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