[poky] Error while trying to pull xcb with X11
Martin Jansa
martin.jansa at gmail.com
Fri Apr 8 07:06:26 PDT 2011
On Fri, Apr 08, 2011 at 07:16:52PM +0530, Akshat Saha wrote:
> Hi,
>
> I am also facing the same error, I made the following changes in libx11.inc
> as well as libx11_1.3.4.bb
>
> - EXTRA_OECONF += "--with-keysymdef=${STAGING_INCDIR}/X11/keysymdef.h"
> + EXTRA_OECONF += "*--with-xcb *
> --with-keysymdef=${STAGING_INCDIR}/X11/keysymdef.h"
> *+ EXTRA_OECONF_native += "--without-xcb"
> + EXTRA_OECONF_nativesdk += "--without-xcb*
that's wrong syntax, right is:
EXTRA_OECONF_virtclass-native
EXTRA_OECONF_virtclass-nativesdk
see http://git.openembedded.net/cgit.cgi/openembedded/tree/recipes/xorg-lib/libx11.inc
but as I said before this is solution only for old libx11, better
to add native to libxcb like here:
http://git.openembedded.net/cgit.cgi/openembedded-core-contrib/commit/?h=shr&id=5862cadc7a68c7254357f54b2ca6a8c8608b22c8
then you can also use newer libx11-1.4.3 from meta-shr layer
http://git.shr-project.org/git/?p=meta-shr.git;a=summary
Cheers,
> *
> *
> But the error is still there, from the error log i observer that while
> compiling for libx11-native instead of using *"EXTRA_OECONF_native"* as
> expected, it is taking arguments from *"EXTRA_OECONF"* only.
> The error log is as follows:
>
>
> NOTE: Executing autoreconf --verbose --install --force --exclude=autopoint
> -I
> /home/sct/laverne-4.0.1/build/tmp/work/i686-linux/libx11-native-1_1.3.4-r0/libX11-1.3.4/m4/
> -I/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/share/aclocal-1.11
> -I /home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/share/aclocal
> autoreconf: Entering directory `.'
> autoreconf: configure.ac: not using Gettext
> autoreconf: running: aclocal -I
> /home/sct/laverne-4.0.1/build/tmp/work/i686-linux/libx11-native-1_1.3.4-r0/libX11-1.3.4/m4/
> -I
> /home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/share/aclocal-1.11
> -I /home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/share/aclocal
> -I
> /home/sct/laverne-4.0.1/build/tmp/work/i686-linux/libx11-native-1_1.3.4-r0/libX11-1.3.4/m4/
> -I
> /home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/share/aclocal-1.11
> -I /home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/share/aclocal
> --force -I m4
> autoreconf: configure.ac: tracing
> autoreconf: running: libtoolize --copy --force
> libtoolize: putting auxiliary files in `.'.
> libtoolize: copying file `./ltmain.sh'
> libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
> libtoolize: copying file `m4/libtool.m4'
> libtoolize: copying file `m4/ltoptions.m4'
> libtoolize: copying file `m4/ltsugar.m4'
> libtoolize: copying file `m4/ltversion.m4'
> libtoolize: copying file `m4/lt~obsolete.m4'
> autoreconf: running:
> /home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/bin/autoconf
> --include=/home/sct/laverne-4.0.1/build/tmp/work/i686-linux/libx11-native-1_1.3.4-r0/libX11-1.3.4/m4/
> --include=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/share/aclocal-1.11
> --include=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/share/aclocal
> --force --warnings=cross
> autoreconf: running:
> /home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/bin/autoheader
> --include=/home/sct/laverne-4.0.1/build/tmp/work/i686-linux/libx11-native-1_1.3.4-r0/libX11-1.3.4/m4/
> --include=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/share/aclocal-1.11
> --include=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/share/aclocal
> --force --warnings=cross
> autoreconf: running: automake --foreign --add-missing --copy --force-missing
> --warnings=cross
> automake: unknown warning category `cross'
> autoreconf: running: gnu-configize
> autoreconf: Leaving directory `.'
> NOTE: Running
> /home/sct/laverne-4.0.1/build/tmp/work/i686-linux/libx11-native-1_1.3.4-r0/libX11-1.3.4/configure
> --build=i686-linux --host=i686-linux
> --target=i686-linux
> --prefix=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr
> --exec_prefix=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr
> --bindir=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/bin
>
> --sbindir=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/sbin
>
> --libexecdir=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/libexec
>
> --datadir=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/share
>
> --sysconfdir=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/etc
>
> --sharedstatedir=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/com
>
> --localstatedir=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/var
>
> --libdir=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/lib
>
> --includedir=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/include
>
> --oldincludedir=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/include
>
> --infodir=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/share/info
>
> --mandir=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/share/man
> --enable-malloc0returnsnull
> --with-keysymdef=/home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/include/X11/keysymdef.h
> *--with-xcb* ...
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> :
> :
> :
> checking minix/config.h usability... no
> checking minix/config.h presence... no
> checking for minix/config.h... no
> checking whether it is safe to define __EXTENSIONS__... yes
> checking for gcc option to accept ISO C99... -std=gnu99
> checking for i686-linux-pkg-config... no
> checking for pkg-config...
> /home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for a sed that does not truncate output... /bin/sed
> checking whether to build functional specifications... yes
> checking for groff... /usr/bin/groff
> checking for /usr/bin/groff -ms macros... no
> checking for /usr/bin/groff -mm macros... no
> checking for gs... /usr/bin/gs
> checking for pnmtopng... no
> checking for psselect... no
> configure: WARNING: grohtml dependencies not found - HTML Documentation
> skipped. Refer to grohtml man pages
> :
> :
> *checking whether to use XCB... (cached) yes*
> checking for i686-linux-pkg-config... (cached)
> /home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> :
> :
> checking if loadable i18n module support should be enabled... no
> checking if loadable Xcursor library support should be enabled... yes
> checking for ANSI C header files... (cached) yes
> checking sys/select.h usability... yes
> checking sys/select.h presence... yes
> checking for sys/select.h... yes
> checking for strtol... yes
> checking for issetugid... no
> checking for getresuid... yes
> checking for shmat... yes
> checking for launchd... no
> checking for getpwuid_r in -lc... yes
> checking for pthread_self in -lc... yes
> checking for poll... yes
> /home/sct/laverne-4.0.1/build/tmp/sysroots/i686-linux/usr/include/X11/keysymdef.h
> checking if XLOCALEDIR support should be enabled... yes
> checking for BIGFONT... yes
> checking for stdlib.h... (cached) yes
> 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/sct/laverne-4.0.1/build/tmp/work/i686-linux/libx11-native-1_1.3.4-r0/temp/log.do_configure.24052')
>
> Can any one suggest, what am i doing wrong or how can this error be solved.
>
> On Tue, Apr 5, 2011 at 2:33 PM, chinmaya hoshing <cahoshing at gmail.com>wrote:
>
> > Hi,
> >
> > Thanks for the reply Yu Ke.I have made changes as per said by you,but still
> > getting the same error
> > Regarding the Error no xcb found in libx11 library
> > Following is the my libx11 bb file : --
> >
> > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > require libx11.inc
> >
> > LICENSE = "MIT & MIT-style & BSD"
> > LIC_FILES_CHKSUM = "file://COPYING;md5=bf75bfe4d05068311b5e6862d4b5f2c5"
> >
> > PE = "1"
> > PR = "r0"
> >
> > SRC_URI += "file://x11_disable_makekeys.patch \
> > file://nodolt.patch \
> > file://include_fix.patch"
> >
> > DEPENDS += "bigreqsproto xproto xextproto xtrans libxau xcmiscproto \
> > libxdmcp xf86bigfontproto kbproto inputproto xproto-native
> > gettext"
> >
> > EXTRA_OECONF += "--with-xcb"
> > EXTRA_OECONF_native += "--without-xcb"
> >
> > BBCLASSEXTEND = "native nativesdk"
> >
> > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> > But stiil getting the same error :--
> >
> > | 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/sct/laverne_git/laverne-4.0.1/build/tmp/work/x86_64-linux/libx11-native-1_1.3.4-r0/temp/log.do_configure.16900')
> > NOTE: package libx11-native-1_1.3.4-r0: task do_configure: Failed
> > ERROR: Task 20
> > (virtual:native:/home/sct/laverne_git/laverne-4.0.1/meta/recipes-graphics/xorg-lib/
> > libx11_1.3.4.bb, do_configure) failed with 1
> > ERROR:
> > 'virtual:native:/home/sct/laverne_git/laverne-4.0.1/meta/recipes-graphics/xorg-lib/
> > libx11_1.3.4.bb' failed
> >
> > Chinmaya
> >
> > On Sat, Apr 2, 2011 at 2:35 PM, Yu Ke <ke.yu at intel.com> wrote:
> >
> >> on 2011-4-2 15:46, Martin Jansa wrote:
> >>
> >>> On Sat, Apr 02, 2011 at 11:35:08AM +0800, Yu Ke wrote:
> >>>
> >>>> 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.
> >>>>
> >>>
> >>> Hi,
> >>>
> >>> for libx11-1.4.0 and newer --without-xcb is not an option anymore, so
> >>> better to fix it with native xcb sooner than later, for details see
> >>>
> >>> d28cdb2d2e6c910afbaa14b17bd2c0003052df7d in openembedded/master
> >>> and the rest of xorg/xcb recipes in openembedded :)
> >>>
> >>> Cheers,
> >>>
> >>>
> >> In this case. your are right, native xcb should also be added. Will
> >> upgrade it soon. Thanks for the info.
> >>
> >> Regards
> >> Ke
> >> _______________________________________________
> >> poky mailing list
> >> poky at yoctoproject.org
> >> https://lists.yoctoproject.org/listinfo/poky
> >>
> >
> >
> > _______________________________________________
> > poky mailing list
> > poky at yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/poky
> >
> >
>
>
> --
> Akshat
> _______________________________________________
> poky mailing list
> poky at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
--
Martin 'JaMa' Jansa jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20110408/4a750d4f/attachment.pgp>
More information about the poky
mailing list