| Summary: | gtk application compilation error | ||
|---|---|---|---|
| Product: | [Yocto Project Subprojects] ADT | Reporter: | Jessica <jessica.zhang> |
| Component: | adt | Assignee: | Lianhao Lu <lianhao.lu> |
| Status: | VERIFIED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | poky.adt.watcher, poky.watcher, sgw |
| Version: | 1.0 | ||
| Target Milestone: | 1.0 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Program Management | Documentation change: | --- |
Same issue for clutter as well, here's the error:
arm-poky-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/home/jzhang/qemu-arm/usr/include/glib-2.0 -I/home/jzhang/qemu-arm/usr/lib/glib-2.0/include -I/home/jzhang/qemu-arm/usr/include/clutter-1.0 -I/home/jzhang/qemu-arm/usr/include/cairo -I/home/jzhang/qemu-arm/usr/include/pango-1.0 -I/home/jzhang/qemu-arm/usr/include/gdk-pixbuf-2.0 -I/home/jzhang/qemu-arm/usr/include/pixman-1 -I/home/jzhang/qemu-arm/usr/include/freetype2 -I/home/jzhang/qemu-arm/usr/include/libpng12 -g -O0 -march=armv5te -mtune=arm926ej-s --sysroot=/home/jzhang/qemu-arm -MT clutterhw-clutterhw.o -MD -MP -MF .deps/clutterhw-clutterhw.Tpo -c -o clutterhw-clutterhw.o `test -f 'clutterhw.c' || echo './'`clutterhw.c
In file included from /home/jzhang/qemu-arm/usr/include/bits/posix1_lim.h:157:0,
make[2]: Leaving directory `/home/jzhang/runtime-EclipseApplication/clutterhw/src'
from /home/jzhang/qemu-arm/usr/include/limits.h:145,
make[1]: Leaving directory `/home/jzhang/runtime-EclipseApplication/clutterhw'
from /opt/poky/0.9+snapshot/sysroots/i686-pokysdk-linux/usr/lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.5.1/include-fixed/limits.h:169,
from /opt/poky/0.9+snapshot/sysroots/i686-pokysdk-linux/usr/lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.5.1/include-fixed/syslimits.h:7,
from /opt/poky/0.9+snapshot/sysroots/i686-pokysdk-linux/usr/lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.5.1/include-fixed/limits.h:34,
from /home/jzhang/qemu-arm/usr/lib/glib-2.0/include/glibconfig.h:11,
from /home/jzhang/qemu-arm/usr/include/glib-2.0/glib/gtypes.h:34,
from /home/jzhang/qemu-arm/usr/include/glib-2.0/glib/galloca.h:34,
from /home/jzhang/qemu-arm/usr/include/glib-2.0/glib.h:32,
from /home/jzhang/qemu-arm/usr/include/glib-2.0/gobject/gbinding.h:30,
from /home/jzhang/qemu-arm/usr/include/glib-2.0/glib-object.h:25,
from /home/jzhang/qemu-arm/usr/include/clutter-1.0/clutter/clutter-actor.h:33,
from /home/jzhang/qemu-arm/usr/include/clutter-1.0/clutter/clutter.h:33,
from clutterhw.c:31:
/home/jzhang/qemu-arm/usr/include/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
make[2]: *** [clutterhw-clutterhw.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
It should be a duplicate of bug #714. Jessica, could please tell me which application are you using to reproduce this bug so I can have a test or would you please verify this? Thx! *** This bug has been marked as a duplicate of bug 714 *** In the Eclipse plug-in there's GTK template, I tried to compile a GTK template project and ran into the issue Verified this bug got fixed by using Yocto GTK helloworld project in Eclipse plugin. |
when tried to build a very simple gtk application which contains "#include <gtk/gtk.h>" against sysroot extracted using poky-image-sato-sdk, got the following error: arm-poky-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/home/jzhang/qemu-arm/usr/include/glib-2.0 -I/home/jzhang/qemu-arm/usr/lib/glib-2.0/include -I/home/jzhang/qemu-arm/usr/include/gtk-2.0 -I/home/jzhang/qemu-arm/usr/lib/gtk-2.0/include -I/home/jzhang/qemu-arm/usr/include/atk-1.0 -I/home/jzhang/qemu-arm/usr/include/cairo -I/home/jzhang/qemu-arm/usr/include/gdk-pixbuf-2.0 -I/home/jzhang/qemu-arm/usr/include/pango-1.0 -I/home/jzhang/qemu-arm/usr/include/pixman-1 -I/home/jzhang/qemu-arm/usr/include/freetype2 -I/home/jzhang/qemu-arm/usr/include/libpng12 -g -O0 -march=armv5te -mtune=arm926ej-s --sysroot=/home/jzhang/qemu-arm -MT hwgtkc-hwgtkc.o -MD -MP -MF .deps/hwgtkc-hwgtkc.Tpo -c -o hwgtkc-hwgtkc.o `test -f 'hwgtkc.c' || echo './'`hwgtkc.c In file included from /home/jzhang/qemu-arm/usr/include/bits/posix1_lim.h:157:0, make[2]: Leaving directory `/home/jzhang/runtime-EclipseApplication/hwgtkc/src' from /home/jzhang/qemu-arm/usr/include/limits.h:145, make[1]: Leaving directory `/home/jzhang/runtime-EclipseApplication/hwgtkc' from /opt/poky/0.9+snapshot/sysroots/i686-pokysdk-linux/usr/lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.5.1/include-fixed/limits.h:169, from /opt/poky/0.9+snapshot/sysroots/i686-pokysdk-linux/usr/lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.5.1/include-fixed/syslimits.h:7, from /opt/poky/0.9+snapshot/sysroots/i686-pokysdk-linux/usr/lib/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.5.1/include-fixed/limits.h:34, from /home/jzhang/qemu-arm/usr/lib/glib-2.0/include/glibconfig.h:11, from /home/jzhang/qemu-arm/usr/include/glib-2.0/glib/gtypes.h:34, from /home/jzhang/qemu-arm/usr/include/glib-2.0/glib/galloca.h:34, from /home/jzhang/qemu-arm/usr/include/glib-2.0/glib.h:32, from /home/jzhang/qemu-arm/usr/include/glib-2.0/gobject/gbinding.h:30, from /home/jzhang/qemu-arm/usr/include/glib-2.0/glib-object.h:25, from /home/jzhang/qemu-arm/usr/include/glib-2.0/gio/gioenums.h:30, from /home/jzhang/qemu-arm/usr/include/glib-2.0/gio/giotypes.h:30, from /home/jzhang/qemu-arm/usr/include/glib-2.0/gio/gio.h:28, from /home/jzhang/qemu-arm/usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /home/jzhang/qemu-arm/usr/include/gtk-2.0/gdk/gdk.h:32, from /home/jzhang/qemu-arm/usr/include/gtk-2.0/gtk/gtk.h:32, from hwgtkc.c:29: /home/jzhang/qemu-arm/usr/include/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory compilation terminated. make[2]: *** [hwgtkc-hwgtkc.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2