Qt World Summit: Submit your Presentation

QGeoPositionInfoSource - No such File or directory (solved)

  • 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?


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

  • "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

  • 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?


  • 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:


    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.

  • Hi,

    Heres My .pro file

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

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


    symbian:TARGET.UID3 = 0xE770B718

    symbian:TARGET.CAPABILITY += NetworkServices

    symbian: {

    CONFIG += qt-components

    SOURCES += main.cpp


    HEADERS +=

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

  • The .h file

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


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

  • 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

  • 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.

  • 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!

Log in to reply