From: Tomas Frydrych <tf+lists.yocto@r-finger.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: OpenGL as a DISTRO_FEATURE
Date: Tue, 05 Feb 2013 20:58:21 +0000 [thread overview]
Message-ID: <5111726D.9080806@r-finger.com> (raw)
In-Reply-To: <F600AD7DF50F4C5793CA585286CEE7B4@intel.com>
Hi Ross,
On 03/02/13 23:35, Ross Burton wrote:
> On Sunday, 3 February 2013 at 21:33, Marcin Juszkiewicz wrote:
>> 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.
> That means that Qt won't be built with GLES support.
>
> The best approach is to probe the hardware/libraries at runtime and
> adapt - i.e. if only GLES libraries are available use those, but a
> lot of software doesn't support that or simple probing isn't
> sufficient (Intel Pine Trail supports both but GL is best, Cedar
> Trail supports both but GL is terrible).
Run-time probing is not a solution at all, because (a) we are not
talking about how to write portable GL applications, but primarily how
to package software already written by other people, and (b) with the
current OE set up run-time probing cannot work anyway (and does not,
e.g. cogl), because with two 'GL' providers there is no guarantee that
the optimal one (i.e., not the mesa software GL rasterizer), gets used.
The above scenario where someone wants to maintain a distro with
multiple target architectures is the normal thing to ask for with OE.
The fact that current OE cannot support it cleanly, and it has to be
worked around on distro level (whether by bbappends that make the GL
components machine-specific as they should be, or hacks like
DISTRO_FEATURES_my-random-machine), demonstrates that we are not doing
it right at the moment.
> It's not as simple as it appears and causes a rather large number of
> packages to become machine-specific.
From actual experience I think this is well overstated; I dare you to
support this by real numbers :-)
Tomas
--
http://sleepfive.com
next prev parent reply other threads:[~2013-02-05 21:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-03 17:15 OpenGL as a DISTRO_FEATURE Ian Geiser
2013-02-03 19:04 ` Ross Burton
2013-02-03 19:45 ` Ian Geiser
2013-02-03 21:33 ` Marcin Juszkiewicz
2013-02-03 23:35 ` Ross Burton
2013-02-04 0:53 ` Ian Geiser
2013-02-05 20:58 ` Tomas Frydrych [this message]
2013-02-07 14:25 ` Andrei Gherzan
2013-02-04 0:53 ` Ian Geiser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5111726D.9080806@r-finger.com \
--to=tf+lists.yocto@r-finger.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.