[Interest] Qt 5.15 meta-qt5 yocto build

Ramakanth Kesireddy rama.kesi at gmail.com
Fri Mar 26 05:15:28 CET 2021


Hi,

Am  trying to build qt5.15.2 with eglfs and opengl es2 without wayland and
x11 using yocto on TI AM3358 device incorder to run QtQuick and
QtQuickControls. It builds fine if I use linuxfb as platform plugin to run
Qt c++ widgets.

Added below in conf:
DISTRO_FEATURES_append = " opengl"

DISTRO_FEATURES_remove = "x11 wayland"

Added below in qtbase_git.bbappend:
PACKAGECONFIG[gold-linker] = "-use-gold-linker,-no-use-gold-linker"
PACKAGECONFIG[sql-plugin-sqlite] = "-system-sqlite
-plugin-sql-sqlite,-no-sql-sqlite,sqlite3"
PACKAGECONFIG[qml-debug] = "-qml-debug,-no-qml-debug"
PACKAGECONFIG[qreal-float] = "-qreal float,"
PACKAGECONFIG += "gles2"
PACKAGECONFIG_append= "eglfs sql-plugin-sqlite freetype fontconfig icu
accessibility glib harfbuzz pcre qreal-float tslib"
PACKAGECONFIG_remove = "xcb linuxfb pulseaudio tools iconv alsa dbus
gold-linker evdev openssl"

However, it throws below errors after building qtbase through yocto:
.../../../../git/config.tests/unix/opengles2/opengles2.cpp:38:25: fatal
error: GLES2/gl2.h: No such file or directory
compilation terminated.

Makefile:177: recipe for target 'opengles2.o' failed
make: *** [opengles2.o] Error 1

Makefile:177: recipe for target 'opengles2.o' failed
make: *** [opengles2.o] Error 1
OpenGL ES 2.0 disabled.

It uses https://github.com/meta-qt5/meta-qt5 with the above changes in conf
and qtbase_git.bbappend.
Any thoughts on how to resolve the same if I need to add any includes in
any mkspecs or any changes in bbappend ?

Best Regards,
Ramakanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210326/694709cb/attachment.html>


More information about the Interest mailing list