local/overlay method: gtk/gtk.h no such file
Shakthi Kannan
shakthimaan at gmail.com
Thu Sep 27 07:45:32 CEST 2007
Hi Clarke,
Thanks for your help.
----- On 9/27/07, Clarke Wixon <cwixon at usa.net> wrote:
| (2) Use pkgconfig.
\--
Thanks for the hint.
-----
| inherit pkgconfig
\--
I still got the same error: gtk/gtk.h: No such file or directory.
-----
| . . . to your .bb file, and that's basically all you would need to do. The
| pkgconfig.bbclass file takes care of the rest,
\--
But, this pkgconfig.bbclass should also be placed in local/classes?
Anyways, I just added pkg-config manually to the compile as in the
standalone Makefile option, and it works now.
Here is the working .bb file:
=== BEGIN foobar.bb ===
DESCRIPTION = "GTK+ bb test build"
AUTHOR = "Foo Bar"
HOMEPAGE = "http://www.foobar.com"
SECTION = "openmoko/pim"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS += "gtk+ openmoko-libs libgsmd"
PKG = `${OMDIR}/build/tmp/staging/i686-linux/bin/pkg-config --cflags
--libs openmoko-libs gtk+-2.0 libgsmd`
SRC_URI = " file://main.c \
file://README"
S = "${WORKDIR}/foobar/"
do_compile() {
${CC} ${CFLAGS} ${LDFLAGS} ${WORKDIR}/main.c -o foobar ${PKG}
}
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 ===
Cheers,
SK
--
Shakthi Kannan
http://www.shakthimaan.com
More information about the openmoko-devel
mailing list