![]() |
How to compile Qt location example ?
How can I compile the following example?
running these commands does not do it: qmake -project qmake make http://wiki.forum.nokia.com/index.ph...cation_Example |
Re: How to compile Qt location example ?
I didn't check the example, but I suppose there is a .pro file already so you don't need to run "qmake -project". Try running:
qmake <filename>.pro make Replace <filename> with the actual name of the .pro file. |
Re: How to compile Qt location example ?
Unfortunately, there isn't. The example consists of a single C file containing GTK+ code. :( I would also really like to know how to get the location info in a Qt application.
|
Re: How to compile Qt location example ?
tmsha,
you can build the sample as follow. gcc main.c `pkg-config --cflags --libs gtk+-2.0 hildon-1 liblocation` |
Re: How to compile Qt location example ?
|
Re: How to compile Qt location example ?
Hi,
Quote:
And I've requested a better documentation on the example's page itself, and It will be improved soon. Daniel |
Re: How to compile Qt location example ?
Quote:
I have no experience with glib/GTK+ coding. Here are some pointers as to what could be improved:
As I said, I was able to solve all of these problems. But it also meant that I spent a weekend implementing a feature that could have taken just a few hours at most. |
Re: How to compile Qt location example ?
Quote:
Daniel |
Re: How to compile Qt location example ?
Quote:
I just need to get some gps coordinates from time to time. |
Re: How to compile Qt location example ?
Well, I figured it out also. I guess there was no documentation because it was so simple.
Liblocation (and any glib libs, as far as I understood) will run fine inside the Qt event loop. You basically just use the library as you would in a Gtk application. |
All times are GMT. The time now is 16:56. |
vBulletin® Version 3.8.8