![]() |
Liblocation problems
Hi there i have some problems to use the following libraries
#include <location/location-gps-device.h> #include <location/location-location-gpsd-control.h> Indeed, when i include those 2 on my project a lot of errors came on the compilation because the compiler can't find .h files like gtk, glib, pango, cairo etc... So i browse my include file in the SDK and found the correct files... SO i add to my .pro INCLUDEPATH += (correct path) and some errors disapeared but it still missing some files like gdkconfig.h , glibconfig.h that doesn't appear at all in the include files... So i am asking to find some help because that seems strange to me that we can't use the liblocation. I am working with Windows 7 and Qt Creator so i code in C++... Additionnal questions: I have seen many examples code in C and python to use the camera or the gps on the N900 but it still can't be possible to use this features with the cpp libraries no? Thanks and I hope somebody had the same problem and had solve it...:rolleyes: |
Re: Liblocation problems
Maybe something like this? I'm not sure if you need all of them...
Code:
CONFIG += link_pkgconfig |
Re: Liblocation problems
well that don't seem to work :-(
I have tried the example from : http://wiki.forum.nokia.com/index.ph...on_Example.zip and there is still some problems of compilation... well it is not a problem of finding .h files but it is something like it doesn't know GLIB_VAR types like guint... i hope that mean something to somebody... |
Re: Liblocation problems
Please post the compiler error message, otherwise we
can only guess what is the failure. If the compiler complains about missing or undefined types, you may have forgotten some includes, like #include <glib.h> for example. regards Nicolai |
Re: Liblocation problems
Code:
from locationinfowidget.cpp:1: and here is the .pro file given by the example : Code:
TEMPLATE = app |
Re: Liblocation problems
I am not sure but can you try this,
change the first line in locationinfowidget.cpp from: #include <hildon/hildon-banner.h> to extern "C" { #include <hildon/hildon-banner.h> } |
Re: Liblocation problems
Hi,
please check out this example, to see how it should work. The "extern C" mentioned by nicolai should do the trick. But have you seen the QtMobility APIs for the location? This should be much easier! Daniel |
Re: Liblocation problems
@nicolai still doesn't work...
@danielwilms This is the example that i am trying to make work... And i will try to use the QtMobility APIs but i find really strange that i can't compile an official example... |
Re: Liblocation problems
Quote:
|
Re: Liblocation problems
exactly the same...
|
| All times are GMT. The time now is 19:26. |
vBulletin® Version 3.8.8