All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi] mesa & gl problems
@ 2015-04-10 15:11 Gary Thomas
  2015-04-10 16:25 ` Erik Bolton
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2015-04-10 15:11 UTC (permalink / raw)
  To: Yocto Project

If I try to use the 'libjpeg-turbo' package from meta-oe
(required to build 'vlc'), I get these errors:

ERROR: Multiple .bb files are due to be built which each provide virtual/libgles2 (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb 
/home/local/poky-cutting-edge/meta-raspberrypi/recipes-graphics/userland/userland_git.bb).
  This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/mesa (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa-gl_10.4.4.bb 
/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb).
  This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide jpeg (/home/local/poky-cutting-edge/meta-oe/recipes-core/jpeg/libjpeg-turbo_8d+1.4.0.bb 
/home/local/poky-cutting-edge/meta/recipes-core/jpeg/jpeg_8d.bb).
  This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/libgl (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa-gl_10.4.4.bb 
/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb).
  This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/egl (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb 
/home/local/poky-cutting-edge/meta-raspberrypi/recipes-graphics/userland/userland_git.bb).
  This usually means one provides something the other doesn't and should.

This happens when I add these lines to my local.conf:
   PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
   PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native"

How do I fix this?

Note: I've successfully done this on many other targets (qemuXXX,
i.MX6) - it's only failing on RaspberryPi

Thanks for any pointers

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: [meta-raspberrypi] mesa & gl problems
  2015-04-10 15:11 [meta-raspberrypi] mesa & gl problems Gary Thomas
@ 2015-04-10 16:25 ` Erik Bolton
  2015-04-10 17:37   ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Erik Bolton @ 2015-04-10 16:25 UTC (permalink / raw)
  To: Gary Thomas, Yocto Project

Gary:

Something is still pulling in libjpeg. It's possible you've got a recipe that depends on libjpeg directly. Check any modified recipes or custom stuff you've added.

The mesa errors are a little more interesting. Typically that means a graphics driver is being included that provides GL/GLES along with mesa (which also provides the same functionality).

Are you sure the mesa errors only started after you tried to make libjpeg-turbo the preferred jpeg provider?

-Erik

-----Original Message-----
From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Gary Thomas
Sent: Friday, April 10, 2015 8:12 AM
To: Yocto Project
Subject: [yocto] [meta-raspberrypi] mesa & gl problems

If I try to use the 'libjpeg-turbo' package from meta-oe (required to build 'vlc'), I get these errors:

ERROR: Multiple .bb files are due to be built which each provide virtual/libgles2 (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb
/home/local/poky-cutting-edge/meta-raspberrypi/recipes-graphics/userland/userland_git.bb).
  This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/mesa (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa-gl_10.4.4.bb
/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb).
  This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide jpeg (/home/local/poky-cutting-edge/meta-oe/recipes-core/jpeg/libjpeg-turbo_8d+1.4.0.bb
/home/local/poky-cutting-edge/meta/recipes-core/jpeg/jpeg_8d.bb).
  This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/libgl (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa-gl_10.4.4.bb
/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb).
  This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/egl (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb
/home/local/poky-cutting-edge/meta-raspberrypi/recipes-graphics/userland/userland_git.bb).
  This usually means one provides something the other doesn't and should.

This happens when I add these lines to my local.conf:
   PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
   PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native"

How do I fix this?

Note: I've successfully done this on many other targets (qemuXXX,
i.MX6) - it's only failing on RaspberryPi

Thanks for any pointers

--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto
Disclaimer: This message contains information that may be privileged or confidential and is the property of AgJunction Inc and its subsidiaries. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.


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

* Re: [meta-raspberrypi] mesa & gl problems
  2015-04-10 16:25 ` Erik Bolton
@ 2015-04-10 17:37   ` Gary Thomas
  2015-04-10 19:08     ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2015-04-10 17:37 UTC (permalink / raw)
  To: Erik Bolton, Yocto Project

On 2015-04-10 10:25, Erik Bolton wrote:
> Gary:
>
> Something is still pulling in libjpeg. It's possible you've got a recipe that depends on libjpeg directly. Check any modified recipes or custom stuff you've added.
>

I'll give it a look.

> The mesa errors are a little more interesting. Typically that means a graphics driver is being included that provides GL/GLES along with mesa (which also provides the same functionality).
>
> Are you sure the mesa errors only started after you tried to make libjpeg-turbo the preferred jpeg provider?

Yes, if I remove those lines from by local.conf, all of these errors vanish.

