All of lore.kernel.org
 help / color / mirror / Atom feed
* [gtk+3][zeus] building only with wayland backend, no x11
@ 2020-11-09 13:10 Adrian
  2020-11-09 14:28 ` [yocto] " Alexander Kanavin
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian @ 2020-11-09 13:10 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2053 bytes --]

Hi,

I am building an image based on core-image-weston.

I would like to use only wayland backend, thus I defined in my machine's
configuration:

    DISTRO_FEATURES_append = " wayland"
    DISTRO_FEATURES_remove = " x11"

I have a problem with build of gtk+3:

    | checking for pango pangocairo gdk-pixbuf-2.0 >= 2.30.0 cairo >=
    1.14.0 cairo-gobject >= 1.14.0 gio-unix-2.0 >= 2.53.4 
    wayland-client >= 1.9.91 wayland-protocols >= 1.12 xkbcommon >=
    0.2.0 wayland-cursor >= 1.9.91 wayland-egl   cairo epoxy >= 1.4 
    fribidi >= 0.19.7... no
    | configure: error: Package requirements (pango pangocairo
    gdk-pixbuf-2.0 >= 2.30.0 cairo >= 1.14.0 cairo-gobject >= 1.14.0
    gio-unix-2.0 >= 2.53.4  wayland-client >= 1.9.91 wayland-protocols
    >= 1.12 xkbcommon >= 0.2.0 wayland-cursor >= 1.9.91 wayland-egl  
    cairo epoxy >= 1.4  fribidi >= 0.19.7) were not met:
    |
    | Package 'x11', required by 'gl', not found

The configuration flags in config.log seems to be ok:

  $ ../gtk+-3.24.8/configure --build=x86_64-linux
--host=aarch64-poky-linux --target=aarch64-poky-linux --prefix=/usr
--exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc
--sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib
--includedir=/usr/include --oldincludedir=/usr/include
--infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules
--disable-dependency-tracking
--with-libtool-sysroot=/home/afiergol/fastree/falcon/poky/build/tmp/work/aarch64-poky-linux/gtk+3/3.24.8-r0/recipe-sysroot
--enable-introspection --disable-gtk-doc --disable-glibtest
--disable-xinerama --enable-modules --disable-colord --disable-gtk-doc
--disable-static --disable-cups --disable-glx --enable-opengl
--enable-wayland-backend --disable-x11-backend --enable-nls

Has anybody else experience similar issue? Do you know a fix? I work
with the latest zeus (d88d62c20d7d8da85f02edb170dae0280624ad7e) version.

Regards,

Adrian



[-- Attachment #2: Type: text/html, Size: 2630 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] [gtk+3][zeus] building only with wayland backend, no x11
  2020-11-09 13:10 [gtk+3][zeus] building only with wayland backend, no x11 Adrian
@ 2020-11-09 14:28 ` Alexander Kanavin
  2020-11-10 15:14   ` Adrian
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Kanavin @ 2020-11-09 14:28 UTC (permalink / raw)
  To: Adrian; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 2568 bytes --]

Do you actually need gtk+3 in your image?

There is a poky configuration that builds core-image-weston without x11,
and core-image-weston does pull in gtk+3, and all that happens without
errors:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder-helper/tree/config.json?h=zeus#n638
so I'd suggest you reproduce that, get it to build, then investigate where
your build diverges.

Alex

On Mon, 9 Nov 2020 at 14:10, Adrian <adrian.fiergolski@fastree3d.com> wrote:

> Hi,
>
> I am building an image based on core-image-weston.
>
> I would like to use only wayland backend, thus I defined in my machine's
> configuration:
>
> DISTRO_FEATURES_append = " wayland"
> DISTRO_FEATURES_remove = " x11"
>
> I have a problem with build of gtk+3:
>
> | checking for pango pangocairo gdk-pixbuf-2.0 >= 2.30.0 cairo >= 1.14.0
> cairo-gobject >= 1.14.0 gio-unix-2.0 >= 2.53.4  wayland-client >= 1.9.91
> wayland-protocols >= 1.12 xkbcommon >= 0.2.0 wayland-cursor >= 1.9.91
> wayland-egl   cairo epoxy >= 1.4  fribidi >= 0.19.7... no
> | configure: error: Package requirements (pango pangocairo gdk-pixbuf-2.0
> >= 2.30.0 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gio-unix-2.0 >= 2.53.4
> wayland-client >= 1.9.91 wayland-protocols >= 1.12 xkbcommon >= 0.2.0
> wayland-cursor >= 1.9.91 wayland-egl   cairo epoxy >= 1.4  fribidi >=
> 0.19.7) were not met:
> |
> | Package 'x11', required by 'gl', not found
>
> The configuration flags in config.log seems to be ok:
>
>   $ ../gtk+-3.24.8/configure --build=x86_64-linux
> --host=aarch64-poky-linux --target=aarch64-poky-linux --prefix=/usr
> --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
> --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc
> --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib
> --includedir=/usr/include --oldincludedir=/usr/include
> --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules
> --disable-dependency-tracking
> --with-libtool-sysroot=/home/afiergol/fastree/falcon/poky/build/tmp/work/aarch64-poky-linux/gtk+3/3.24.8-r0/recipe-sysroot
> --enable-introspection --disable-gtk-doc --disable-glibtest
> --disable-xinerama --enable-modules --disable-colord --disable-gtk-doc
> --disable-static --disable-cups --disable-glx --enable-opengl
> --enable-wayland-backend --disable-x11-backend --enable-nls
>
> Has anybody else experience similar issue? Do you know a fix? I work with
> the latest zeus (d88d62c20d7d8da85f02edb170dae0280624ad7e) version.
>
> Regards,
>
> Adrian
>
>
>
> 
>
>

[-- Attachment #2: Type: text/html, Size: 3549 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] [gtk+3][zeus] building only with wayland backend, no x11
  2020-11-09 14:28 ` [yocto] " Alexander Kanavin
