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?Thanks
Ajay -
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@ -
Hi,
Heres My .pro file
@
folder_01.source = qml/InsigniaLocator
folder_01.target = qml
DEPLOYMENTFOLDERS = folder_01QT += network
CONFIG += mobility
MOBILITY += locationQML_IMPORT_PATH =
symbian:TARGET.UID3 = 0xE770B718
symbian:TARGET.CAPABILITY += NetworkServices
symbian: {
TARGET.CAPABILITY = Location
}CONFIG += qt-components
SOURCES += main.cpp
socket.cpp
itrackerlocation.cppinclude(qmlapplicationviewer/qmlapplicationviewer.pri)
qtcAddDeployment()HEADERS +=
socket.h
itrackerlocation.h
@[Edit: Please wrap code in @ tags -- mlong]
-
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]
-
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 -