PDA

View Full Version : Accessing GPS via Qt


StewartHolmes
02-15-2010, 07:17 PM
Hi all,

I'm developing an application in Qt... how would I go about getting the current location from the GPS?

Thanks,
Stewart

StewartHolmes
02-15-2010, 07:39 PM
I should post more often when I have a question to ask, it helps me a lot in answering my own question. For posterity/anyone interested: http://qtmapper.garage.maemo.org/ does just what I/you need! Now to dig through it all...

danielwilms
02-16-2010, 09:38 AM
I should post more often when I have a question to ask, it helps me a lot in answering my own question. For posterity/anyone interested: http://qtmapper.garage.maemo.org/ does just what I/you need! Now to dig through it all...

Have as well a look at the Qt Mobility (http://labs.trolltech.com/page/Projects/QtMobility) project. First packages are available in extras-devel as a tech-preview. So don't expect something which is ready, but you could give it a try. It requires Qt 4.6 to run. Otherwise (more stable, but not pure Qt) you could have a look at this example (http://wiki.forum.nokia.com/index.php/Qt_for_Maemo:_Location_Example), which uses the C-libs of the liblocation API (http://maemo.org/api_refs/5.0/5.0-final/liblocation/) (more (http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Using_Connectivity_Components/Using_Location_API)). The instructions on how to build it are not so good, but look at this thread (http://talk.maemo.org/showthread.php?t=42679) to get the information. Or add to your *.pro file:


CONFIG += link_pkgconfig
PKGCONFIG += gtk+-2.0 hildon-1 liblocation


Daniel

StewartHolmes
02-16-2010, 10:42 AM
Thanks Daniel... QtMobility is the thing that I wanted to exist, a nice clean way to interface with device independent things handled by the Qt implementation. I'll give it a shot.

tmsha
02-16-2010, 04:46 PM
Maybe this is just very stupid, but i only find qt mobility files for maemo 1 2 3 and 4.
qt-mobility_1.0.0-beta1-maemo1.tar.gz
qt-mobility_1.0.0-beta1-maemo2.tar.gz
qt-mobility_1.0.0-beta1-maemo3.tar.gz
qt-mobility_1.0.0-beta1-maemo4.tar.gz

where is qt mobility for maemo 5?

http://repository.maemo.org/extras-devel/pool/fremantle/free/source/q/qt-mobility/

danielwilms
02-17-2010, 01:48 AM
Maybe this is just very stupid, but i only find qt mobility files for maemo 1 2 3 and 4.
qt-mobility_1.0.0-beta1-maemo1.tar.gz
qt-mobility_1.0.0-beta1-maemo2.tar.gz
qt-mobility_1.0.0-beta1-maemo3.tar.gz
qt-mobility_1.0.0-beta1-maemo4.tar.gz

where is qt mobility for maemo 5?


These are the version numbers for different versions of qt-mobility, but all for Maemo 5.

Daniel