![]() |
2007-03-18
, 06:17
|
Posts: 114 |
Thanked: 7 times |
Joined on Jan 2006
|
#2
|
![]() |
2007-03-18
, 06:22
|
Posts: 114 |
Thanked: 7 times |
Joined on Jan 2006
|
#3
|
I am new to all the linux material, I recently got a second hand 770 and have been trying to set up the develop environment to write some programs for my interest.
I follow the instruction,
http://maemo.org/platform/docs/howto..._tutorial.html (I am using ver 2.2)
Setup the scratchbox successfully and had the Maemo UI running properly. Now I got the maemo_hello.c code and try to compile it following the instruction:
gcc -o maemo_hello maemo_hello.c `pkg-config --cflags gtk+-2.0 hildon-libs` -ansi -Wall `pkg-config --libs gtk+-2.0 hildon-libs`
and I got a lot errors, which, I suppose, is cause by the wrong directory in the include file:
maemo_hello.c has the follow:
#include <hildon-widgets/hildon-program.h>
#include <gtk/gtkmain.h>
#include <gtk/gtkbutton.h>
and I found that I shoud have
#include <gtk-2.0/gtk/gtkmain.h>
#include <gtk-2.0/gtk/gtkbutton.h>
instead, I have the directory called gtk-0.2 rather than just gtk
same thing happens in the hildon-program.h file,
it has other #include calling the gdk, glib, gtk etc.. but I have glib-2.0, gtk2.0 , etc in my system instead.
Does anybody had the same problem b4? how do you deal with it? Do I need to change all the heading one by one?
Thanks a lot.