10-02-2012 08:11 PM - edited 10-02-2012 08:20 PM
I am trying to add a little GPS functionality to my app. I have been trying to read the documentation and am getting a little confused and there are problems in compiliing my app.
An example of the confusion. In this link
It states the includes as
#include <QtLocationSubset/QGeoAddress> #include <QtLocationSubset/QGeoCoordinate> #include <QtLocationSubset/QGeoPlace> #include <QtLocationSubset/QGeoPositionInfo> #include <QtLocationSubset/QGeoPositionInfoSource> #include <QtLocationSubset/QGeoSatelliteInfo> #include <QtLocationSubset/QGeoSatelliteInfoSource> #include <QtLocationSubset/QGeoSearchManager> #include <QtLocationSubset/QGeoSearchManagerEngine> #include <QtLocationSubset/QGeoSearchReply> #include <QtLocationSubset/QNmeaPositionInfoSource>
and to add
LIBS += -lQtLocationSubset
to the .PRO file. But when you go and look at the APIs, for example
tells you to add the include
There seems to be a mismatch in documentation. It would be nice if there was a working sample code that just got GPS latitide and longitude.
Also, since this is being declared as QtLocationSubset, why is the namespace QtMobilitySubset?
Solved! Go to Solution.
10-05-2012 01:45 PM
Looks like a typo in API reference. I'll get that fixed.
The correct include is QtLocationSubset/…
Take a look at https://github.com/blackberry/Cascades-Samples/tre