Re: How to include glib-object.h
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 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to include glib-object.h
Hi, thanks a bunch for the helpful info. Will try either of them as soon I solved another problem :) . Best regards, ce ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to include glib-object.h
On 2010-03-29 15:25, Murray Cumming 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/ | dav...@openismus.com ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to include glib-object.h
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. -- murr...@murrayc.com www.murrayc.com www.openismus.com ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
RE: How to include glib-object.h
> >From: maemo-developers-boun...@maemo.org [maemo-developers-boun...@maemo.org] >On Behalf Of ext Christoph Eckert [...@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 >#include >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 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to include glib-object.h
On Mon, Mar 29, 2010 at 02:48:18PM +0530, Martin DeMello wrote: > > 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` Berto ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to include glib-object.h
On Mon, Mar 29, 2010 at 3:44 AM, Christoph Eckert 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 ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers