Bug 1900

Summary: Build gtk-directfb image failed
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Yi Zhao <yi.zhao>
Component: coreAssignee: Xiaofeng Yan <Xiaofeng.yan>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: liang.li2, meta.mr.watcher, meta.watcher, sgw, yi.zhao
Version: 1.2   
Target Milestone: 1.2 M3   
Hardware: Other   
OS: arm   
Whiteboard: (QA testing completed) Done
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Yi Zhao 2012-01-13 00:36:37 UTC
This feature is from bug 1674 

Tree/Branch: Poky/master
Poky Commit: 468998cddbe1a803096c9b357e1b5daa3b7e8c2e

Steps:
1. Download poky source and prepare the build environment
2. Set MACHINE to qemuarm in conf/local.conf
3. Remove "x11" from DISTRO_FEATURES in meta/conf/distro/include/default-distrovars.inc, use "gtk-directfb" instead of it:
   DISTRO_FEATURES ?= "alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g gtk-directfb ${DISTRO_FEATURES_LIBC}"
4. Run "bitbake core-image-gtk-directfb" to build a gtk-directfb image

Error log:
#############
| checking for CAIRO_BACKEND... no
| configure: error: Package requirements (cairo-xlib >= 1.6) were not met:
| 
| No package 'cairo-xlib' found
| 
| Consider adjusting the PKG_CONFIG_PATH environment variable if you
| installed software in a non-standard prefix.
| 
| Alternatively, you may set the environment variables CAIRO_BACKEND_CFLAGS
| and CAIRO_BACKEND_LIBS to avoid the need to call pkg-config.
| See the pkg-config man page for more details.
| ERROR: oe_runconf failed
.....

ERROR: '/buildarea2/poky/meta/recipes-gnome/gtk+/gtk+_2.24.8.bb' failed

#####################
Comment 1 Xiaofeng Yan 2012-01-13 01:33:21 UTC
Misconfiguration of directfb in PACKAGECONFIG causes this problem. I change directfb to gtk-directfb.
Another problem is about messy code when running gtk-demo because of no "/etc/pango".
I create this directory in pango.inc.

Please review patches on the following web page.
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/?h=xiaofeng/gtk-directfb
Comment 3 liang li 2012-02-13 02:17:34 UTC
verified on: 
git info: 41a83ccfe50ec69425a4828fb5836d38d3f99e67
git branch : poky/master

and the gtk-directfb image can boot and "gtk-demo" can run on the image.
Comment 4 liang li 2012-02-13 02:22:57 UTC
test env :
host: ubuntu 11.10 x86_64
kernel: 3.0.0-15-generic #26-Ubuntu SMP