How to include glib-object.h
How to include glib-object.h
Re: How to include glib-object.h
2010-03-29 09:18 UTC
On Mon, Mar 29, 2010 at 3:44 AM, Christoph Eckert <ce@christeck.de> wrote:
>
> glib-object.h: No such file or directory
>
> This file includes further files, as listed here:
> http://bit.ly/dprcX6
>
> I'm obviously missing some include path or similar. Appearently I'm a bloody
> hobbyist, so please bear with me :) . Any hint, even RTFM is much appreciated.
Try adding -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include to your
gcc invocation.
martin
>
> glib-object.h: No such file or directory
>
> This file includes further files, as listed here:
> http://bit.ly/dprcX6
>
> I'm obviously missing some include path or similar. Appearently I'm a bloody
> hobbyist, so please bear with me :) . Any hint, even RTFM is much appreciated.
Try adding -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include to your
gcc invocation.
martin
Re: How to include glib-object.h
RE: How to include glib-object.h
<kate.alhola at nokia.com>
>________________________________________
>From: maemo-developers-bounces@maemo.org [maemo-developers-bounces@maemo.org] On Behalf Of ext Christoph Eckert [ce@christeck.de]
>Sent: Monday, March 29, 2010 1:14 AM
>To: maemo-developers@maemo.org
>Subject: How to include glib-object.h
>
>Hi,
>
>I try to port a Maemo 4.1 pygtk application to Qt4 on Maemo 5. The application
>is running, but now it requires location data. Since the location API has
>changed in Maemo 5, I try to understand the example given at
>http://bit.ly/a3HTFD
May be better solution is to use directly qt-mobility libqtm-location .
Qt mobility will be foture proof cross platfrom solution. For marmatan
native location API will anyhow change. For fremantle libqtmlocation
is wrapper over liblocation0 . For Harmatan its is direct connection to dbus
but API remains same.
Kate
>As soon as I put
>#include <location/location-gps-device.h>
>#include <location/location-gpsd-control.h>
>in one of my files, the compiler complains:
>http://pastebin.com/c45NU0FB
>
>glib-object.h: No such file or directory
>
>This file includes further files, as listed here:
>http://bit.ly/dprcX6
I'm obviously missing some include path or similar. Appearently I'm a bloody
hobbyist, so please bear with me :) . Any hint, even RTFM is much appreciated.
Best regards,
ce
>From: maemo-developers-bounces@maemo.org [maemo-developers-bounces@maemo.org] On Behalf Of ext Christoph Eckert [ce@christeck.de]
>Sent: Monday, March 29, 2010 1:14 AM
>To: maemo-developers@maemo.org
>Subject: How to include glib-object.h
>
>Hi,
>
>I try to port a Maemo 4.1 pygtk application to Qt4 on Maemo 5. The application
>is running, but now it requires location data. Since the location API has
>changed in Maemo 5, I try to understand the example given at
>http://bit.ly/a3HTFD
May be better solution is to use directly qt-mobility libqtm-location .
Qt mobility will be foture proof cross platfrom solution. For marmatan
native location API will anyhow change. For fremantle libqtmlocation
is wrapper over liblocation0 . For Harmatan its is direct connection to dbus
but API remains same.
Kate
>As soon as I put
>#include <location/location-gps-device.h>
>#include <location/location-gpsd-control.h>
>in one of my files, the compiler complains:
>http://pastebin.com/c45NU0FB
>
>glib-object.h: No such file or directory
>
>This file includes further files, as listed here:
>http://bit.ly/dprcX6
I'm obviously missing some include path or similar. Appearently I'm a bloody
hobbyist, so please bear with me :) . Any hint, even RTFM is much appreciated.
Best regards,
ce
Re: How to include glib-object.h
2010-03-29 13:25 UTC
On Mon, 2010-03-29 at 11:24 +0200, Alberto Garcia wrote:
> Actually you should include `pkg-config --cflags glib-2.0`
Well, actually, the location library apparently provides a pkg-config
file that he should check for instead, so he doesn't have to worry about
checking for its glib dependency.
However, this example suggests that the liblocation pkg-config file is
broken, because it suggests checking for glib too. Well, that whole
pkg-config call is very strange.
http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Using_Connectivity_Components/Using_Location_API#Using_Location_API
CCing David so he can investigate.
--
murrayc@murrayc.com
www.murrayc.com
www.openismus.com
> Actually you should include `pkg-config --cflags glib-2.0`
Well, actually, the location library apparently provides a pkg-config
file that he should check for instead, so he doesn't have to worry about
checking for its glib dependency.
However, this example suggests that the liblocation pkg-config file is
broken, because it suggests checking for glib too. Well, that whole
pkg-config call is very strange.
http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Using_Connectivity_Components/Using_Location_API#Using_Location_API
CCing David so he can investigate.
--
murrayc@murrayc.com
www.murrayc.com
www.openismus.com
Re: How to include glib-object.h
2010-03-29 15:42 UTC
On 2010-03-29 15:25, Murray Cumming <murrayc@murrayc.com> wrote:
>On Mon, 2010-03-29 at 11:24 +0200, Alberto Garcia wrote:
>> Actually you should include `pkg-config --cflags glib-2.0`
>
>Well, actually, the location library apparently provides a pkg-config
>file that he should check for instead, so he doesn't have to worry about
>checking for its glib dependency.
>
>However, this example suggests that the liblocation pkg-config file is
>broken, because it suggests checking for glib too. Well, that whole
>pkg-config call is very strange.
>http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Using_Connectivity_Components/Using_Location_API#Using_Location_API
>
>CCing David so he can investigate.
I fixed the pkg-config invocation to be less misleading:
pkg-config --cflags --libs liblocation
and as the liblocation pkg-config file correctly depends on glib-2.0,
that is included automatically in the compiler and linker flags.
--
David King | http://amigadave.com/ | davidk@openismus.com
>On Mon, 2010-03-29 at 11:24 +0200, Alberto Garcia wrote:
>> Actually you should include `pkg-config --cflags glib-2.0`
>
>Well, actually, the location library apparently provides a pkg-config
>file that he should check for instead, so he doesn't have to worry about
>checking for its glib dependency.
>
>However, this example suggests that the liblocation pkg-config file is
>broken, because it suggests checking for glib too. Well, that whole
>pkg-config call is very strange.
>http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Using_Connectivity_Components/Using_Location_API#Using_Location_API
>
>CCing David so he can investigate.
I fixed the pkg-config invocation to be less misleading:
pkg-config --cflags --libs liblocation
and as the liblocation pkg-config file correctly depends on glib-2.0,
that is included automatically in the compiler and linker flags.
--
David King | http://amigadave.com/ | davidk@openismus.com
Re: How to include glib-object.h
Re: How to include glib-object.h
Christoph Eckert
Hi,
> > > glib-object.h: No such file or directory
> >
> > Try adding -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include to
> > your gcc invocation.
>
> Actually you should include `pkg-config --cflags glib-2.0`
I just added
CONFIG += link_pkgconfig
PKGCONFIG += libnotify
to the .pro file as suggested here:
http://bit.ly/6nsy79
This does the trick, though I obviously have not understood the issue
completely :) .
Thanks for the help,
ce
> > > glib-object.h: No such file or directory
> >
> > Try adding -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include to
> > your gcc invocation.
>
> Actually you should include `pkg-config --cflags glib-2.0`
I just added
CONFIG += link_pkgconfig
PKGCONFIG += libnotify
to the .pro file as suggested here:
http://bit.ly/6nsy79
This does the trick, though I obviously have not understood the issue
completely :) .
Thanks for the help,
ce
Christoph Eckert
I try to port a Maemo 4.1 pygtk application to Qt4 on Maemo 5. The application
is running, but now it requires location data. Since the location API has
changed in Maemo 5, I try to understand the example given at
http://bit.ly/a3HTFD
As soon as I put
#include <location/location-gps-device.h>
#include <location/location-gpsd-control.h>
in one of my files, the compiler complains:
http://pastebin.com/c45NU0FB
glib-object.h: No such file or directory
This file includes further files, as listed here:
http://bit.ly/dprcX6
I'm obviously missing some include path or similar. Appearently I'm a bloody
hobbyist, so please bear with me :) . Any hint, even RTFM is much appreciated.
Best regards,
ce