> -----Original Message-----
> From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Gary Thomas
> Sent: Friday, April 10, 2015 8:12 AM
> To: Yocto Project
> Subject: [yocto] [meta-raspberrypi] mesa & gl problems
>
> If I try to use the 'libjpeg-turbo' package from meta-oe (required to build 'vlc'), I get these errors:
>
> ERROR: Multiple .bb files are due to be built which each provide virtual/libgles2 (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb
> /home/local/poky-cutting-edge/meta-raspberrypi/recipes-graphics/userland/userland_git.bb).
>    This usually means one provides something the other doesn't and should.
> ERROR: Multiple .bb files are due to be built which each provide virtual/mesa (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa-gl_10.4.4.bb
> /home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb).
>    This usually means one provides something the other doesn't and should.
> ERROR: Multiple .bb files are due to be built which each provide jpeg (/home/local/poky-cutting-edge/meta-oe/recipes-core/jpeg/libjpeg-turbo_8d+1.4.0.bb
> /home/local/poky-cutting-edge/meta/recipes-core/jpeg/jpeg_8d.bb).
>    This usually means one provides something the other doesn't and should.
> ERROR: Multiple .bb files are due to be built which each provide virtual/libgl (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa-gl_10.4.4.bb
> /home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb).
>    This usually means one provides something the other doesn't and should.
> ERROR: Multiple .bb files are due to be built which each provide virtual/egl (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb
> /home/local/poky-cutting-edge/meta-raspberrypi/recipes-graphics/userland/userland_git.bb).
>    This usually means one provides something the other doesn't and should.
>
> This happens when I add these lines to my local.conf:
>     PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
>     PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native"
>
> How do I fix this?
>
> Note: I've successfully done this on many other targets (qemuXXX,
> i.MX6) - it's only failing on RaspberryPi
>
> Thanks for any pointers
>
> --
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
> Disclaimer: This message contains information that may be privileged or confidential and is the property of AgJunction Inc and its subsidiaries. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
>

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: [meta-raspberrypi] mesa & gl problems
  2015-04-10 17:37   ` Gary Thomas
@ 2015-04-10 19:08     ` Gary Thomas
  2015-06-05 16:33       ` Andrei Gherzan
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2015-04-10 19:08 UTC (permalink / raw)
  To: yocto

On 2015-04-10 11:37, Gary Thomas wrote:
> On 2015-04-10 10:25, Erik Bolton wrote:
>> Gary:
>>
>> Something is still pulling in libjpeg. It's possible you've got a recipe that depends on libjpeg directly. Check any modified recipes or custom stuff you've added.
>>
>
> I'll give it a look.
>
>> The mesa errors are a little more interesting. Typically that means a graphics driver is being included that provides GL/GLES along with mesa (which also provides the same
>> functionality).
>>
>> Are you sure the mesa errors only started after you tried to make libjpeg-turbo the preferred jpeg provider?
>
> Yes, if I remove those lines from by local.conf, all of these errors vanish.

I found a couple of problems

* meta-raspberrypi/conf/machine/include/rpi-default-providers.inc
   Does not currently allow PREFERRED_PROVIDER_jpeg to be overriden

* meta-raspberrypi/recipes-graphics/userland/userland_git.bb
   Does not provide virtual/libgles1 (only virtual/libgles2 and virtual/libgl)
   The 'libva' library used by 'vlc' requires virtual/libgles1 and virtual/libgles2

The first issue is simple to fix:
diff --git a/conf/machine/include/rpi-default-providers.inc b/conf/machine/include/rpi-default-providers.inc
index ee3a3ac..ae9ed70 100644
--- a/conf/machine/include/rpi-default-providers.inc
+++ b/conf/machine/include/rpi-default-providers.inc
@@ -7,4 +7,5 @@ PREFERRED_PROVIDER_virtual/egl ?= "userland"
  PREFERRED_PROVIDER_virtual/libgles2 ?= "userland"
  PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl"
  PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl"
-PREFERRED_PROVIDER_jpeg = "jpeg"
+PREFERRED_PROVIDER_jpeg ?= "jpeg"
+PREFERRED_PROVIDER_jpeg-native ?= "jpeg-native"

I don't know a workaround for the second.  Any ideas?

>
>> -----Original Message-----
>> From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Gary Thomas
>> Sent: Friday, April 10, 2015 8:12 AM
>> To: Yocto Project
>> Subject: [yocto] [meta-raspberrypi] mesa & gl problems
>>
>> If I try to use the 'libjpeg-turbo' package from meta-oe (required to build 'vlc'), I get these errors:
>>
>> ERROR: Multiple .bb files are due to be built which each provide virtual/libgles2 (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb
>> /home/local/poky-cutting-edge/meta-raspberrypi/recipes-graphics/userland/userland_git.bb).
>>    This usually means one provides something the other doesn't and should.
>> ERROR: Multiple .bb files are due to be built which each provide virtual/mesa (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa-gl_10.4.4.bb
>> /home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb).
>>    This usually means one provides something the other doesn't and should.
>> ERROR: Multiple .bb files are due to be built which each provide jpeg (/home/local/poky-cutting-edge/meta-oe/recipes-core/jpeg/libjpeg-turbo_8d+1.4.0.bb
>> /home/local/poky-cutting-edge/meta/recipes-core/jpeg/jpeg_8d.bb).
>>    This usually means one provides something the other doesn't and should.
>> ERROR: Multiple .bb files are due to be built which each provide virtual/libgl (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa-gl_10.4.4.bb
>> /home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb).
>>    This usually means one provides something the other doesn't and should.
>> ERROR: Multiple .bb files are due to be built which each provide virtual/egl (/home/local/poky-cutting-edge/meta/recipes-graphics/mesa/mesa_10.4.4.bb
>> /home/local/poky-cutting-edge/meta-raspberrypi/recipes-graphics/userland/userland_git.bb).
>>    This usually means one provides something the other doesn't and should.
>>
>> This happens when I add these lines to my local.conf:
>>     PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
>>     PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native"
>>
>> How do I fix this?
>>
>> Note: I've successfully done this on many other targets (qemuXXX,
>> i.MX6) - it's only failing on RaspberryPi
>>
>> Thanks for any pointers
>>
>> --
>> ------------------------------------------------------------
>> Gary Thomas                 |  Consulting for the
>> MLB Associates              |    Embedded world
>> ------------------------------------------------------------
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>> Disclaimer: This message contains information that may be privileged or confidential and is the property of AgJunction Inc and its subsidiaries. It is intended only for the
>> person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any
>> part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
>>
>

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: [meta-raspberrypi] mesa & gl problems
  2015-04-10 19:08     ` Gary Thomas