@ 2020-11-10 15:14   ` Adrian
  2020-11-10 17:26     ` Alexander Kanavin
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian @ 2020-11-10 15:14 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 3932 bytes --]

Hi Alex,

Thank you for the hint. It led me to the source of the problem, which
was libepoxy.

It looks that after changing configuration (DISTRO_FEATURES_remove = "
x11"), SSTATE was still populating sysroot of gtk+3 with the older
version of libepoxy configuration file (*.pc) creating dependency to
'gl' and 'x11'. In my case I had to call:

    bitbake -c cleanall libepoxy

    bitbake -c cleanall gtk+3

    bitbake gtk+3

In order to avoid such issues in the future, is there any way to force
bitbake (after such considerable configuration change like modification
of DISTRO_FEATURES) to rebuild sysroot for each recipe if necessary
instead of grabbing them from the cache ? I know, one could delete
sstate-cache directory, but obviously it will enormously increase
rebuild time. I have been wondering whether there is an intermediate
solution.

Regards,

Adrian

On 09.11.2020 15:28, Alexander Kanavin wrote:
> Do you actually need gtk+3 in your image?
>
> There is a poky configuration that builds core-image-weston without
> x11, and core-image-weston does pull in gtk+3, and all that happens
> without errors:
> http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder-helper/tree/config.json?h=zeus#n638
> <http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder-helper/tree/config.json?h=zeus#n638>
> so I'd suggest you reproduce that, get it to build, then investigate
> where your build diverges.
>
> Alex
>
> On Mon, 9 Nov 2020 at 14:10, Adrian <adrian.fiergolski@fastree3d.com
> <mailto:adrian.fiergolski@fastree3d.com>> wrote:
>
>     Hi,
>
>     I am building an image based on core-image-weston.
>
>     I would like to use only wayland backend, thus I defined in my
>     machine's configuration:
>
>         DISTRO_FEATURES_append = " wayland"
>         DISTRO_FEATURES_remove = " x11"
>
>     I have a problem with build of gtk+3:
>
>         | checking for pango pangocairo gdk-pixbuf-2.0 >= 2.30.0 cairo
>         >= 1.14.0 cairo-gobject >= 1.14.0 gio-unix-2.0 >= 2.53.4 
>         wayland-client >= 1.9.91 wayland-protocols >= 1.12 xkbcommon
>         >= 0.2.0 wayland-cursor >= 1.9.91 wayland-egl   cairo epoxy >=
>         1.4  fribidi >= 0.19.7... no
>         | configure: error: Package requirements (pango pangocairo
>         gdk-pixbuf-2.0 >= 2.30.0 cairo >= 1.14.0 cairo-gobject >=
>         1.14.0 gio-unix-2.0 >= 2.53.4  wayland-client >= 1.9.91
>         wayland-protocols >= 1.12 xkbcommon >= 0.2.0 wayland-cursor >=
>         1.9.91 wayland-egl   cairo epoxy >= 1.4  fribidi >= 0.19.7)
>         were not met:
>         |
>         | Package 'x11', required by 'gl', not found
>
>     The configuration flags in config.log seems to be ok:
>
>       $ ../gtk+-3.24.8/configure --build=x86_64-linux
>     --host=aarch64-poky-linux --target=aarch64-poky-linux
>     --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin
>     --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share
>     --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var
>     --libdir=/usr/lib --includedir=/usr/include
>     --oldincludedir=/usr/include --infodir=/usr/share/info
>     --mandir=/usr/share/man --disable-silent-rules
>     --disable-dependency-tracking
>     --with-libtool-sysroot=/home/afiergol/fastree/falcon/poky/build/tmp/work/aarch64-poky-linux/gtk+3/3.24.8-r0/recipe-sysroot
>     --enable-introspection --disable-gtk-doc --disable-glibtest
>     --disable-xinerama --enable-modules --disable-colord
>     --disable-gtk-doc --disable-static --disable-cups --disable-glx
>     --enable-opengl --enable-wayland-backend --disable-x11-backend
>     --enable-nls
>
>     Has anybody else experience similar issue? Do you know a fix? I
>     work with the latest zeus
>     (d88d62c20d7d8da85f02edb170dae0280624ad7e) version.
>
>     Regards,
>
>     Adrian
>
>
>
>     
>

[-- Attachment #2: Type: text/html, Size: 5793 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] [gtk+3][zeus] building only with wayland backend, no x11
  2020-11-10 15:14   ` Adrian
@ 2020-11-10 17:26     ` Alexander Kanavin
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Kanavin @ 2020-11-10 17:26 UTC (permalink / raw)
  To: Adrian Fiergolski; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 3904 bytes --]

This seems like libepoxy was not properly rebuilt when you changed
DISTRO_FEATURS, even though it should have been. Can you try to reproduce
the issue on master please?

Alex

On Tue, 10 Nov 2020 at 16:14, Adrian Fiergolski <
adrian.fiergolski@fastree3d.com> wrote:

> Hi Alex,
>
> Thank you for the hint. It led me to the source of the problem, which was
> libepoxy.
>
> It looks that after changing configuration (DISTRO_FEATURES_remove = "
> x11"), SSTATE was still populating sysroot of gtk+3 with the older version
> of libepoxy configuration file (*.pc) creating dependency to 'gl' and
> 'x11'. In my case I had to call:
>
> bitbake -c cleanall libepoxy
>
> bitbake -c cleanall gtk+3
>
> bitbake gtk+3
>
> In order to avoid such issues in the future, is there any way to force
> bitbake (after such considerable configuration change like modification of
> DISTRO_FEATURES) to rebuild sysroot for each recipe if necessary instead of
> grabbing them from the cache ? I know, one could delete sstate-cache
> directory, but obviously it will enormously increase rebuild time. I have
> been wondering whether there is an intermediate solution.
>
> Regards,
>
> Adrian
> On 09.11.2020 15:28, Alexander Kanavin wrote:
>
> Do you actually need gtk+3 in your image?
>
> There is a poky configuration that builds core-image-weston without x11,
> and core-image-weston does pull in gtk+3, and all that happens without
> errors:
>
> http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder-helper/tree/config.json?h=zeus#n638
> so I'd suggest you reproduce that, get it to build, then investigate where
> your build diverges.
>
> Alex
>
> On Mon, 9 Nov 2020 at 14:10, Adrian <adrian.fiergolski@fastree3d.com>
> wrote:
>
>> Hi,
>>
>> I am building an image based on core-image-weston.
>>
>> I would like to use only wayland backend, thus I defined in my machine's
>> configuration:
>>
>> DISTRO_FEATURES_append = " wayland"
>> DISTRO_FEATURES_remove = " x11"
>>
>> I have a problem with build of gtk+3:
>>
>> | checking for pango pangocairo gdk-pixbuf-2.0 >= 2.30.0 cairo >= 1.14.0
>> cairo-gobject >= 1.14.0 gio-unix-2.0 >= 2.53.4  wayland-client >= 1.9.91
>> wayland-protocols >= 1.12 xkbcommon >= 0.2.0 wayland-cursor >= 1.9.91
>> wayland-egl   cairo epoxy >= 1.4  fribidi >= 0.19.7... no
>> | configure: error: Package requirements (pango pangocairo gdk-pixbuf-2.0
>> >= 2.30.0 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gio-unix-2.0 >= 2.53.4
>> wayland-client >= 1.9.91 wayland-protocols >= 1.12 xkbcommon >= 0.2.0
>> wayland-cursor >= 1.9.91 wayland-egl   cairo epoxy >= 1.4  fribidi >=
>> 0.19.7) were not met:
>> |
>> | Package 'x11', required by 'gl', not found
>>
>> The configuration flags in config.log seems to be ok:
>>
>>   $ ../gtk+-3.24.8/configure --build=x86_64-linux
>> --host=aarch64-poky-linux --target=aarch64-poky-linux --prefix=/usr
>> --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
>> --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc
>> --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib
>> --includedir=/usr/include --oldincludedir=/usr/include
>> --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules
>> --disable-dependency-tracking
>> --with-libtool-sysroot=/home/afiergol/fastree/falcon/poky/build/tmp/work/aarch64-poky-linux/gtk+3/3.24.8-r0/recipe-sysroot
>> --enable-introspection --disable-gtk-doc --disable-glibtest
>> --disable-xinerama --enable-modules --disable-colord --disable-gtk-doc
>> --disable-static --disable-cups --disable-glx --enable-opengl
>> --enable-wayland-backend --disable-x11-backend --enable-nls
>>
>> Has anybody else experience similar issue? Do you know a fix? I work with
>> the latest zeus (d88d62c20d7d8da85f02edb170dae0280624ad7e) version.
>>
>> Regards,
>>
>> Adrian
>>
>>
>>
>> 
>>
>>

[-- Attachment #2: Type: text/html, Size: 6152 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-10 17:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-09 13:10 [gtk+3][zeus] building only with wayland backend, no x11 Adrian
2020-11-09 14:28 ` [yocto] " Alexander Kanavin
2020-11-10 15:14   ` Adrian
2020-11-10 17:26     ` Alexander Kanavin

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.