Skip to contentSkip to conversation

gstreamer without X11?

DISCUSSION Gary Thomas 4 participants 15 messages Jan 14, 2014

lore
Share & tools
lore
#0 lore raw

I'm trying to build QTE with a distribution that does not include x11. However, I'm getting this error:

ERROR: Nothing PROVIDES 'virtual/libx11' (but /home/local/poky-multi/meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bb DEPENDS on or otherwise requires it)
ERROR: libx11-diet PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: nativesdk-libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
NOTE: Runtime target 'qwt-e' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['qwt-e', 'qt4-embedded', 'gst-plugins-base', 'virtual/libx11']
ERROR: Required build target 'my-qte-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['my-qte-image', 'packagegroup-core-qt4e', 'qwt-e', 'qt4-embedded', 'gst-plugins-base', 'virtual/libx11']

I don't understand why this happens though as the gst-plugins-base
recipe uses PKGCONFIG to control this:
PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" PACKAGECONFIG[x11] = "--enable-x --enable-xvideo,--disable-x --disable-xvideo,virtual/libx11 libxv libsm libice"

How can the depencency on virtual/libx11 still be there if DISTRO_FEATURES does not contain x11?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 27 lines · Gary Thomas

I'm trying to build QTE with a distribution that does not include x11. However, I'm getting this error:

ERROR: Nothing PROVIDES 'virtual/libx11' (but /home/local/poky-multi/meta/ recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bb DEPENDS on or otherwise requires it)
ERROR: libx11-diet PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: nativesdk-libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
NOTE: Runtime target 'qwt-e' is unbuildable, removing... Missing or unbuildable dependency chain was: ['qwt-e', 'qt4-embedded', 'gst-plugins-base', 'virtual/libx11']
ERROR: Required build target 'my-qte-image' has no buildable providers. Missing or unbuildable dependency chain was: ['my-qte-image', 'packagegroup-core-qt4e', 'qwt-e', 'qt4-embedded', 'gst-plugins-base', 'virtual/libx11']

I don't understand why this happens though as the gst-plugins-base recipe uses PKGCONFIG to control this:
PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11',
'', d)}"
PACKAGECONFIG[x11] = "--enable-x --enable-xvideo,--disable-x
--disable-xvideo,virtual/libx11 libxv libsm libice"

Quoted 3 lines

How can the depencency on virtual/libx11 still be there if DISTRO_FEATURES does not contain x11?

obvious question... are you sure DISTRO_FEATURES does not contain x11? did you define you own distro config? it is there by default, so unless you did something to remove it, it will be there.

you can display the value of the variable with

bitbake -e gst-plugins-base | grep ^DISTRO_FEATURES

you can check the value of PACKAGECONFIG as well to get more information.

#2 lore raw
Quoted 24 lines · Nicolas Dechesne

On Tue, Jan 14, 2014 at 2:07 PM, Gary Thomas <[email protected] <mailto:[email protected]>> wrote:

I'm trying to build QTE with a distribution that does not include x11. However, I'm getting this error:

ERROR: Nothing PROVIDES 'virtual/libx11' (but /home/local/poky-multi/meta/__recipes-multimedia/gstreamer/g__st-plugins-base_0.10.36.bb <http://gst-plugins-base_0.10.36.bb>
DEPENDS on or otherwise requires it)
ERROR: libx11-diet PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: nativesdk-libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
NOTE: Runtime target 'qwt-e' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['qwt-e', 'qt4-embedded', 'gst-plugins-base', 'virtual/libx11']
ERROR: Required build target 'my-qte-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['my-qte-image', 'packagegroup-core-qt4e', 'qwt-e', 'qt4-embedded', 'gst-plugins-base', 'virtual/libx11']

I don't understand why this happens though as the gst-plugins-base
recipe uses PKGCONFIG to control this:
PACKAGECONFIG ??= "${@base_contains('DISTRO___FEATURES', 'x11', 'x11', '', d)}" PACKAGECONFIG[x11] = "--enable-x --enable-xvideo,--disable-x --disable-xvideo,virtual/__libx11 libxv libsm libice"

How can the depencency on virtual/libx11 still be there if DISTRO_FEATURES does not contain x11?

Quoted 8 lines

obvious question... are you sure DISTRO_FEATURES does not contain x11? did you define you own distro config? it is there by default, so unless you did something to remove it, it will be there.

you can display the value of the variable with

bitbake -e gst-plugins-base | grep ^DISTRO_FEATURES

you can check the value of PACKAGECONFIG as well to get more information.

Yes, I explicitly removed this in local.conf:

[gthomas@titan imx6_test]$ tail -n5 conf/local.conf

# Enable local PR server - edit this to use a shared server PRSERV_HOST = "localhost:0"

