Active Topics

 


Reply
Thread Tools
Posts: 17 | Thanked: 3 times | Joined on Nov 2009
#1
Hi Guys


I am running this command on the terminal:

pkg-config --cflags gtk+-2.0

and I am supposed to get something like this:

-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12

but some how the terminal is returning:

-DMAEMO_CHANGES -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12

i.e "-DMAEMO_CHANGES" comes along with the result.

Anybody know why I am receiving it and how to correct this issue?

I am using ubuntu 9.10 and I just downloaded maemo 5 SDK.
 
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#2
That is correct; some Gtk+ headers need that definition or you lose some of the functionality added by the Maemo Gtk patches/changes (aka MAEMO_CHANGES).
 

The Following User Says Thank You to javispedro For This Useful Post:
Posts: 87 | Thanked: 47 times | Joined on Sep 2009 @ Sorocaba, Brasil
#3
Is it giving any compile-time error? I mean, it should be no problem at all and I imagine it's normal behaviour.

Many changes introduced by the maemo team in the main branch of the gtk+ code are simply #ifdef-ined with that MAEMO_CHANGES definition, so they activated the flag in the --cflags of the gtk+-2.0 in order to activate the maemo-specific changes in the gtk+ include files.

That's my guess.

EDIT: Why is it that I'm always the second to answer??? ;-) This time it was Javispedro to beat me.
 

The Following User Says Thank You to dalonso For This Useful Post:
Posts: 17 | Thanked: 3 times | Joined on Nov 2009
#4
yes, its giving me compile time error:

sbox-i486-pc-linux-gnu-gcc: -DMAEMO_CHANGES: No such file or directory

What I am doing is trying to use this as linker parameter in gcc and its giving me compile time error.

Last edited by imdev; 2010-01-22 at 18:19.
 
Posts: 17 | Thanked: 3 times | Joined on Nov 2009
#5
Ok I got the reason. This really does not give a compile time issue. its the problem with the wiki page that I was following. If Somebody who can edit the page then please correct it:

http://wiki.maemo.org/Documentation/...ment/Maemo_SDK

And the line that has the issue is:

[sbox-FREMANTLE_X86: ~] > gcc -Wall -g gtk_helloworld-1.c \
`pkg-config --cflags gtk+-2.0` -o gtk_helloworld-1

There should not be a backslash in the command (as marked as red). Removing this make the error go away.

Thanks for the reply guys. I really appreciate it.
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:33.