View Single Post
tobiasj's Avatar
Posts: 241 | Thanked: 74 times | Joined on Jul 2007
#6
Originally Posted by TA-t3 View Post
No, you add those to the compile line in the Makefile (I presume you have one):

e.g.

gcc -o your-application -I/usr/include/hildon-1 your-files.c -lhildon-1

(i.e. you tell the compiler/preprocessor to add /usr/include/hildon-1 to the search path for header files, and to link with libhildon-1.so during the linking stage).

Depending on how your Makefile is set up the above example may have to be split out to different parts of the Makefile, but I hope you get the idea.
I do think I understand what you mean, course as I admitted to at the very beginning of this thread I really have little idea what I am doing. I have looked through the Makefile and (I think since it is an autogenerated Makefile) that it is overly complicated. I see this:

DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
DEP_FILES = ./$(DEPDIR)/bookmarks.Po \
./$(DEPDIR)/chmod_dialog.Po \
./$(DEPDIR)/delete_dialog.Po ./$(DEPDIR)/dnd.Po \
./$(DEPDIR)/gtkui_transfer.Po \
./$(DEPDIR)/menu-items.Po ./$(DEPDIR)/misc-gtk.Po \
./$(DEPDIR)/options_dialog.Po \
./$(DEPDIR)/transfer.Po ./$(DEPDIR)/view_dialog.Po
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@

And I assume I need to add to the DEFAULT_INCLUDES line. So I am going to figure out how that has to be added and try that. Thanks for your help.
Of course, I am sure I am in over my head trying to 'hildonize' this application since I can not even figure out how to add the #include <hildon/hildon-program.h> line without the entire thing crashing to its knees. But what else have I got to do on a rainy weekend...

-John