DISTRO_FEATURES_remove = "x11 wayland"

[gthomas@titan imx6_test]$ bitbake -e gst-plugins-base | grep ^DISTRO_FEATURES
... nothing

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 6 lines · Gary Thomas
Quoted 6 lines

I don't understand why this happens though as the gst-plugins-base recipe uses PKGCONFIG to control this:
PACKAGECONFIG ??= "${@base_contains('DISTRO___FEATURES', 'x11',
'x11', '', d)}"

       PACKAGECONFIG[x11] = "--enable-x --enable-xvideo,--disable-x

--disable-xvideo,virtual/__libx11 libxv libsm libice"

Check that gst-plugins-base resolved PACKAGECONFIG hasn't been explicitly set somewhere (again, use bitbake -e gst-plugins-base).

Ross

#4 lore raw
Quoted 11 lines · Ross
Quoted 6 lines · Gary Thomas
Quoted 6 lines

I don't understand why this happens though as the gst-plugins-base recipe uses PKGCONFIG to control this:
PACKAGECONFIG ??= "${@base_contains('DISTRO___FEATURES', 'x11',
'x11', '', d)}"

        PACKAGECONFIG[x11] = "--enable-x --enable-xvideo,--disable-x

--disable-xvideo,virtual/__libx11 libxv libsm libice"

Check that gst-plugins-base resolved PACKAGECONFIG hasn't been explicitly set somewhere (again, use bitbake -e gst-plugins-base).

Not sure exactly what you mean, but this showed nothing as well:

  $ bitbake -e gst-plugins-base | grep PACKAGECONFIG
Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#5 lore raw
Quoted 3 lines · Gary Thomas

Not sure exactly what you mean, but this showed nothing as well:

  $ bitbake -e gst-plugins-base | grep PACKAGECONFIG

what do you mean, 'it shows nothing'? it show show 'something'. if x11 is enabled:

$ bitbake -e gst-plugins-base | grep PACKAGECONFIG
# $PACKAGECONFIG_pn-qemu-native
PACKAGECONFIG_pn-qemu-native="sdl"
# $PACKAGECONFIG [6 operations]
PACKAGECONFIG="x11"

and if it's not:

$ bitbake -e gst-plugins-base | grep PACKAGECONFIG
# $PACKAGECONFIG_pn-qemu-native
PACKAGECONFIG_pn-qemu-native="sdl"
# $PACKAGECONFIG [6 operations]
PACKAGECONFIG=""
#6 lore raw
In reply to Gary Thomas
Quoted 10 lines · Gary Thomas
Quoted 9 lines · Ross
Quoted 6 lines · Gary Thomas
Quoted 6 lines

I don't understand why this happens though as the gst-plugins-base recipe uses PKGCONFIG to control this:
PACKAGECONFIG ??= "${@base_contains('DISTRO___FEATURES', 'x11',
'x11', '', d)}"

        PACKAGECONFIG[x11] = "--enable-x --enable-xvideo,--disable-x

--disable-xvideo,virtual/__libx11 libxv libsm libice"

Quoted 5 lines
Quoted 2 lines

Check that gst-plugins-base resolved PACKAGECONFIG hasn't been explicitly set somewhere (again, use bitbake -e gst-plugins-base).

Not sure exactly what you mean, but this showed nothing as well:

   $ bitbake -e gst-plugins-base | grep PACKAGECONFIG

nothing? It should show at least assignment of empty value and a lot of PACKAGECONFIG usages.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#7 lore raw
Quoted 11 lines · Martin Jansa
Quoted 10 lines · Gary Thomas
Quoted 9 lines · Ross
Quoted 6 lines · Gary Thomas
Quoted 6 lines

I don't understand why this happens though as the gst-plugins-base recipe uses PKGCONFIG to control this:
PACKAGECONFIG ??= "${@base_contains('DISTRO___FEATURES', 'x11',
'x11', '', d)}"

         PACKAGECONFIG[x11] = "--enable-x --enable-xvideo,--disable-x

--disable-xvideo,virtual/__libx11 libxv libsm libice"

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Check that gst-plugins-base resolved PACKAGECONFIG hasn't been explicitly set somewhere (again, use bitbake -e gst-plugins-base).

Not sure exactly what you mean, but this showed nothing as well:

    $ bitbake -e gst-plugins-base | grep PACKAGECONFIG

nothing? It should show at least assignment of empty value and a lot of PACKAGECONFIG usages.

Sorry, no, when x11 is missing, I only get this error:

[gthomas@titan imx6_test]$ bitbake -e gst-plugins-base
NOTE: Started PRServer with DBfile: /home/local/imx6_test/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 45092, PID: 22974
Loading cache: 100% |####################################################################################| ETA: 00:00:00
Loaded 1564 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'virtual/libx11' (but /home/local/poky-multi/meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bb DEPENDS on or otherwise requires it)
ERROR: libx11-diet PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: nativesdk-libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: Required build target 'gst-plugins-base' has no buildable providers.
Missing or unbuildable dependency chain was: ['gst-plugins-base', 'virtual/libx11']

