[meta-freescale] Yocto Wandboard with Webkitgtk build for OpenGL ES 2.0 ?

Dmitriy B. rzk333 at gmail.com
Wed Jul 23 14:32:21 PDT 2014


2014-07-23 14:11 GMT+04:00 Seifert, Thomas (T.) <tbruenck at visteon.com>:
>
>  Now I’m trying to setup WebKitGtk. I did build a small C app which runs
> the Gtk browser . *BUT: *There is no OpenGL ES 2.0  (needed for WebGL,
> CSS 3D) support in the browser because the webkit-gtk_1.8.3.bb  has only
> support for OpenGL ->  see the red marked places below (
> webkit-gtk_1.8.3.bb) .
>
>
>
> *My Question is now: *What should be the values in the webkit-gtk_1.8.3.bb
> to build webkitgtk against OpenGL ES 2.0?
>

Download newer version of webkitgtk (latest is 2.4.*), check if it can do
GLES or EGL in the same way as Chromium can
https://github.com/OSSystems/meta-browser/blob/master/recipes-browser/chromium/chromium_35.0.1916.114.bb#L43

configure of WebKitGTK+ 2.4.4 has this:

 if test "$enable_egl" = "yes"; then
  USE_EGL_TRUE=
  USE_EGL_FALSE='#'
else
  USE_EGL_TRUE='#'
  USE_EGL_FALSE=
fi

<...>

 if test "$enable_gles2" = "yes"; then
  USE_GLES2_TRUE=
  USE_GLES2_FALSE='#'
else
  USE_GLES2_TRUE='#'
  USE_GLES2_FALSE=
fi

Looks promising.

Write your own package for new version, now with egl flags (use chromium as
example and info you've got from configure), compile and test, you will
probably need to adapt couple of patches, you can also refer to Fedora
packaging patches http://pkgs.fedoraproject.org/cgit/webkitgtk.git. If
newer webkitgtk does not depend on something that is missing from yocto, it
should probably work.

You can also inspect 1.8.3 for EGL and run, but it is 1.5 years old.

Best Regards,
Dmitriy Beykun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20140724/9da31158/attachment.html>


More information about the meta-freescale mailing list