Thread
:
syntax error? trying to hildonize an app
View Single Post
tobiasj
2008-04-05 , 15:47
Posts: 241 | Thanked: 74 times | Joined on Jul 2007
#
8
So ok I did this to the Makefile
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
-I/usr/include/hildon-1
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)
-lhildon-1
-o $@
DIST_SOURCES = $(gftp_gtk_SOURCES)
HEADERS = $(noinst_HEADERS)
Then did a make clean / make and it compiled properly.
then I added:
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <pthread.h>
#include <hildon/hildon-program.h>
to the myprogram.h with the rest of the includes.
did a make clean / make and got this:
In file included from /usr/include/gtk-2.0/gdk/gdkx.h:33,
from /usr/include/hildon-1/hildon/hildon-window.h:33,
from /usr/include/hildon-1/hildon/hildon-program.h:29,
from bookmarks.c:20:
/usr/include/X11/Xlib.h:3578: error: syntax error before "_X_SENTINEL"
/usr/include/X11/Xlib.h:3583: error: syntax error before "_X_SENTINEL"
/usr/include/X11/Xlib.h:3596: error: syntax error before "_X_SENTINEL"
/usr/include/X11/Xlib.h:3609: error: syntax error before "_X_SENTINEL"
/usr/include/X11/Xlib.h:3614: error: syntax error before "_X_SENTINEL"
/usr/include/X11/Xlib.h:3846: error: syntax error before "_X_SENTINEL"
/usr/include/X11/Xlib.h:3850: error: syntax error before "_X_SENTINEL"
/usr/include/X11/Xlib.h:3862: error: syntax error before "_X_SENTINEL"
/usr/include/X11/Xlib.h:3890: error: syntax error before "_X_SENTINEL"
/usr/include/X11/Xlib.h:3894: error: syntax error before "_X_SENTINEL"
/usr/include/X11/Xlib.h:3934: error: syntax error before "_X_SENTINEL"
make: *** [bookmarks.o] Error 1
So either I completely missed the point, or that isn't the problem. I admit at this point that it could be either or both..
-John
Quote & Reply
|
tobiasj
View Public Profile
Send a private message to tobiasj
Find all posts by tobiasj