If I have x11 in DISTRO_FEATURES, I get a full dump and the grep shows something:

[gthomas@titan imx6_test]$ bitbake -e gst-plugins-base | grep PACKAGECONFIG # $PACKAGECONFIG [7 operations]
PACKAGECONFIG=" pango x11"
[gthomas@titan imx6_test]$

Note this is using Poky master that's about a week old, but I doubt that anything has changed in this realm.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#8 lore raw
Quoted 25 lines · Gary Thomas

Sorry, no, when x11 is missing, I only get this error:

[gthomas@titan imx6_test]$ bitbake -e gst-plugins-base
NOTE: Started PRServer with DBfile: /home/local/imx6_test/cache/prserv.sqlite3,
IP: 127.0.0.1, PORT: 45092, PID: 22974
Loading cache: 100% |############################# #######################################################| ETA: 00:00:00 Loaded 1564 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'virtual/libx11' (but /home/local/poky-multi/meta/ recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bb DEPENDS on or otherwise requires it)

ERROR: libx11-diet PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: nativesdk-libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: Required build target 'gst-plugins-base' has no buildable providers. Missing or unbuildable dependency chain was: ['gst-plugins-base', 'virtual/libx11']

Quoted 9 lines

If I have x11 in DISTRO_FEATURES, I get a full dump and the grep shows something:

[gthomas@titan imx6_test]$ bitbake -e gst-plugins-base | grep PACKAGECONFIG
# $PACKAGECONFIG [7 operations]
PACKAGECONFIG=" pango x11"
[gthomas@titan imx6_test]$

pango looks suspicious here. it's not there by default. so something seems to be setting PACKAGECONFIG in your config, and that could be the root cause of your problem...

Quoted 3 lines

Note this is using Poky master that's about a week old, but I doubt that anything has changed in this realm.

#9 lore raw
Quoted 9 lines · Nicolas Dechesne
Quoted 5 lines

[gthomas@titan imx6_test]$ bitbake -e gst-plugins-base | grep PACKAGECONFIG
# $PACKAGECONFIG [7 operations]
PACKAGECONFIG=" pango x11"
[gthomas@titan imx6_test]$

pango looks suspicious here. it's not there by default. so something seems to be setting PACKAGECONFIG in your config, and that could be the root cause of your problem...

Agreed. Don't use grep and you'll see all the assignments and where they are from.

Ross

#10 lore raw
In reply to Nicolas Dechesne
Quoted 23 lines · Nicolas Dechesne

On Tue, Jan 14, 2014 at 2:55 PM, Gary Thomas <[email protected] <mailto:[email protected]>> wrote:

Sorry, no, when x11 is missing, I only get this error:

[gthomas@titan imx6_test]$ bitbake -e gst-plugins-base
NOTE: Started PRServer with DBfile: /home/local/imx6_test/cache/__prserv.sqlite3, IP: 127.0.0.1, PORT: 45092, PID: 22974
Loading cache: 100% |#############################__##############################__#########################| ETA: 00:00:00
Loaded 1564 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'virtual/libx11' (but /home/local/poky-multi/meta/__recipes-multimedia/gstreamer/g__st-plugins-base_0.10.36.bb <http://gst-plugins-base_0.10.36.bb>
DEPENDS on or otherwise requires it)

ERROR: libx11-diet PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: nativesdk-libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: Required build target 'gst-plugins-base' has no buildable providers.
Missing or unbuildable dependency chain was: ['gst-plugins-base', 'virtual/libx11']

If I have x11 in DISTRO_FEATURES, I get a full dump and the grep shows something:

Quoted 7 lines

[gthomas@titan imx6_test]$ bitbake -e gst-plugins-base | grep PACKAGECONFIG # $PACKAGECONFIG [7 operations]
PACKAGECONFIG=" pango x11"
[gthomas@titan imx6_test]$

pango looks suspicious here. it's not there by default. so something seems to be setting PACKAGECONFIG in your config, and that could be the root cause of your problem...

The error says nothing about pango, is only says that virtual/libx11 is missing.

