View Single Post
tobiasj's Avatar
Posts: 241 | Thanked: 74 times | Joined on Jul 2007
#10
Originally Posted by Bundyo View Post
You should add the include dirs to SOMETHING_CFLAGS and libs to SOMETHING_LIBS in the Makefile in the dir, where the source in question is located. Thats just a temp solution though, since the next configure will replace it.
How do I make changes to the configure script or the Makefile.am so that these lines get added on configure?

I put this into the Makefile:

GLIB_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/hildon-1
GLIB_CONFIG =
GLIB_LIBS = -lglib-2.0 -lhildon-1
GMSGFMT = /scratchbox/tools/bin/msgfmt
GTHREAD_LIBS = -lgthread-2.0
GTK_CFLAGS = -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/include/hildon-1
GTK_CONFIG =
GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lhildon-1


and did a make clean / make and got:

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

And though I have no intention of giving up, I am becoming slightly discouraged..

-John