[OE-core] OpenGL as a DISTRO_FEATURE

Marcin Juszkiewicz marcin.juszkiewicz at linaro.org
Sun Feb 3 21:33:42 UTC 2013


W dniu 03.02.2013 20:45, Ian Geiser pisze:

> The case I have is 3 platforms: 1) Atom N450 2) WM 8950 3) VIA VX900
> 
> The Atom has the normal mesa-dri drivers and can use the OpenGL
> implementation from that.  The WM has only OpenGLES drivers and no
> OpenGL implementation.  So in that case I want to use only GLES
> support in the various packages that conditionally support it (in my
> case Qt4).  The last platform the VIA has its own OpenGL
> implementation that can completely replace mesa for packages that
> support OpenGL. In the case of my distro I support Qt4 but it can use
> OpenGLES or OpenGL.  The problem comes in when I start setting
> preferred providers in the machine conf files.  In the case of my WM,
> I have only gles and since the distro supports opengl, it needs a
> virtual/libgl and finds it with mesa.  Now I can remove opengl from
> my distro, but the Atom and VIA support opengl, and will not have it
> available to Qt because it turns off.

As they are different architectures you can try this:

DISTRO_FEATURES_wm8950 = "here copy your default DISTRO_FEATURES but
skip opengl"

Replace wm8950 with MACHINE name. Ugly solution but should work.





More information about the Openembedded-core mailing list