local/overlay method: gtk/gtk.h no such file
Shakthi Kannan
shakthimaan at gmail.com
Mon Sep 24 06:53:23 CEST 2007
Hi,
I am using the following local/overlay method (for OM2007.2) to write
a GTK+ application:
http://wiki.openmoko.org/wiki/Application_Development_Crash_Course#Your_First_Application
My .bb file is as follows:
=== BEGIN .bb file ===
DESCRIPTION = "FooBar"
AUTHOR = "Foo Bar"
HOMEPAGE = "http://www.foobar.com"
SECTION = "openmoko/pim"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS += "gtk+ openmoko-libs libgsmd"
inherit openmoko
SRC_URI = " file://main.c \
file://README"
S = "${WORKDIR}/foobar/"
do_compile() {
${CC} ${CFLAGS} ${LDFLAGS} ${WORKDIR}/main.c -o foobar
}
do_install() {
install -m 0755 -d ${D}${bindir} ${D}${docdir}/foobar
install -m 0755 ${S}/foobar ${D}${bindir}
install -m 0644 ${WORKDIR}/README ${D}${docdir}/foobar
}
=== END ===
In the main.c file, I have included <gtk/gtk.h>. On doing, "make
build-package-foobar", I get:
main.c: error: gtk/gtk.h: No such file or directory
When we say, "inherit openmoko" shouldn't it include the required
header files, or am I missing some libraries to be included?
Appreciate any help,
Thanks,
SK
--
Shakthi Kannan
http://www.shakthimaan.com
More information about the openmoko-devel
mailing list