@ 2015-06-05 16:33       ` Andrei Gherzan
  0 siblings, 0 replies; 5+ messages in thread
From: Andrei Gherzan @ 2015-06-05 16:33 UTC (permalink / raw)
  To: Gary Thomas; +Cc: yocto

On Fri, Apr 10, 2015 at 01:08:50PM -0600, Gary Thomas wrote:
> On 2015-04-10 11:37, Gary Thomas wrote:
> >On 2015-04-10 10:25, Erik Bolton wrote:
> >>Gary:
> >>
> >>Something is still pulling in libjpeg. It's possible you've got a recipe that depends on libjpeg directly. Check any modified recipes or custom stuff you've added.
> >>
> >
> >I'll give it a look.
> >
> >>The mesa errors are a little more interesting. Typically that means a graphics driver is being included that provides GL/GLES along with mesa (which also provides the same
> >>functionality).
> >>
> >>Are you sure the mesa errors only started after you tried to make libjpeg-turbo the preferred jpeg provider?
> >
> >Yes, if I remove those lines from by local.conf, all of these errors vanish.
>
> I found a couple of problems
>
> * meta-raspberrypi/conf/machine/include/rpi-default-providers.inc
>   Does not currently allow PREFERRED_PROVIDER_jpeg to be overriden
>
> * meta-raspberrypi/recipes-graphics/userland/userland_git.bb
>   Does not provide virtual/libgles1 (only virtual/libgles2 and virtual/libgl)
>   The 'libva' library used by 'vlc' requires virtual/libgles1 and virtual/libgles2
>
> The first issue is simple to fix:
> diff --git a/conf/machine/include/rpi-default-providers.inc b/conf/machine/include/rpi-default-providers.inc
> index ee3a3ac..ae9ed70 100644
> --- a/conf/machine/include/rpi-default-providers.inc
> +++ b/conf/machine/include/rpi-default-providers.inc
> @@ -7,4 +7,5 @@ PREFERRED_PROVIDER_virtual/egl ?= "userland"
>  PREFERRED_PROVIDER_virtual/libgles2 ?= "userland"
>  PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl"
>  PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl"
> -PREFERRED_PROVIDER_jpeg = "jpeg"
> +PREFERRED_PROVIDER_jpeg ?= "jpeg"
> +PREFERRED_PROVIDER_jpeg-native ?= "jpeg-native"
>
> I don't know a workaround for the second.  Any ideas?

RaspberryPi doesn't provide GLES1 on any of the providers. Check the mailing
history for another related topic. The solutions are:
1. patch mesa to have gles1 provided from there
2. have something like mesa-gl but for gles1

https://lists.yoctoproject.org/pipermail/yocto/2015-April/024710.html

--
Andrei Gherzan


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

end of thread, other threads:[~2015-06-05 16:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-10 15:11 [meta-raspberrypi] mesa & gl problems Gary Thomas
2015-04-10 16:25 ` Erik Bolton
2015-04-10 17:37   ` Gary Thomas
2015-04-10 19:08     ` Gary Thomas
2015-06-05 16:33       ` Andrei Gherzan

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.