All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yu Ke <ke.yu@intel.com>
To: poky@yoctoproject.org, cahoshing@gmail.com
Subject: Re: Error while trying to pull xcb with X11
Date: Sat, 02 Apr 2011 11:35:08 +0800	[thread overview]
Message-ID: <4D96996C.7010601@intel.com> (raw)
In-Reply-To: <AANLkTi=KYP7eC05UOX3as0A6xFZE31VQXPZL3ehrwzuh@mail.gmail.com>

on 2011-4-1 17:43, chinmaya hoshing wrote:
> Hi,
>
> I am trying to get X11 with libxcb file so accordingly I changed in the
> bb file of libx11,also I have included libxcb and xcb-utils as runtime
> dependencies
>
> Initially it was in libx11 bb file :--
> EXTRA_OECONF += "--without-xcb"
> I changed it to
> EXTRA_OECONF += "--with-xcb"
>
> Following is the error I get :-
> checking for unistd.h... (cached) yes
> | checking for sys/param.h... yes
> | checking for getpagesize... yes
> | checking for working mmap... yes
> | checking for nl_langinfo... yes
> | checking for X11... no
> | configure: error: Package requirements (xproto >= 7.0.13 xextproto
> xtrans xcb >= 1.1.92 kbproto inputproto) were not met:
> |
> | No package 'xcb' 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 X11_CFLAGS
> | and X11_LIBS to avoid the need to call pkg-config.
> | See the pkg-config man page for more details.
> | FATAL: oe_runconf failed
> | ERROR: Task failed: ('function do_configure failed',
> '/home/laverne-4.0.1/build/tmp/work/x86_64-linux/libx11-native-1_1.3.4-r0/temp/log.do_configure.13755')
> NOTE: package libx11-native-1_1.3.4-r0: task do_configure: Failed
> ERROR: Task 3573
> (virtual:native:/home/laverne-4.0.1/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb
> <http://libx11_1.3.4.bb>, do_configure) failed with 1
> ERROR:
> 'virtual:native:/home/laverne-4.0.1/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb
> <http://libx11_1.3.4.bb>' failed
>
> I have libxcb_1.6 version ,also xproto is libxproto_7.0.17
>
> Please can  you help me to find the solution for it.
>
> Chinmaya
>
>

I see it is libx11-native do_configure failure, and the xcb-native is 
missing. that make sense because xcb recipes does not have BBCLASSEXTEND 
= "native nativesdk", thus xcb is not built for native.

I have tried to add BBCLASSEXTEND = "native" in xcb recipe, it turn out 
requiring more dependent recipes to be built for native, which is a bit 
way too far and undesirable.

so let's try another way, since you only care about the runtime libx11 
with xcb support, how about the following patches, with which only 
native disable xcb, and the runtime libx11 will have xcb support.

Regards
Ke

diff --git a/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb 
b/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb
index aaeb38e..2c558df 100644
--- a/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb
+++ b/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb
@@ -13,6 +13,6 @@ SRC_URI += "file://x11_disable_makekeys.patch \
  DEPENDS += "bigreqsproto xproto xextproto xtrans libxau xcmiscproto \
              libxdmcp xf86bigfontproto kbproto inputproto xproto-native 
gettext"

-EXTRA_OECONF += "--without-xcb"
+EXTRA_OECONF_native += "--without-xcb"

  BBCLASSEXTEND = "native nativesdk"


  reply	other threads:[~2011-04-02  3:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-01  9:43 Error while trying to pull xcb with X11 chinmaya hoshing
2011-04-02  3:35 ` Yu Ke [this message]
2011-04-02  7:46   ` Martin Jansa
2011-04-02  9:05     ` Yu Ke
2011-04-05  9:03       ` chinmaya hoshing
2011-04-08 13:46         ` Akshat Saha
2011-04-08 14:06           ` Martin Jansa
2011-04-13  4:09             ` chinmaya hoshing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D96996C.7010601@intel.com \
    --to=ke.yu@intel.com \
    --cc=cahoshing@gmail.com \
    --cc=poky@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.