That said, this was a problem of my own doing :-( I have this in gst-plugins-base_0.10.36.bbappend:
# Enable extra plugins
PACKAGECONFIG += "pango x11"

Sorry for all the noise. It's still too bad that bitbake didn't really help me find this, only spitting out those errors...

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#11 lore raw
Quoted 6 lines · Gary Thomas
Quoted 3 lines

pango looks suspicious here. it's not there by default. so something seems to be setting PACKAGECONFIG in your config, and that could be the root cause of your problem...

The error says nothing about pango, is only says that virtual/libx11 is missing.

Suspicious because it's not a default value in oe-core, so it must be set by another layer.

Quoted 7 lines

That said, this was a problem of my own doing :-( I have this in gst-plugins-base_0.10.36.bbappend:
# Enable extra plugins
PACKAGECONFIG += "pango x11"

Sorry for all the noise. It's still too bad that bitbake didn't really help me find this, only spitting out those errors...

This is exactly what bitbake -e is for - if you don't use grep you'll see all the assignments that are processed and where they come from. I thought it would be more lenient in the face of errors, but obviously not in this case. I wonder if this can be improved.

Ross

#12 lore raw
Quoted 10 lines · Ross
Quoted 6 lines · Gary Thomas
Quoted 3 lines

pango looks suspicious here. it's not there by default. so something seems to be setting PACKAGECONFIG in your config, and that could be the root cause of your problem...

The error says nothing about pango, is only says that virtual/libx11 is missing.

Suspicious because it's not a default value in oe-core, so it must be set by another layer.

Yes, that's what I found.

Quoted 6 lines
Quoted 6 lines

That said, this was a problem of my own doing :-( I have this in gst-plugins-base_0.10.36.bbappend:
# Enable extra plugins
PACKAGECONFIG += "pango x11"

Quoted 7 lines
Quoted 2 lines

Sorry for all the noise. It's still too bad that bitbake didn't really help me find this, only spitting out those errors...

This is exactly what bitbake -e is for - if you don't use grep you'll see all the assignments that are processed and where they come from. I thought it would be more lenient in the face of errors, but obviously not in this case. I wonder if this can be improved.

You can duplicate this with off-the-shelf Poky/Yocto. Just disable x11
in local.conf
DISTRO_FEATURES_remove = "x11"
Then you'll get this error:
[gthomas@titan q_test]$ bitbake -e virtual/libx11
Loading cache: 100% |##################################################################################| ETA: 00:00:00 Loaded 1188 entries from dependency cache.
ERROR: Nothing PROVIDES 'virtual/libx11'
ERROR: libx11-diet PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: nativesdk-libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature ['x11'] (not in DISTRO_FEATURES)

Should I file a bitbake bug?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#13 lore raw
Quoted 11 lines · Gary Thomas

You can duplicate this with off-the-shelf Poky/Yocto. Just disable x11 in local.conf
DISTRO_FEATURES_remove = "x11"
Then you'll get this error:
[gthomas@titan q_test]$ bitbake -e virtual/libx11
Loading cache: 100%

|##################################################################################|
ETA:  00:00:00

Loaded 1188 entries from dependency cache.
ERROR: Nothing PROVIDES 'virtual/libx11'

Quoted 8 lines

ERROR: libx11-diet PROVIDES virtual/libx11 but was skipped: missing
required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: libx11 PROVIDES virtual/libx11 but was skipped: missing required
distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: nativesdk-libx11 PROVIDES virtual/libx11 but was skipped: missing
required distro feature ['x11'] (not in DISTRO_FEATURES)

Should I file a bitbake bug?

I can't see (although I'm no bitbake expert) why -e has to consider dependencies. For example, bitbake -e -b ../meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bb with x11 removed from DISTRO_FEATURES correctly shows PACKAGECONFIG="".

Filing a bug seems reasonable to me.

Ross

#14 lore raw
Quoted 19 lines · Ross
Quoted 18 lines · Gary Thomas

You can duplicate this with off-the-shelf Poky/Yocto. Just disable x11 in local.conf
DISTRO_FEATURES_remove = "x11"
Then you'll get this error:
[gthomas@titan q_test]$ bitbake -e virtual/libx11
Loading cache: 100%

|##################################################################################|
ETA:  00:00:00

Loaded 1188 entries from dependency cache.
ERROR: Nothing PROVIDES 'virtual/libx11'

ERROR: libx11-diet PROVIDES virtual/libx11 but was skipped: missing
required distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: libx11 PROVIDES virtual/libx11 but was skipped: missing required
distro feature ['x11'] (not in DISTRO_FEATURES)
ERROR: nativesdk-libx11 PROVIDES virtual/libx11 but was skipped: missing
required distro feature ['x11'] (not in DISTRO_FEATURES)

Quoted 6 lines
Quoted 1 line

Should I file a bitbake bug?

I can't see (although I'm no bitbake expert) why -e has to consider dependencies. For example, bitbake -e -b ../meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bb with x11 removed from DISTRO_FEATURES correctly shows PACKAGECONFIG="".

Yes, that one works. Testing for virtual/libx11 does not.

Quoted 3 lines

Filing a bug seems reasonable to me.

Filed as bug #5724

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------