Error message about multiple EGL / GLES providers
Hello,
I am currently adapting the cubox layer for dylan, and get these errors:
ERROR: Multiple .bb files are due to be built which each provide virtual/libgles1
ERROR: Multiple .bb files are due to be built which each provide virtual/libgles2
ERROR: Multiple .bb files are due to be built which each provide virtual/egl
I set the PREFERRED_PROVIDERS in the machine config file like this:
PREFERRED_PROVIDER_virtual/egl_cubox ?= "marvell-libgfx" PREFERRED_PROVIDER_virtual/libgles1_cubox ?= "marvell-libgfx" PREFERRED_PROVIDER_virtual/libgles2_cubox ?= "marvell-libgfx"
which is the way pretty much all layers seem to do it.
I remember a discussion about this, with the outcome that these errors are inevitable in danny, and that dylan has special features in place to deal with the collisions between platform EGL/GLES drivers and mesa. However, I cannot find such a feature.
Does anybody know more?
cheers
Quoted 7 lines · Carlos Rafael Giani
I am currently adapting the cubox layer for dylan, and get these errors:
ERROR: Multiple .bb files are due to be built which each provide virtual/libgles1
ERROR: Multiple .bb files are due to be built which each provide virtual/libgles2
ERROR: Multiple .bb files are due to be built which each provide virtual/egl
What are the bb files that are being build? I'm guessing mesa and marvell-libgfx, but can you confirm this? If you use depexp you can find out what's pulling in mesa, but it's generally mesa-demos. This depends on virtual/libgl that you're not providing, so it will pull in Mesa.
If you don't have any support for "big" GL then the easiest fix is to take the recent patches to mesa-demos in master that let you turn off GL using PACKAGECONFIG options.
Ross
Quoted 18 lines · Ross
Quoted 7 lines · Carlos Rafael Giani
I am currently adapting the cubox layer for dylan, and get these errors:
ERROR: Multiple .bb files are due to be built which each provide virtual/libgles1
ERROR: Multiple .bb files are due to be built which each provide virtual/libgles2
ERROR: Multiple .bb files are due to be built which each provide virtual/eglWhat are the bb files that are being build? I'm guessing mesa and marvell-libgfx, but can you confirm this? If you use depexp you can find out what's pulling in mesa, but it's generally mesa-demos. This depends on virtual/libgl that you're not providing, so it will pull in Mesa.
If you don't have any support for "big" GL then the easiest fix is to take the recent patches to mesa-demos in master that let you turn off GL using PACKAGECONFIG options.
Quoted 5 lines
Ross
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
The collision is indeed between marvell-libgfx and mesa, I just verified. My case is actually quite common with embedded 3D hardware - EGL, OpenGL ES 1.x,2.x and OpenVG are supported, but desktop OpenGL isn't. I have seen this with nVidia Tegra, Vivante, PowerVR, and ARM Mali hardware so far. It would be useful to instruct Mesa to turn off its OpenGLES and EGL support, leaving Mesa only for GLX+Desktop OpenGL (software-rendered), if anybody really needs it. As an alternative, as you suggest, I could simply turn off desktop OpenGL, but I have the feeling that this would be better off as a user decision that can be configured in the local.conf file. What do you think?
Quoted 26 lines · Carlos Rafael Giani
Quoted 18 lines · Ross
Quoted 9 lines · Carlos Rafael Giani
I am currently adapting the cubox layer for dylan, and get these errors:
ERROR: Multiple .bb files are due to be built which each provide virtual/libgles1
ERROR: Multiple .bb files are due to be built which each provide virtual/libgles2
ERROR: Multiple .bb files are due to be built which each provide virtual/eglWhat are the bb files that are being build? I'm guessing mesa and marvell-libgfx, but can you confirm this? If you use depexp you can find out what's pulling in mesa, but it's generally mesa-demos. This depends on virtual/libgl that you're not providing, so it will pull in Mesa.
Quoted 5 lines
If you don't have any support for "big" GL then the easiest fix is to take the recent patches to mesa-demos in master that let you turn off GL using PACKAGECONFIG options.
Ross
Quoted 10 lines
The collision is indeed between marvell-libgfx and mesa, I just verified. My case is actually quite common with embedded 3D hardware - EGL, OpenGL ES 1.x,2.x and OpenVG are supported, but desktop OpenGL isn't. I have seen this with nVidia Tegra, Vivante, PowerVR, and ARM Mali hardware so far. It would be useful to instruct Mesa to turn off its OpenGLES and EGL support, leaving Mesa only for GLX+Desktop OpenGL (software-rendered), if anybody really needs it. As an alternative, as you suggest, I could simply turn off desktop OpenGL, but I have the feeling that this would be better off as a user decision that can be configured in the local.conf file. What do you think?
This also crops up when building for raspberrypi with the meta-raspberrypi layer. The errors I see in a bitbake world are (with paths shortened):
ERROR: Multiple .bb files are due to be built which each provide virtual/egl (.../openembedded-core/meta/recipes-graphics/mesa/mesa_9.0.2.bb .../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/libgles2 (.../openembedded-core/meta/recipes-graphics/mesa/mesa_9.0.2.bb .../meta-raspberrypi/recipes-graphics/userland/userland_git.bb).
This usually means one provides something the other doesn't and should.
It's not really something I've looked into much (I don't know the full list of things mesa provides) but if there's a solution for other platforms I could have a look at doing a similar thing in meta-raspberrypi.
--
Paul Barker
Quoted 6 lines · Carlos Rafael Giani
It would
be useful to instruct Mesa to turn off its OpenGLES and EGL support, leaving Mesa only for GLX+Desktop OpenGL (software-rendered), if anybody really needs it. As an alternative, as you suggest, I could simply turn off desktop OpenGL, but I have the feeling that this would be better off as a user decision that can be configured in the local.conf file. What do you think?
You can change mesa's PACKAGECONFIG to not build egl and gles. meta-intel does something like this because the EMGD/CDT drivers are in the same boat.
However considering our software GL support in Mesa is currently swrast (very very bad) and not llvmpipe (usable if you have enough CPU, which we generally don't) you generally don't want to actually have any OpenGL present at all. Generally it's mesa-demos that pulls in virtual/libgl, and in master this can be disabled. This may be worth a backport if someone wants to backport and test it.
Ross
Quoted 15 lines · Ross
Quoted 2 lines · Carlos Rafael Giani
It would
be useful to instruct Mesa to turn off its OpenGLES and EGL support,leaving
Quoted 2 lines
Mesa only for GLX+Desktop OpenGL (software-rendered), if anybody really needs it. As an alternative, as you suggest, I could simply turn off
desktop
Quoted 2 lines
OpenGL, but I have the feeling that this would be better off as a user decision that can be configured in the local.conf file. What do you
think?
You can change mesa's PACKAGECONFIG to not build egl and gles. meta-intel does something like this because the EMGD/CDT drivers are in the same boat.
Quoted 6 lines
However considering our software GL support in Mesa is currently swrast (very very bad) and not llvmpipe (usable if you have enough CPU, which we generally don't) you generally don't want to actually have any OpenGL present at all. Generally it's mesa-demos that pulls in virtual/libgl, and in master this can be disabled. This may be worth a backport if someone wants to backport and test it.
+1
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://projetos.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 18 lines · Ross
Quoted 6 lines · Carlos Rafael Giani
It would
be useful to instruct Mesa to turn off its OpenGLES and EGL support, leaving Mesa only for GLX+Desktop OpenGL (software-rendered), if anybody really needs it. As an alternative, as you suggest, I could simply turn off desktop OpenGL, but I have the feeling that this would be better off as a user decision that can be configured in the local.conf file. What do you think?You can change mesa's PACKAGECONFIG to not build egl and gles. meta-intel does something like this because the EMGD/CDT drivers are in the same boat.
However considering our software GL support in Mesa is currently swrast (very very bad) and not llvmpipe (usable if you have enough CPU, which we generally don't) you generally don't want to actually have any OpenGL present at all. Generally it's mesa-demos that pulls in virtual/libgl, and in master this can be disabled. This may be worth a backport if someone wants to backport and test it.
Quoted 5 lines
Ross
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Good point. It would also discourage people from using compositing managers which render using desktop OpenGL, then wondering why the 3D effects are so awfully slow. Same goes for stuff like Enlightenment Evas, which uses by default the desktop GL backend instead of the GLES one.