Compile kwin using yocto for embedded systems (opengles)

Jörn M joern477 at gmail.com
Thu Mar 1 19:56:27 UTC 2018


Hello together,
I try to compile kwin for Rasperry Pi 3 for embedded usage (opengles).

I use the latest kde yocto layers from master:

https://phabricator.kde.org/source/yocto-meta-kf5/
https://phabricator.kde.org/source/yocto-meta-kde/

All other required layers are on yocto rocko branches.

My qtbase configuration is this one:
https://paste.kde.org/pcbethmb6

OpenGL:
    Desktop OpenGL ....................... no
    OpenGL ES 2.0 ........................ yes
    OpenGL ES 3.0 ........................ no
    OpenGL ES 3.1 ........................ no

On the way to compile kwin I got an error like the one below while
compiling kdeclarative:

error: 'void epoxy_glDrawArrays(GLenum, GLint, GLsizei)' redeclared as
different kind of symbol

Could be solved with this patch:
https://paste.kde.org/pav3dbhxy

Hint to that snipped of code comes from here:
https://github.com/schnitzeltony/meta-qt5-extra/issues/36

And can originally found in kwin source code (kwinglutils_funcs.h)

Now, I am at the point of compiling kwin and got several similar errors.
All errors seems to be related to libepoxy in conjunction with opengles.

I simply did the same as above for kdeclarative and applied the few lines
from kwin's kwinglutils_funcs.h
on all places where the error occurs:

https://paste.kde.org/pgtkzf5yu

This leads me to the final error I'm not able to solve:

eglonxbackend.h:36:27: error: expected ')' before '*' token
|      EglOnXBackend(Display *display);
|                            ^
|
/home/joern/yocto/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/kwin/5.12.1-r0/git/plugins/platforms/x11/common/eglonxbackend.h:37:58:
error: 'Display' has not been declared

https://paste.kde.org/pimqgxedi

Which component normally declares "Display"?
Since the issue comes from "eglonxbackend" and the qtbase config has

EGL on X11 ........................... no

Could this cause the issue?

Maybe I'm completly on the wrong way ;-).
Hopfully someone can point me in the right direction.

Thanks and Best Regards,
Jörn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180301/dece5723/attachment.html>


More information about the Plasma-devel mailing list